We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8221a commit c16df61Copy full SHA for c16df61
samples/rest/code_execution.sh
@@ -4,7 +4,7 @@ echo "[START code_execution_basic]"
4
# [START code_execution_basic]
5
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=$GOOGLE_API_KEY" \
6
-H 'Content-Type: application/json' \
7
--d ' {"tools": [{'code_execution': {}}],
+-d ' {"tools": [{"code_execution": {}}],
8
"contents": {
9
"parts":
10
{
@@ -18,7 +18,7 @@ echo "[START code_execution_chat]"
18
# [START code_execution_chat]
19
20
21
--d '{"tools": [{'code_execution': {}}],
+-d '{"tools": [{"code_execution": {}}],
22
"contents": [
23
24
"role": "user",
0 commit comments