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
Anthropic. Don't get this error With OpenAI, I think. Probably something to do with tools declaration, but would be nice to get better feedback than just that stack above.
The text was updated successfully, but these errors were encountered:
Can you share the code you use to call streamText?
Anthropic does not support structured outputs with streamText (we use tool calls with streamObject/generateObject), so this might not work with Anthropic.
Description
Still need to understand why this is happening... but there seems to at least be a problem in the code.
Comment + check for nullish
lastStep
here:ai/packages/ai/core/generate-text/stream-text.ts
Lines 534 to 536 in 952cbdf
but then accessed without care here:
ai/packages/ai/core/generate-text/stream-text.ts
Line 569 in 952cbdf
Produces this stack trace:
AI provider
Anthropic. Don't get this error With OpenAI, I think. Probably something to do with tools declaration, but would be nice to get better feedback than just that stack above.
The text was updated successfully, but these errors were encountered: