Getting Started with the Gemini API in Agent Platform with cURL Reviews

65118 reviews

Takayuki H. · Reviewed около 2 месяцев ago

Priya J. · Reviewed около 2 месяцев ago

Lucas C. · Reviewed около 2 месяцев ago

bala chandar k. · Reviewed около 2 месяцев ago

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. · Reviewed около 2 месяцев ago

Mayank S. · Reviewed около 2 месяцев ago

NIPUN S. · Reviewed около 2 месяцев ago

Sunny T. · Reviewed около 2 месяцев ago

Hansraj P. · Reviewed около 2 месяцев ago

all went well in the 2nd attempt

Naveen K. · Reviewed около 2 месяцев ago

Neha V. · Reviewed около 2 месяцев ago

In Yong Sta. Maria L. · Reviewed около 2 месяцев ago

vanaja p. · Reviewed около 2 месяцев ago

Laura H. · Reviewed около 2 месяцев ago

Sneha P. · Reviewed около 2 месяцев ago

Amit S. · Reviewed около 2 месяцев ago

Amit S. · Reviewed около 2 месяцев ago

Ryan F. · Reviewed около 2 месяцев ago

Jeba Shiny J. · Reviewed около 2 месяцев ago

Erivan B. · Reviewed около 2 месяцев ago

Bharath R. · Reviewed около 2 месяцев ago

Ashish M. · Reviewed около 2 месяцев ago

Radu R. · Reviewed около 2 месяцев ago

Reina L. · Reviewed около 2 месяцев ago

It's good to start

Quang Long B. · Reviewed около 2 месяцев ago

We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.