We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using google gemini, ai sdk would treat IMAGE_SAFETY and some other reasons as unknown finish reason in streamText
IMAGE_SAFETY
unknown
streamText
data: {"candidates": [{"finishReason": "IMAGE_SAFETY","index": 0}],"usageMetadata": {"promptTokenCount": 8,"totalTokenCount": 8,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 8}]},"modelVersion": "gemini-2.0-flash-exp"}
need the underlying finish reason to display warnings to user properly
No response
The text was updated successfully, but these errors were encountered:
#5311 maps IMAGE_SAFETY to content-filter. Leaving the issue open since the raw finish reason is not exposed.
content-filter
Sorry, something went wrong.
Release @ai-sdk/[email protected]
@ai-sdk/[email protected]
No branches or pull requests
Feature Description
when using google gemini, ai sdk would treat
IMAGE_SAFETY
and some other reasons asunknown
finish reason instreamText
Use Cases
need the underlying finish reason to display warnings to user properly
Additional context
No response
The text was updated successfully, but these errors were encountered: