Skip to content

Commit f9b1fd4

Browse files
committed
fix: Use USER and ASSISTANT in functionCallingStreamContent.js
1 parent 5bd0c38 commit f9b1fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generative-ai/snippets/function-calling/functionCallingStreamContent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function functionCallingStreamContent(
7070
contents: [
7171
{role: 'user', parts: [{text: 'What is the weather in Boston?'}]},
7272
{
73-
role: 'model',
73+
role: 'ASSISTANT',
7474
parts: [
7575
{
7676
functionCall: {
@@ -80,7 +80,7 @@ async function functionCallingStreamContent(
8080
},
8181
],
8282
},
83-
{role: 'user', parts: functionResponseParts},
83+
{role: 'USER', parts: functionResponseParts},
8484
],
8585
tools: functionDeclarations,
8686
};

0 commit comments

Comments
 (0)