Open gericdong opened 1 month ago
seems like https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/main/generative-ai/snippets/nonStreamingMultipartContent.js also is using generateContentStream which seems like the fix you're putting forward here. (I got distracted with the changes to the grounding sample that don't seem to be to do with the nonstream method.
Description
Fixes b/325521336
Streaming method was used incorrectly in a non streaming sample.
Checklist
npm test
(see Testing)npm run lint
(see Style)