@@ -230,7 +230,7 @@ impl ApiClient {
230230 true => OptOutPreference :: OptIn ,
231231 false => OptOutPreference :: OptOut ,
232232 } )
233- . set_profile_arn ( self . profile . as_ref ( ) . map ( |p| p. arn . clone ( ) ) )
233+ // .set_profile_arn(self.profile.as_ref().map(|p| p.arn.clone()))
234234 . set_model_id ( model)
235235 . send ( )
236236 . await ?;
@@ -280,8 +280,8 @@ impl ApiClient {
280280 let request = self
281281 . client
282282 . list_available_models ( )
283- . set_origin ( Some ( Cli ) )
284- . set_profile_arn ( self . profile . as_ref ( ) . map ( |p| p. arn . clone ( ) ) ) ;
283+ . set_origin ( Some ( Cli ) ) ;
284+ // .set_profile_arn(self.profile.as_ref().map(|p| p.arn.clone()));
285285 let mut paginator = request. into_paginator ( ) . send ( ) ;
286286
287287 while let Some ( result) = paginator. next ( ) . await {
@@ -340,8 +340,8 @@ impl ApiClient {
340340 pub async fn is_mcp_enabled ( & self ) -> Result < bool , ApiClientError > {
341341 let request = self
342342 . client
343- . get_profile ( )
344- . set_profile_arn ( self . profile . as_ref ( ) . map ( |p| p. arn . clone ( ) ) ) ;
343+ . get_profile ( ) ;
344+ // .set_profile_arn(self.profile.as_ref().map(|p| p.arn.clone()));
345345
346346 let response = request. send ( ) . await ?;
347347 let mcp_enabled = response
@@ -399,7 +399,7 @@ impl ApiClient {
399399 match client
400400 . generate_assistant_response ( )
401401 . conversation_state ( conversation_state)
402- . set_profile_arn ( self . profile . as_ref ( ) . map ( |p| p. arn . clone ( ) ) )
402+ // .set_profile_arn(self.profile.as_ref().map(|p| p.arn.clone()))
403403 . send ( )
404404 . await
405405 {
0 commit comments