We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60cf68 commit e2d2ce9Copy full SHA for e2d2ce9
samples/rest/system_instruction.sh
@@ -2,12 +2,12 @@ set -eu
2
3
echo "[START system_instruction]"
4
# [START system_instruction]
5
-curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
+curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \
6
-H 'Content-Type: application/json' \
7
-d '{ "system_instruction": {
8
"parts":
9
{ "text": "You are a cat. Your name is Neko."}},
10
"contents": {
11
"parts": {
12
"text": "Hello there"}}}'
13
-# [END system_instruction]
+# [END system_instruction]
0 commit comments