Skip to content

Commit c16df61

Browse files
authored
Use double quotes for JSON object keys (#612)
1 parent db8221a commit c16df61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/rest/code_execution.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo "[START code_execution_basic]"
44
# [START code_execution_basic]
55
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
66
-H 'Content-Type: application/json' \
7-
-d ' {"tools": [{'code_execution': {}}],
7+
-d ' {"tools": [{"code_execution": {}}],
88
"contents": {
99
"parts":
1010
{
@@ -18,7 +18,7 @@ echo "[START code_execution_chat]"
1818
# [START code_execution_chat]
1919
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
2020
-H 'Content-Type: application/json' \
21-
-d '{"tools": [{'code_execution': {}}],
21+
-d '{"tools": [{"code_execution": {}}],
2222
"contents": [
2323
{
2424
"role": "user",

0 commit comments

Comments
 (0)