@@ -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,8 @@ 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 { usage, unit , unit_plural , .. } ,
671+ ) => ChatResponseStream :: MeteringEvent { usage, unit , unit_plural } ,
670672 amzn_codewhisperer_streaming_client:: types:: ChatResponseStream :: ToolUseEvent (
671673 amzn_codewhisperer_streaming_client:: types:: ToolUseEvent {
672674 tool_use_id,
@@ -733,8 +735,8 @@ impl From<amzn_qdeveloper_streaming_client::types::ChatResponseStream> for ChatR
733735 cache_write_input_tokens : token_usage. as_ref ( ) . and_then ( |t| t. cache_write_input_tokens ) ,
734736 } ,
735737 amzn_qdeveloper_streaming_client:: types:: ChatResponseStream :: MeteringEvent (
736- amzn_qdeveloper_streaming_client:: types:: MeteringEvent { usage, .. } ,
737- ) => ChatResponseStream :: MeteringEvent { usage } ,
738+ amzn_qdeveloper_streaming_client:: types:: MeteringEvent { usage, unit , unit_plural , .. } ,
739+ ) => ChatResponseStream :: MeteringEvent { usage, unit , unit_plural } ,
738740 amzn_qdeveloper_streaming_client:: types:: ChatResponseStream :: ToolUseEvent (
739741 amzn_qdeveloper_streaming_client:: types:: ToolUseEvent {
740742 tool_use_id,
@@ -940,7 +942,7 @@ impl From<UserInputMessage> for amzn_codewhisperer_streaming_client::types::User
940942 . set_user_input_message_context ( value. user_input_message_context . map ( Into :: into) )
941943 . set_user_intent ( value. user_intent . map ( Into :: into) )
942944 . set_model_id ( value. model_id )
943- . origin ( amzn_codewhisperer_streaming_client:: types:: Origin :: KiroCli )
945+ . origin ( amzn_codewhisperer_streaming_client:: types:: Origin :: AiEditor )
944946 . build ( )
945947 . expect ( "Failed to build UserInputMessage" )
946948 }
@@ -954,7 +956,7 @@ impl From<UserInputMessage> for amzn_qdeveloper_streaming_client::types::UserInp
954956 . set_user_input_message_context ( value. user_input_message_context . map ( Into :: into) )
955957 . set_user_intent ( value. user_intent . map ( Into :: into) )
956958 . set_model_id ( value. model_id )
957- . origin ( amzn_qdeveloper_streaming_client:: types:: Origin :: KiroCli )
959+ . origin ( amzn_qdeveloper_streaming_client:: types:: Origin :: AiEditor )
958960 . build ( )
959961 . expect ( "Failed to build UserInputMessage" )
960962 }
0 commit comments