File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1092,11 +1092,18 @@ impl ChatContext {
1092
1092
style:: SetAttribute ( Attribute :: Bold ) ,
1093
1093
style:: SetForegroundColor ( Color :: Red ) ,
1094
1094
) ?;
1095
- let message = "The model you've selected is temporarily unavailable. Please use '/model' to select a different model and try again." ;
1096
- queue ! (
1097
- self . output,
1098
- style:: Print ( & format!( "{}\n Request ID: {}" , message, request_id) )
1099
- ) ?;
1095
+
1096
+ let message = " The model you've selected is temporarily unavailable. Please use '/model' to select a different model and try again." ;
1097
+ let text = match request_id {
1098
+ Some ( id) => format ! (
1099
+ "Amazon Q is having trouble responding right now:\n {}\n Request ID: {}\n \n " ,
1100
+ message, id
1101
+ ) ,
1102
+ None => format ! ( "Amazon Q is having trouble responding right now:\n {}\n \n " , message) ,
1103
+ } ;
1104
+ queue ! ( self . output, style:: Print ( & text) ) ?;
1105
+ self . conversation_state . append_transcript ( text) ;
1106
+
1100
1107
execute ! (
1101
1108
self . output,
1102
1109
style:: SetAttribute ( Attribute :: Reset ) ,
You can’t perform that action at this time.
0 commit comments