리뷰 cURL로 Agent Platform의 Gemini API 사용 시작하기개

리뷰 65118개

Takayuki H. · 대략 2개월 전에 리뷰됨

Priya J. · 대략 2개월 전에 리뷰됨

Lucas C. · 대략 2개월 전에 리뷰됨

bala chandar k. · 대략 2개월 전에 리뷰됨

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. · 대략 2개월 전에 리뷰됨

Mayank S. · 대략 2개월 전에 리뷰됨

NIPUN S. · 대략 2개월 전에 리뷰됨

Sunny T. · 대략 2개월 전에 리뷰됨

Hansraj P. · 대략 2개월 전에 리뷰됨

all went well in the 2nd attempt

Naveen K. · 대략 2개월 전에 리뷰됨

Neha V. · 대략 2개월 전에 리뷰됨

In Yong Sta. Maria L. · 대략 2개월 전에 리뷰됨

vanaja p. · 대략 2개월 전에 리뷰됨

Laura H. · 대략 2개월 전에 리뷰됨

Sneha P. · 대략 2개월 전에 리뷰됨

Amit S. · 대략 2개월 전에 리뷰됨

Amit S. · 대략 2개월 전에 리뷰됨

Ryan F. · 대략 2개월 전에 리뷰됨

Jeba Shiny J. · 대략 2개월 전에 리뷰됨

Erivan B. · 대략 2개월 전에 리뷰됨

Bharath R. · 대략 2개월 전에 리뷰됨

Ashish M. · 대략 2개월 전에 리뷰됨

Radu R. · 대략 2개월 전에 리뷰됨

Reina L. · 대략 2개월 전에 리뷰됨

It's good to start

Quang Long B. · 대략 2개월 전에 리뷰됨

Google은 게시된 리뷰가 제품을 구매 또는 사용한 소비자에 의해 작성되었음을 보증하지 않습니다. 리뷰는 Google의 인증을 거치지 않습니다.