Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

add safety settings examples for curl#433

Merged
MarkDaoust merged 2 commits intogoogle-gemini:mainfrom
shilpakancharla:safety_rest
Jul 17, 2024
Merged

add safety settings examples for curl#433
MarkDaoust merged 2 commits intogoogle-gemini:mainfrom
shilpakancharla:safety_rest

Conversation

@shilpakancharla
Copy link
Contributor

@shilpakancharla shilpakancharla commented Jul 3, 2024

No description provided.

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Jul 3, 2024
# [START safety_settings]
echo '{
"safetySettings": [
{'category': 7, 'threshold': 3}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer names instead of integers (the full names work here, right?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm honestly not sure. In the cookbook we use the integers.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just try it bash samples/rest/safety_settings.sh

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@MarkDaoust MarkDaoust merged commit e8ad653 into google-gemini:main Jul 17, 2024
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Jul 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component:python sdk Issue/PR related to Python SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants