Skip to content

Comments

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

Merged
lgrammel merged 2 commits intovercel:mainfrom
kvnang:patch-1
Apr 6, 2025
Merged

fix (provider/google): allow "OFF" for Google HarmBlockThreshold#5550
lgrammel merged 2 commits intovercel:mainfrom
kvnang:patch-1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants