File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
crates/q_cli/src/cli/chat Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2584,11 +2584,17 @@ impl ChatContext {
2584
2584
style:: SetForegroundColor ( Color :: Yellow ) ,
2585
2585
style:: SetAttribute ( Attribute :: Bold ) ,
2586
2586
style:: Print ( format!(
2587
- "Warning: received an unexpected error from the model after {:.2}s\n \n " ,
2587
+ "Warning: received an unexpected error from the model after {:.2}s" ,
2588
2588
time_elapsed. as_secs_f64( )
2589
2589
) ) ,
2590
- style:: SetAttribute ( Attribute :: Reset ) ,
2591
2590
) ?;
2591
+ if let Some ( request_id) = recv_error. request_id {
2592
+ queue ! (
2593
+ self . output,
2594
+ style:: Print ( format!( "\n request_id: {}" , request_id) )
2595
+ ) ?;
2596
+ }
2597
+ execute ! ( self . output, style:: Print ( "\n \n " ) , style:: SetAttribute ( Attribute :: Reset ) ) ?;
2592
2598
self . spinner = Some ( Spinner :: new (
2593
2599
Spinners :: Dots ,
2594
2600
"Trying to divide up the work..." . to_string ( ) ,
@@ -2857,7 +2863,7 @@ impl ChatContext {
2857
2863
. tool
2858
2864
. queue_description ( & self . ctx , & mut self . output )
2859
2865
. await
2860
- . map_err ( |e| ChatError :: Custom ( format ! ( "failed to print tool: {}" , e) . into ( ) ) ) ?;
2866
+ . map_err ( |e| ChatError :: Custom ( format ! ( "failed to print tool, `{}` : {}" , tool_use . name , e) . into ( ) ) ) ?;
2861
2867
2862
2868
Ok ( ( ) )
2863
2869
}
You can’t perform that action at this time.
0 commit comments