@@ -579,6 +579,8 @@ pub enum ChatResponseStream {
579579 } ,
580580 MeteringEvent {
581581 usage : Option < f64 > ,
582+ unit : Option < String > ,
583+ unit_plural : Option < String > ,
582584 } ,
583585 SupplementaryWebLinksEvent ( ( ) ) ,
584586 ToolUseEvent {
@@ -665,8 +667,17 @@ impl From<amzn_codewhisperer_streaming_client::types::ChatResponseStream> for Ch
665667 cache_write_input_tokens : token_usage. as_ref ( ) . and_then ( |t| t. cache_write_input_tokens ) ,
666668 } ,
667669 amzn_codewhisperer_streaming_client:: types:: ChatResponseStream :: MeteringEvent (
668- amzn_codewhisperer_streaming_client:: types:: MeteringEvent { usage, .. } ,
669- ) => ChatResponseStream :: MeteringEvent { usage } ,
670+ amzn_codewhisperer_streaming_client:: types:: MeteringEvent {
671+ usage,
672+ unit,
673+ unit_plural,
674+ ..
675+ } ,
676+ ) => ChatResponseStream :: MeteringEvent {
677+ usage,
678+ unit,
679+ unit_plural,
680+ } ,
670681 amzn_codewhisperer_streaming_client:: types:: ChatResponseStream :: ToolUseEvent (
671682 amzn_codewhisperer_streaming_client:: types:: ToolUseEvent {
672683 tool_use_id,
@@ -733,8 +744,17 @@ impl From<amzn_qdeveloper_streaming_client::types::ChatResponseStream> for ChatR
733744 cache_write_input_tokens : token_usage. as_ref ( ) . and_then ( |t| t. cache_write_input_tokens ) ,
734745 } ,
735746 amzn_qdeveloper_streaming_client:: types:: ChatResponseStream :: MeteringEvent (
736- amzn_qdeveloper_streaming_client:: types:: MeteringEvent { usage, .. } ,
737- ) => ChatResponseStream :: MeteringEvent { usage } ,
747+ amzn_qdeveloper_streaming_client:: types:: MeteringEvent {
748+ usage,
749+ unit,
750+ unit_plural,
751+ ..
752+ } ,
753+ ) => ChatResponseStream :: MeteringEvent {
754+ usage,
755+ unit,
756+ unit_plural,
757+ } ,
738758 amzn_qdeveloper_streaming_client:: types:: ChatResponseStream :: ToolUseEvent (
739759 amzn_qdeveloper_streaming_client:: types:: ToolUseEvent {
740760 tool_use_id,
@@ -940,7 +960,7 @@ impl From<UserInputMessage> for amzn_codewhisperer_streaming_client::types::User
940960 . set_user_input_message_context ( value. user_input_message_context . map ( Into :: into) )
941961 . set_user_intent ( value. user_intent . map ( Into :: into) )
942962 . set_model_id ( value. model_id )
943- . origin ( amzn_codewhisperer_streaming_client:: types:: Origin :: KiroCli )
963+ . origin ( amzn_codewhisperer_streaming_client:: types:: Origin :: AiEditor )
944964 . build ( )
945965 . expect ( "Failed to build UserInputMessage" )
946966 }
@@ -954,7 +974,7 @@ impl From<UserInputMessage> for amzn_qdeveloper_streaming_client::types::UserInp
954974 . set_user_input_message_context ( value. user_input_message_context . map ( Into :: into) )
955975 . set_user_intent ( value. user_intent . map ( Into :: into) )
956976 . set_model_id ( value. model_id )
957- . origin ( amzn_qdeveloper_streaming_client:: types:: Origin :: KiroCli )
977+ . origin ( amzn_qdeveloper_streaming_client:: types:: Origin :: AiEditor )
958978 . build ( )
959979 . expect ( "Failed to build UserInputMessage" )
960980 }
0 commit comments