Mulai Menggunakan Gemini API di Agent Platform dengan cURL Ulasan

64607 ulasan

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. · Diulas 5 menit lalu

Mayank S. · Diulas 1 jam lalu

NIPUN S. · Diulas 1 jam lalu

Sunny T. · Diulas 1 jam lalu

Hansraj P. · Diulas 4 jam lalu

all went well in the 2nd attempt

Naveen K. · Diulas 6 jam lalu

Neha V. · Diulas 6 jam lalu

In Yong Sta. Maria L. · Diulas 7 jam lalu

vanaja p. · Diulas 16 jam lalu

Laura G. · Diulas 20 jam lalu

Sneha P. · Diulas 1 hari lalu

Amit S. · Diulas 1 hari lalu

Amit S. · Diulas 1 hari lalu

Ryan F. · Diulas 1 hari lalu

Jeba Shiny J. · Diulas 1 hari lalu

Erivan B. · Diulas 1 hari lalu

Bharath R. · Diulas 1 hari lalu

Ashish M. · Diulas 1 hari lalu

Radu R. · Diulas 1 hari lalu

Reina L. · Diulas 1 hari lalu

It's good to start

Quang Long B. · Diulas 1 hari lalu

Bollam N. · Diulas 1 hari lalu

Kirthika M. · Diulas 1 hari lalu

greate

Duong K. · Diulas 1 hari lalu

Gregorio P. · Diulas 1 hari lalu

Kami tidak dapat memastikan bahwa ulasan yang dipublikasikan berasal dari konsumen yang telah membeli atau menggunakan produk terkait. Ulasan tidak diverifikasi oleh Google.