Premiers pas avec l'API Gemini dans Agent Platform et les commandes cURL avis

64607 avis

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. · Examiné il y a 5 minutes

Mayank S. · Examiné il y a 1 heure

NIPUN S. · Examiné il y a 1 heure

Sunny T. · Examiné il y a 1 heure

Hansraj P. · Examiné il y a 4 heures

all went well in the 2nd attempt

Naveen K. · Examiné il y a 6 heures

Neha V. · Examiné il y a 6 heures

In Yong Sta. Maria L. · Examiné il y a 7 heures

vanaja p. · Examiné il y a 16 heures

Laura G. · Examiné il y a 20 heures

Sneha P. · Examiné il y a 1 jour

Amit S. · Examiné il y a 1 jour

Amit S. · Examiné il y a 1 jour

Ryan F. · Examiné il y a 1 jour

Jeba Shiny J. · Examiné il y a 1 jour

Erivan B. · Examiné il y a 1 jour

Bharath R. · Examiné il y a 1 jour

Ashish M. · Examiné il y a 1 jour

Radu R. · Examiné il y a 1 jour

Reina L. · Examiné il y a 1 jour

It's good to start

Quang Long B. · Examiné il y a 1 jour

Bollam N. · Examiné il y a 1 jour

Kirthika M. · Examiné il y a 1 jour

greate

Duong K. · Examiné il y a 1 jour

Gregorio P. · Examiné il y a 1 jour

Nous ne pouvons pas certifier que les avis publiés proviennent de consommateurs qui ont acheté ou utilisé les produits. Les avis ne sont pas vérifiés par Google.