Opiniones sobre Comienza a usar la API de Gemini en Agent Platform con cURL

64607 opiniones

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. · Se revisó hace 5 minutos

Mayank S. · Se revisó hace 1 hora

NIPUN S. · Se revisó hace 1 hora

Sunny T. · Se revisó hace 1 hora

Hansraj P. · Se revisó hace 4 horas

all went well in the 2nd attempt

Naveen K. · Se revisó hace 6 horas

Neha V. · Se revisó hace 6 horas

In Yong Sta. Maria L. · Se revisó hace 7 horas

vanaja p. · Se revisó hace 16 horas

Laura G. · Se revisó hace 20 horas

Sneha P. · Se revisó hace 1 día

Amit S. · Se revisó hace 1 día

Amit S. · Se revisó hace 1 día

Ryan F. · Se revisó hace 1 día

Jeba Shiny J. · Se revisó hace 1 día

Erivan B. · Se revisó hace 1 día

Bharath R. · Se revisó hace 1 día

Ashish M. · Se revisó hace 1 día

Radu R. · Se revisó hace 1 día

Reina L. · Se revisó hace 1 día

It's good to start

Quang Long B. · Se revisó hace 1 día

Bollam N. · Se revisó hace 1 día

Kirthika M. · Se revisó hace 1 día

greate

Duong K. · Se revisó hace 1 día

Gregorio P. · Se revisó hace 1 día

No garantizamos que las opiniones publicadas provengan de consumidores que hayan comprado o utilizado los productos. Google no verifica las opiniones.