You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for await (const chunk of stream) {
console.log(chunk.text) // works fine
}
const result = await response;
console.log(result.text); // string is empty
Expected behavior
When using Anthropic models or Groq models, the text property on the response is the concatenated string of the chunks as expected
Affected plugin(s)
Describe the bug
generateStream has empty (await response).text when using OpenAI models
To Reproduce
Steps to reproduce the behavior:
const { stream, response } = await aiInstance.generateStream(
generateConfig
);
for await (const chunk of stream) {
console.log(chunk.text) // works fine
}
const result = await response;
console.log(result.text); // string is empty
Expected behavior
When using Anthropic models or Groq models, the text property on the response is the concatenated string of the chunks as expected
Screenshots
Plugin(s) version:
"genkitx-anthropic": "^0.12.0",
"genkitx-groq": "^0.12.0",
"genkitx-openai": "^0.12.0",
Genkit version:
"genkit": "^0.9.12",
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: