@@ -1486,7 +1486,7 @@ impl ResponsesLLmResponse {
14861486 // log::debug!("llm response chunk: {:#?}", chunk);
14871487 match chunk {
14881488 ResponsesChunk :: Completed { response } => {
1489- log:: debug!( "llm response completed: {:#? }" , response) ;
1489+ log:: debug!( "llm response completed: {}" , serde_json :: to_string_pretty ( & response) . unwrap ( ) ) ;
14901490 self . previous_response_id = response. id ;
14911491 // self.stopped = true;
14921492 return ;
@@ -1526,25 +1526,25 @@ impl ResponsesLLmResponse {
15261526 }
15271527 ResponsesOutputItem :: Message { id, role, content } => {
15281528 log:: info!(
1529- "llm response message: id={}, role={}, content={:#? }" ,
1529+ "llm response message: id={}, role={}, content={}" ,
15301530 id,
15311531 role,
1532- content
1532+ serde_json :: to_string_pretty ( & content) . unwrap ( ) ,
15331533 ) ;
15341534 }
15351535 ResponsesOutputItem :: Other => {
15361536 log:: warn!( "llm response output item other: {:#?}" , s_) ;
15371537 }
15381538 other => {
1539- log:: warn !( "llm response output item not handled: {}" , serde_json:: to_string_pretty( & other) . unwrap( ) ) ;
1539+ log:: trace !( "llm response output item not handled: {}" , serde_json:: to_string_pretty( & other) . unwrap( ) ) ;
15401540 }
15411541 }
15421542 }
15431543 ResponsesChunk :: Unknown => {
15441544 log:: error!( "llm response unknown chunk: {:#?}" , s_) ;
15451545 }
15461546 other => {
1547- log:: warn !( "llm response output item not handled: {}" , serde_json:: to_string_pretty( & other) . unwrap( ) ) ;
1547+ log:: trace !( "llm response output item not handled: {}" , serde_json:: to_string_pretty( & other) . unwrap( ) ) ;
15481548 return ;
15491549 }
15501550 } ;
0 commit comments