From 2585ae76423f24c38089856c4110856b348ec2b3 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 26 Oct 2024 13:51:21 -0700 Subject: [PATCH] Use double quotes for JSON object keys --- samples/rest/code_execution.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/rest/code_execution.sh b/samples/rest/code_execution.sh index 73c297777..44fbf679c 100644 --- a/samples/rest/code_execution.sh +++ b/samples/rest/code_execution.sh @@ -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": { @@ -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",