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
Certain inference providers like Groq put some additional information in other fields in an error response. For example if tool calls / json mode is on groq and the schema validation fails, it will tell you to look at the failed_generation. This is not currently accessible from the vercel AI SDK.
Additional context
If you want to see what I mean, just try bumping up the temperature to 2 on a generateObject from groq and use a somewhat complicated schema.
The text was updated successfully, but these errors were encountered:
Feature Description
It would be really nice if generateText or generateObject could expose the full response, like so:
Use Case
Certain inference providers like Groq put some additional information in other fields in an error response. For example if tool calls / json mode is on groq and the schema validation fails, it will tell you to look at the failed_generation. This is not currently accessible from the vercel AI SDK.
Additional context
If you want to see what I mean, just try bumping up the temperature to 2 on a generateObject from groq and use a somewhat complicated schema.
The text was updated successfully, but these errors were encountered: