Erste Schritte mit der Gemini API in der Agent Platform mit cURL Rezensionen
65118 Rezensionen
Takayuki H. · Vor etwa 2 Monate überprüft
Priya J. · Vor etwa 2 Monate überprüft
Lucas C. · Vor etwa 2 Monate überprüft
bala chandar k. · Vor etwa 2 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 etwa 2 Monate überprüft
Mayank S. · Vor etwa 2 Monate überprüft
NIPUN S. · Vor etwa 2 Monate überprüft
Sunny T. · Vor etwa 2 Monate überprüft
Hansraj P. · Vor etwa 2 Monate überprüft
all went well in the 2nd attempt
Naveen K. · Vor etwa 2 Monate überprüft
Neha V. · Vor etwa 2 Monate überprüft
In Yong Sta. Maria L. · Vor etwa 2 Monate überprüft
vanaja p. · Vor etwa 2 Monate überprüft
Laura H. · Vor etwa 2 Monate überprüft
Sneha P. · Vor etwa 2 Monate überprüft
Amit S. · Vor etwa 2 Monate überprüft
Amit S. · Vor etwa 2 Monate überprüft
Ryan F. · Vor etwa 2 Monate überprüft
Jeba Shiny J. · Vor etwa 2 Monate überprüft
Erivan B. · Vor etwa 2 Monate überprüft
Bharath R. · Vor etwa 2 Monate überprüft
Ashish M. · Vor etwa 2 Monate überprüft
Radu R. · Vor etwa 2 Monate überprüft
Reina L. · Vor etwa 2 Monate überprüft
It's good to start
Quang Long B. · Vor etwa 2 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.