@@ -367,7 +367,7 @@ describe('generateContentStream', () => {
367
367
contents : [
368
368
{ role : 'user' , parts : [ { text : 'What is the weather in Boston?' } ] } ,
369
369
{ role : 'model' , parts : FUNCTION_CALL } ,
370
- { role : 'model ' , parts : FUNCTION_RESPONSE_PART } ,
370
+ { role : 'user ' , parts : FUNCTION_RESPONSE_PART } ,
371
371
] ,
372
372
tools : TOOLS_WITH_FUNCTION_DECLARATION ,
373
373
} ;
@@ -387,7 +387,7 @@ describe('generateContentStream', () => {
387
387
contents : [
388
388
{ role : 'user' , parts : [ { text : 'What is the weather in Boston?' } ] } ,
389
389
{ role : 'model' , parts : FUNCTION_CALL } ,
390
- { role : 'model ' , parts : FUNCTION_RESPONSE_PART } ,
390
+ { role : 'user ' , parts : FUNCTION_RESPONSE_PART } ,
391
391
] ,
392
392
tools : TOOLS_WITH_FUNCTION_DECLARATION ,
393
393
} ;
@@ -534,7 +534,7 @@ describe('generateContent', () => {
534
534
contents : [
535
535
{ role : 'user' , parts : [ { text : 'What is the weather in Boston?' } ] } ,
536
536
{ role : 'model' , parts : FUNCTION_CALL } ,
537
- { role : 'model ' , parts : FUNCTION_RESPONSE_PART } ,
537
+ { role : 'user ' , parts : FUNCTION_RESPONSE_PART } ,
538
538
] ,
539
539
tools : TOOLS_WITH_FUNCTION_DECLARATION ,
540
540
} ;
@@ -552,7 +552,7 @@ describe('generateContent', () => {
552
552
contents : [
553
553
{ role : 'user' , parts : [ { text : 'What is the weather in Boston?' } ] } ,
554
554
{ role : 'model' , parts : FUNCTION_CALL } ,
555
- { role : 'model ' , parts : FUNCTION_RESPONSE_PART } ,
555
+ { role : 'user ' , parts : FUNCTION_RESPONSE_PART } ,
556
556
] ,
557
557
tools : TOOLS_WITH_FUNCTION_DECLARATION ,
558
558
} ;
0 commit comments