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

65542 reviews

Archana C. · Reviewed 4 месяцев ago

Abhiram y. · Reviewed 4 месяцев ago

pathetic

GitPhantom 0. · Reviewed 4 месяцев ago

burak t. · Reviewed 4 месяцев ago

Vishesh D. · Reviewed 4 месяцев ago

Shishir J. · Reviewed 4 месяцев ago

John Paolo C. · Reviewed 4 месяцев ago

Maria Teresa L. · Reviewed 4 месяцев ago

Santosh C. · Reviewed 4 месяцев ago

Zina R. · Reviewed 4 месяцев ago

Takayuki H. · Reviewed 4 месяцев ago

Priya J. · Reviewed 4 месяцев ago

Lucas C. · Reviewed 4 месяцев ago

bala chandar k. · Reviewed 4 месяцев 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 4 месяцев ago

Mayank S. · Reviewed 4 месяцев ago

NIPUN S. · Reviewed 4 месяцев ago

Sunny T. · Reviewed 4 месяцев ago

Hansraj P. · Reviewed 4 месяцев ago

all went well in the 2nd attempt

Naveen K. · Reviewed 4 месяцев ago

Neha V. · Reviewed 4 месяцев ago

In Yong Sta. Maria L. · Reviewed 4 месяцев ago

vanaja p. · Reviewed 4 месяцев ago

Laura H. · Reviewed 4 месяцев ago

Sneha P. · Reviewed 4 месяцев ago

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