File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
crates/chat-cli/src/api_client Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ impl ApiClient {
365365 let request = self
366366 . client
367367 . list_available_models ( )
368- . set_origin ( Some ( Origin :: from ( "KIRO_CLI" ) ) )
368+ . set_origin ( Some ( Origin :: KiroCli ) )
369369 . set_profile_arn ( self . profile . as_ref ( ) . map ( |p| p. arn . clone ( ) ) ) ;
370370 let mut paginator = request. into_paginator ( ) . send ( ) ;
371371
@@ -458,7 +458,7 @@ impl ApiClient {
458458 ) -> Result < amzn_codewhisperer_client:: operation:: get_usage_limits:: GetUsageLimitsOutput , ApiClientError > {
459459 self . client
460460 . get_usage_limits ( )
461- . set_origin ( Some ( amzn_codewhisperer_client:: types:: Origin :: from ( "KIRO_CLI" ) ) )
461+ . set_origin ( Some ( amzn_codewhisperer_client:: types:: Origin :: KiroCli ) )
462462 . send ( )
463463 . await
464464 . map_err ( ApiClientError :: GetUsageLimitsError )
@@ -543,7 +543,7 @@ impl ApiClient {
543543 match client
544544 . send_message ( )
545545 . conversation_state ( conversation_state)
546- . set_source ( Some ( QDeveloperOrigin :: from ( "KIRO_CLI" ) ) )
546+ . set_source ( Some ( QDeveloperOrigin :: KiroCli ) )
547547 . send ( )
548548 . await
549549 {
Original file line number Diff line number Diff line change @@ -940,8 +940,7 @@ impl From<UserInputMessage> for amzn_codewhisperer_streaming_client::types::User
940940 . set_user_input_message_context ( value. user_input_message_context . map ( Into :: into) )
941941 . set_user_intent ( value. user_intent . map ( Into :: into) )
942942 . set_model_id ( value. model_id )
943- //TODO: Setup new origin.
944- . origin ( amzn_codewhisperer_streaming_client:: types:: Origin :: from ( "KIRO_CLI" ) )
943+ . origin ( amzn_codewhisperer_streaming_client:: types:: Origin :: KiroCli )
945944 . build ( )
946945 . expect ( "Failed to build UserInputMessage" )
947946 }
@@ -955,8 +954,7 @@ impl From<UserInputMessage> for amzn_qdeveloper_streaming_client::types::UserInp
955954 . set_user_input_message_context ( value. user_input_message_context . map ( Into :: into) )
956955 . set_user_intent ( value. user_intent . map ( Into :: into) )
957956 . set_model_id ( value. model_id )
958- //TODO: Setup new origin.
959- . origin ( amzn_qdeveloper_streaming_client:: types:: Origin :: from ( "KIRO_CLI" ) )
957+ . origin ( amzn_qdeveloper_streaming_client:: types:: Origin :: KiroCli )
960958 . build ( )
961959 . expect ( "Failed to build UserInputMessage" )
962960 }
You can’t perform that action at this time.
0 commit comments