File tree Expand file tree Collapse file tree
src-tauri/src/proxy/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1185,10 +1185,7 @@ mod tests {
11851185 // System message: no cache_control
11861186 assert ! ( result[ "messages" ] [ 0 ] . get( "cache_control" ) . is_none( ) ) ;
11871187 // User message: content simplified to string (no cache_control → flat string)
1188- assert_eq ! (
1189- result[ "messages" ] [ 1 ] [ "content" ] ,
1190- "Hello"
1191- ) ;
1188+ assert_eq ! ( result[ "messages" ] [ 1 ] [ "content" ] , "Hello" ) ;
11921189 // Tool: no cache_control
11931190 assert ! ( result[ "tools" ] [ 0 ] . get( "cache_control" ) . is_none( ) ) ;
11941191 }
@@ -1230,7 +1227,12 @@ mod tests {
12301227 for ( i, msg) in result[ "messages" ] . as_array ( ) . unwrap ( ) . iter ( ) . enumerate ( ) {
12311228 if let Some ( content) = msg. get ( "content" ) {
12321229 assert ! (
1233- !content. is_array( ) || content. as_array( ) . unwrap( ) . iter( ) . all( |part| part. get( "cache_control" ) . is_none( ) ) ,
1230+ !content. is_array( )
1231+ || content
1232+ . as_array( )
1233+ . unwrap( )
1234+ . iter( )
1235+ . all( |part| part. get( "cache_control" ) . is_none( ) ) ,
12341236 "messages[{i}] content parts must not have cache_control"
12351237 ) ;
12361238 }
You can’t perform that action at this time.
0 commit comments