InvalidToolArgumentsError -> NoOutputGeneratedError after V4 -> V5 Upgrade #9182
Replies: 1 comment
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
I'm looking for a bit of guidance around a change we noticed after upgrading AI SDK from V4 -> V5.
Versions:
5.0.512.0.34We have a chat use case with streaming, tool calls, and using OpenAI chat completions API with gpt-5. We explicitly set to chat completions before and after.
The only differences in the OpenAI HTTP requests are:
strictin the tools, and afterstrictis explicitly set to falseWe see a case where we had errors like the following before the upgrade:
After our upgrade, this error never happens, but we instead get this error (at the ~same rate):
Because it's a very clear switch over; I suspect they have the same root cause. But the latter error is uninformative. So we suspect something in our upgrade caused this; but the error doesn't really contain any information. We are processing error chunks in the stream, and there are no errors we see.
Note: I would provide a minimal reproduction if possible; this seems somewhat ~random. There's not a clear pattern we've been able to discern when this happens.
Any guidance around what to look for is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions