We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug I get an iterable of GenerateResponseChunkData from generateStream but GenerateResponseChunk would be better.
To Reproduce
const llmResponseStream: GenerateStreamResponse = await generateStream({ prompt: `Suggest a complete menu for a ${subject} themed restaurant`, model: gemini15Flash, }); for await (const responseChunk of llmResponseStream.stream()) { console.log(responseChunk.text()); // compiler error }
But if I add @ts-ignore before the line it compiles and works
@ts-ignore
Expected behavior
I want to use all of GenerateResponseChunk's useful methods. In fact I think it's required for partial structured output
Screenshots If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):
** Node version
node --version
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I get an iterable of GenerateResponseChunkData from generateStream but GenerateResponseChunk would be better.
To Reproduce
But if I add
@ts-ignore
before the line it compiles and worksExpected behavior
I want to use all of GenerateResponseChunk's useful methods. In fact I think it's required for partial structured output
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):
** Node version
node --version
at paste hereAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: