Skip to content

Commit b60cf68

Browse files
Update safety_settings.sh
1 parent 4ab3e54 commit b60cf68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/rest/safety_settings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo "[START safety_settings]"
1010
"parts":[{
1111
"text": "'I support Martians Soccer Club and I think Jupiterians Football Club sucks! Write a ironic phrase about them.'"}]}]}' > request.json
1212

13-
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
13+
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \
1414
-H 'Content-Type: application/json' \
1515
-X POST \
1616
-d @request.json 2> /dev/null
@@ -27,7 +27,7 @@ echo "[START safety_settings_multi]"
2727
"parts":[{
2828
"text": "'I support Martians Soccer Club and I think Jupiterians Football Club sucks! Write a ironic phrase about them.'"}]}]}' > request.json
2929

30-
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
30+
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \
3131
-H 'Content-Type: application/json' \
3232
-X POST \
3333
-d @request.json 2> /dev/null

0 commit comments

Comments
 (0)