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
When generating structured output (like generateObject), some models like DeepSeek v3 failed to follow the instructions and generate json in a code block instead:
which makes ai sdk throw the following error:
No object generated: could not parse the response.
It would be nice if we can modify the output the remove the code fence before ai sdk starts to parse it
Use Cases
make json response work in other models
Additional context
No response
The text was updated successfully, but these errors were encountered:
Feature Description
When generating structured output (like
generateObject
), some models like DeepSeek v3 failed to follow the instructions and generate json in a code block instead:which makes ai sdk throw the following error:
It would be nice if we can modify the output the remove the code fence before ai sdk starts to parse it
Use Cases
make json response work in other models
Additional context
No response
The text was updated successfully, but these errors were encountered: