Skip to content

Commit

Permalink
fix: Use USER and ASSISTANT in functionCallingStreamContent.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NimJay committed Nov 4, 2024
1 parent 5bd0c38 commit f9b1fd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function functionCallingStreamContent(
contents: [
{role: 'user', parts: [{text: 'What is the weather in Boston?'}]},
{
role: 'model',
role: 'ASSISTANT',
parts: [
{
functionCall: {
Expand All @@ -80,7 +80,7 @@ async function functionCallingStreamContent(
},
],
},
{role: 'user', parts: functionResponseParts},
{role: 'USER', parts: functionResponseParts},
],
tools: functionDeclarations,
};
Expand Down

0 comments on commit f9b1fd4

Please sign in to comment.