@@ -1285,25 +1285,23 @@ describe("Gemini route", () => {
12851285 } ) ,
12861286 )
12871287
1288- expect ( prepared . body . contents ) . toEqual ( [
1289- {
1290- role : "model" ,
1291- parts : [
1292- {
1293- functionCall : { id : "tool_0" , name : "lookup" , args : { query : "weather" } } ,
1294- thoughtSignature : "parallel_signature" ,
1295- } ,
1296- {
1297- functionCall : { id : "tool_1" , name : "lookup" , args : { query : "news" } } ,
1298- thoughtSignature : undefined ,
1299- } ,
1300- {
1301- functionCall : { id : "tool_2" , name : "lookup" , args : { query : "sports" } } ,
1302- thoughtSignature : undefined ,
1303- } ,
1304- ] ,
1305- } ,
1306- ] )
1288+ expect ( prepared . body . contents [ 0 ] ) . toEqual ( {
1289+ role : "model" ,
1290+ parts : [
1291+ {
1292+ functionCall : { id : "tool_0" , name : "lookup" , args : { query : "weather" } } ,
1293+ thoughtSignature : "parallel_signature" ,
1294+ } ,
1295+ {
1296+ functionCall : { id : "tool_1" , name : "lookup" , args : { query : "news" } } ,
1297+ thoughtSignature : undefined ,
1298+ } ,
1299+ {
1300+ functionCall : { id : "tool_2" , name : "lookup" , args : { query : "sports" } } ,
1301+ thoughtSignature : undefined ,
1302+ } ,
1303+ ] ,
1304+ } )
13071305 } ) ,
13081306 )
13091307
@@ -1321,21 +1319,19 @@ describe("Gemini route", () => {
13211319 } ) ,
13221320 )
13231321
1324- expect ( prepared . body . contents ) . toEqual ( [
1325- {
1326- role : "model" ,
1327- parts : [
1328- {
1329- functionCall : { id : "tool_0" , name : "lookup" , args : { query : "weather" } } ,
1330- thoughtSignature : "skip_thought_signature_validator" ,
1331- } ,
1332- {
1333- functionCall : { id : "tool_1" , name : "lookup" , args : { query : "news" } } ,
1334- thoughtSignature : "skip_thought_signature_validator" ,
1335- } ,
1336- ] ,
1337- } ,
1338- ] )
1322+ expect ( prepared . body . contents [ 0 ] ) . toEqual ( {
1323+ role : "model" ,
1324+ parts : [
1325+ {
1326+ functionCall : { id : "tool_0" , name : "lookup" , args : { query : "weather" } } ,
1327+ thoughtSignature : "skip_thought_signature_validator" ,
1328+ } ,
1329+ {
1330+ functionCall : { id : "tool_1" , name : "lookup" , args : { query : "news" } } ,
1331+ thoughtSignature : "skip_thought_signature_validator" ,
1332+ } ,
1333+ ] ,
1334+ } )
13391335 } ) ,
13401336 )
13411337
0 commit comments