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
This is an inconsistent bug, but it triggers around 10% of the time. First, there's no error being thrown (maybe due to this #3875). And if you add a console.error in that dist, here's the error being thrown server-side:
Code example
AI provider
"@ai-sdk/openai": "^1.0.4",
Additional context
It seems to happen when using a bunch of tools & streaming to useChat.
The text was updated successfully, but these errors were encountered:
I also noticed that the content comes through as empty for chats that error out, so maybe it's related to this? #3263 (comment)
Using node v20.16.0
Edit 1: Noticed that when it errors out & you enable error streaming to the client, it throws this: Model tried to call unavailable tool 'multi_tool_use.parallel'.
I wonder if it's a tool hallucination coming from OpenAI?
Edit 2: Is there a way to turn off parallelToolCalls on streamText / useChat / result.toDataStreamResponse?
oalexdoda
changed the title
Data stream has already been closed.
Model tried to call unavailable tool 'multi_tool_use.parallel' | Data stream has already been closed.
Nov 25, 2024
oalexdoda
changed the title
Model tried to call unavailable tool 'multi_tool_use.parallel' | Data stream has already been closed.
🐞 Model tried to call unavailable tool 'multi_tool_use.parallel' | Data stream has already been closed.
Nov 25, 2024
Description
This is an inconsistent bug, but it triggers around 10% of the time. First, there's no error being thrown (maybe due to this #3875). And if you add a console.error in that dist, here's the error being thrown server-side:
Code example
AI provider
"@ai-sdk/openai": "^1.0.4",
Additional context
It seems to happen when using a bunch of tools & streaming to useChat.
The text was updated successfully, but these errors were encountered: