@@ -1740,12 +1740,21 @@ data: [DONE]
17401740 let message = response_to_message ( & response) ?;
17411741
17421742 // First content should be ThinkingContent (reasoning)
1743- assert ! ( message. content. len( ) >= 2 , "Expected at least 2 content items" ) ;
1743+ assert ! (
1744+ message. content. len( ) >= 2 ,
1745+ "Expected at least 2 content items"
1746+ ) ;
17441747 if let MessageContent :: Thinking ( thinking) = & message. content [ 0 ] {
17451748 assert_eq ! ( thinking. thinking, "Let me think about this step by step..." ) ;
1746- assert ! ( thinking. signature. is_none( ) , "OpenAI-compatible signature should be None" ) ;
1749+ assert ! (
1750+ thinking. signature. is_none( ) ,
1751+ "OpenAI-compatible signature should be None"
1752+ ) ;
17471753 } else {
1748- panic ! ( "Expected Thinking content as first item, got {:?}" , message. content[ 0 ] ) ;
1754+ panic ! (
1755+ "Expected Thinking content as first item, got {:?}" ,
1756+ message. content[ 0 ]
1757+ ) ;
17491758 }
17501759
17511760 // Second content should be text
@@ -1800,7 +1809,8 @@ data: [DONE]
18001809 }
18011810
18021811 #[ test]
1803- fn test_format_messages_tool_calls_without_thinking_includes_empty_reasoning ( ) -> anyhow:: Result < ( ) > {
1812+ fn test_format_messages_tool_calls_without_thinking_includes_empty_reasoning (
1813+ ) -> anyhow:: Result < ( ) > {
18041814 // Test that reasoning_content is included (empty) when tool_calls present but no thinking
18051815 let message = Message :: assistant ( ) . with_tool_request (
18061816 "call_1" ,
0 commit comments