Skip to content

Commit f41288f

Browse files
author
Cloud Shell
committed
chore: lint functionCallingStreamContent
1 parent c4a94a7 commit f41288f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

generative-ai/snippets/functionCallingStreamContent.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,16 @@ async function functionCallingStreamChat(
7474
{
7575
functionCall: {
7676
name: 'get_current_weather',
77-
args: {'location': 'Boston'},
77+
args: {location: 'Boston'},
7878
},
79-
}
79+
},
8080
],
8181
},
8282
{role: 'function', parts: functionResponseParts},
8383
],
8484
tools: functionDeclarations,
8585
};
86-
const streamingResp =
87-
await generativeModel.generateContentStream(request);
86+
const streamingResp = await generativeModel.generateContentStream(request);
8887
for await (const item of streamingResp.stream) {
8988
console.log(item.candidates[0].content.parts[0].text);
9089
}

0 commit comments

Comments
 (0)