Skip to content

Commit

Permalink
Use double quotes for JSON object keys (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter authored Oct 29, 2024
1 parent db8221a commit c16df61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/rest/code_execution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "[START code_execution_basic]"
# [START code_execution_basic]
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
-H 'Content-Type: application/json' \
-d ' {"tools": [{'code_execution': {}}],
-d ' {"tools": [{"code_execution": {}}],
"contents": {
"parts":
{
Expand All @@ -18,7 +18,7 @@ echo "[START code_execution_chat]"
# [START code_execution_chat]
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"tools": [{'code_execution': {}}],
-d '{"tools": [{"code_execution": {}}],
"contents": [
{
"role": "user",
Expand Down

0 comments on commit c16df61

Please sign in to comment.