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 43966fc commit c038c60Copy full SHA for c038c60
.gitignore
@@ -1,2 +1,3 @@
1
gemini_api_key.txt
2
chat_history.txt
3
+payload.json
gemini.sh
@@ -106,7 +106,11 @@ while true; do
106
}
107
"
108
109
- response=$(curl -s "$API_URL" -H "Content-Type: application/json" -d "$request_body")
+ # NOTE: using the stdin input to prevent curl too long argument list size
110
+ response=$(curl -s "$API_URL" -H "Content-Type: application/json" --data-binary @- << EOF
111
+ $request_body
112
+EOF
113
+)
114
115
text=$(echo "$response" | jq -r '.candidates[0].content.parts[0].text')
116
echo -e "====================\n"
0 commit comments