11interactions :
22- request :
3- body : " {\n \" contents\" : [\n {\n \" role\" : \" user\" ,\n \" parts\" :
4- [\n {\n \" fileData\" : {\n \" mimeType\" : \" image/jpeg\" ,\n
5- \ \" fileUri\" : \" gs://generativeai-downloads/images/scones.jpg\"\n
6- \ }\n },\n {\n \" text\" : \" what is shown in this
7- image?\"\n }\n ]\n }\n ]\n }"
3+ body : |-
4+ {
5+ "contents": [
6+ {
7+ "role": "user",
8+ "parts": [
9+ {
10+ "fileData": {
11+ "mimeType": "image/jpeg",
12+ "fileUri": "gs://generativeai-downloads/images/scones.jpg"
13+ }
14+ },
15+ {
16+ "text": "what is shown in this image?"
17+ }
18+ ]
19+ }
20+ ]
21+ }
822 headers :
923 Accept :
1024 - ' */*'
@@ -22,26 +36,60 @@ interactions:
2236 uri : https://us-central1-aiplatform.googleapis.com/v1beta1/projects/fake-project/locations/us-central1/publishers/google/models/gemini-pro-vision:generateContent?%24alt=json%3Benum-encoding%3Dint
2337 response :
2438 body :
25- string : " {\n \" candidates\" : [\n {\n \" content\" : {\n \" role\" :
26- \" model\" ,\n \" parts\" : [\n {\n \" text\" : \" The
27- image shows a table with a cup of coffee, a bowl of blueberries, and a plate
28- of scones. There are also some flowers on the table.\"\n }\n ]\n
29- \ },\n \" finishReason\" : 1,\n \" safetyRatings\" : [\n {\n
30- \ \" category\" : 1,\n \" probability\" : 1,\n \" probabilityScore\" :
31- 0.02331543,\n \" severity\" : 1,\n \" severityScore\" : 0.05493164\n
32- \ },\n {\n \" category\" : 2,\n \" probability\" :
33- 1,\n \" probabilityScore\" : 0.026367188,\n \" severity\" :
34- 1,\n \" severityScore\" : 0.05493164\n },\n {\n \" category\" :
35- 3,\n \" probability\" : 1,\n \" probabilityScore\" : 0.046142578,\n
36- \ \" severity\" : 1,\n \" severityScore\" : 0.030639648\n },\n
37- \ {\n \" category\" : 4,\n \" probability\" : 1,\n \" probabilityScore\" :
38- 0.080566406,\n \" severity\" : 1,\n \" severityScore\" : 0.095214844\n
39- \ }\n ],\n \" avgLogprobs\" : -0.11595650642148909\n }\n
40- \ ],\n \" usageMetadata\" : {\n \" promptTokenCount\" : 265,\n \" candidatesTokenCount\" :
41- 31,\n \" totalTokenCount\" : 296\n },\n \" modelVersion\" : \" gemini-pro-vision\"\n }\n "
39+ string : |-
40+ {
41+ "candidates": [
42+ {
43+ "content": {
44+ "role": "model",
45+ "parts": [
46+ {
47+ "text": " The image shows a table with a cup of coffee, a bowl of blueberries, and a plate of scones with blueberries on top. There are also pink flowers on the table."
48+ }
49+ ]
50+ },
51+ "finishReason": 1,
52+ "safetyRatings": [
53+ {
54+ "category": 1,
55+ "probability": 1,
56+ "probabilityScore": 0.025512695,
57+ "severity": 1,
58+ "severityScore": 0.06933594
59+ },
60+ {
61+ "category": 2,
62+ "probability": 1,
63+ "probabilityScore": 0.026367188,
64+ "severity": 1,
65+ "severityScore": 0.07080078
66+ },
67+ {
68+ "category": 3,
69+ "probability": 1,
70+ "probabilityScore": 0.041503906,
71+ "severity": 1,
72+ "severityScore": 0.03466797
73+ },
74+ {
75+ "category": 4,
76+ "probability": 1,
77+ "probabilityScore": 0.091308594,
78+ "severity": 1,
79+ "severityScore": 0.09033203
80+ }
81+ ],
82+ "avgLogprobs": -0.09557106835501535
83+ }
84+ ],
85+ "usageMetadata": {
86+ "promptTokenCount": 265,
87+ "candidatesTokenCount": 35,
88+ "totalTokenCount": 300
89+ },
90+ "modelVersion": "gemini-pro-vision"
91+ }
4292 headers :
43- Cache-Control :
44- - private
4593 Content-Type :
4694 - application/json; charset=UTF-8
4795 Transfer-Encoding :
@@ -51,7 +99,7 @@ interactions:
5199 - X-Origin
52100 - Referer
53101 content-length :
54- - ' 1275 '
102+ - ' 1299 '
55103 status :
56104 code : 200
57105 message : OK
0 commit comments