关于“在 Agent Platform 中通过 cURL 快速上手 Gemini API”的评价

64607 条评价

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. · 已于 6 minutes前审核

Mayank S. · 已于 1 小时前审核

NIPUN S. · 已于 1 小时前审核

Sunny T. · 已于 1 小时前审核

Hansraj P. · 已于 4 小时前审核

all went well in the 2nd attempt

Naveen K. · 已于 6 小时前审核

Neha V. · 已于 6 小时前审核

In Yong Sta. Maria L. · 已于 7 小时前审核

vanaja p. · 已于 16 小时前审核

Laura G. · 已于 20 小时前审核

Sneha P. · 已于 1 day前审核

Amit S. · 已于 1 day前审核

Amit S. · 已于 1 day前审核

Ryan F. · 已于 1 day前审核

Jeba Shiny J. · 已于 1 day前审核

Erivan B. · 已于 1 day前审核

Bharath R. · 已于 1 day前审核

Ashish M. · 已于 1 day前审核

Radu R. · 已于 1 day前审核

Reina L. · 已于 1 day前审核

It's good to start

Quang Long B. · 已于 1 day前审核

Bollam N. · 已于 1 day前审核

Kirthika M. · 已于 1 day前审核

greate

Duong K. · 已于 1 day前审核

Gregorio P. · 已于 1 day前审核

我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。