Erste Schritte mit der Gemini API in der Agent Platform mit cURL Rezensionen
65542 Rezensionen
Archana C. · Vor 4 Monate überprüft
Abhiram y. · Vor 4 Monate überprüft
pathetic
GitPhantom 0. · Vor 4 Monate überprüft
burak t. · Vor 4 Monate überprüft
Vishesh D. · Vor 4 Monate überprüft
Shishir J. · Vor 4 Monate überprüft
John Paolo C. · Vor 4 Monate überprüft
Maria Teresa L. · Vor 4 Monate überprüft
Santosh C. · Vor 4 Monate überprüft
Zina R. · Vor 4 Monate überprüft
Takayuki H. · Vor 4 Monate überprüft
Priya J. · Vor 4 Monate überprüft
Lucas C. · Vor 4 Monate überprüft
bala chandar k. · Vor 4 Monate überprüft
many error: jq: error (at response.json:7): Cannot iterate over null (null) --------------------------------------------------------------------------- CalledProcessError Traceback (most recent call last) Cell In[15], line 1 ----> 1 get_ipython().run_cell_magic('bash', '', '\ncurl -X POST \\\n -H "Authorization: Bearer $(gcloud auth print-access-token)" \\\n -H "Content-Type: application/json" \\\n https://${API_ENDPOINT}:generateContent \\\n -d \'{\n "contents": {\n "role": "user",\n "parts": {\n "text": "List a few popular cookie recipes."\n }\n },\n "generationConfig": {\n "response_mime_type": "application/json",\n "response_schema": {"type": "object", "properties": {"recipe_name": {"type": "string"}}}\n },\n}\' 2>/dev/null >response.json\n\njq -r ".candidates[].content.parts[].text" response.json\n') CalledProcessError: Command 'b'\ncurl -X POST \\\n -H "Authorization: Bearer $(gcloud auth print-access-token)" \\\n -H "Content-Type: application/json" \\\n https://${API_ENDPOINT}:generateContent \\\n -d \'{\n "contents": {\n "role": "user",\n "parts": {\n "text": "List a few popular cookie recipes."\n }\n },\n "generationConfig": {\n "response_mime_type": "application/json",\n "response_schema": {"type": "object", "properties": {"recipe_name": {"type": "string"}}}\n },\n}\' 2>/dev/null >response.json\n\njq -r ".candidates[].content.parts[].text" response.json\n'' returned non-zero exit status 5.
Zhihao C. · Vor 4 Monate überprüft
Mayank S. · Vor 4 Monate überprüft
NIPUN S. · Vor 4 Monate überprüft
Sunny T. · Vor 4 Monate überprüft
Hansraj P. · Vor 4 Monate überprüft
all went well in the 2nd attempt
Naveen K. · Vor 4 Monate überprüft
Neha V. · Vor 4 Monate überprüft
In Yong Sta. Maria L. · Vor 4 Monate überprüft
vanaja p. · Vor 4 Monate überprüft
Laura H. · Vor 4 Monate überprüft
Sneha P. · Vor 4 Monate überprüft
Wir können nicht garantieren, dass die veröffentlichten Rezensionen von Verbrauchern stammen, die die Produkte gekauft oder genutzt haben. Die Rezensionen werden von Google nicht überprüft.