Skip to content

fix (provider/google): allow "OFF" for Google HarmBlockThreshold #5550

New issue

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

Merged
merged 2 commits into from
Apr 6, 2025

Conversation

kvnang
Copy link
Contributor

@kvnang kvnang commented Apr 4, 2025

"OFF" can be included and it does not fail when used on API requests. Using other unsupported strings will return an error.

See also:
https://ai.google.dev/api/generate-content#HarmBlockThreshold

"OFF" can be included and it does not fail when used on API requests. Using other unsupported strings will return an error.

See also:
https://ai.google.dev/api/generate-content#HarmBlockThreshold
@lgrammel lgrammel changed the title Allow "OFF" for Google HarmBlockThreshold fix (provider/google): allow "OFF" for Google HarmBlockThreshold Apr 5, 2025
@lgrammel
Copy link
Collaborator

lgrammel commented Apr 5, 2025

Please add a patch changeset for @ai-sdk/google with the PR title as description

@kvnang
Copy link
Contributor Author

kvnang commented Apr 5, 2025

Please add a patch changeset for @ai-sdk/google with the PR title as description

Patch changeset added, thanks!

@lgrammel lgrammel merged commit 1e8e66d into vercel:main Apr 6, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants