google-vertex-gemini-2.5-pro.yaml

 1---
 2version: 2
 3interactions:
 4- id: 0
 5  request:
 6    proto: HTTP/1.1
 7    proto_major: 1
 8    proto_minor: 1
 9    content_length: 180
10    host: us-central1-aiplatform.googleapis.com
11    body: |
12      {"contents":[{"parts":[{"text":"Say hi in Portuguese"}],"role":"user"}],"generationConfig":{},"systemInstruction":{"parts":[{"text":"You are a helpful assistant"}],"role":"user"}}
13    headers:
14      Content-Type:
15      - application/json
16      User-Agent:
17      - google-genai-sdk/1.25.0 gl-go/go1.25.0
18    url: https://us-central1-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-central1/publishers/google/models/gemini-2.5-pro:generateContent
19    method: POST
20  response:
21    proto: HTTP/2.0
22    proto_major: 2
23    proto_minor: 0
24    content_length: -1
25    uncompressed: true
26    body: |
27      {
28        "candidates": [
29          {
30            "content": {
31              "role": "model",
32              "parts": [
33                {
34                  "text": "Of course! The most common ways to say \"hi\" in Portuguese are:\n\n*   **Olá** (oh-LAH) - This is the equivalent of \"hello\" and can be used in any situation.\n*   **Oi** (oy) - This is more informal, like \"hi,\" and is extremely common, especially in Brazil.\n\nYou can also use a greeting depending on the time of day:\n\n*   **Bom dia** (bohm JEE-ah) - Good morning\n*   **Boa tarde** (BOH-ah TAR-jee) - Good afternoon\n*   **Boa noite** (BOH-ah NOY-tchee) - Good evening / Good night"
35                }
36              ]
37            },
38            "finishReason": "STOP",
39            "avgLogprobs": -0.93591674386638479
40          }
41        ],
42        "usageMetadata": {
43          "promptTokenCount": 9,
44          "candidatesTokenCount": 146,
45          "totalTokenCount": 905,
46          "trafficType": "ON_DEMAND",
47          "promptTokensDetails": [
48            {
49              "modality": "TEXT",
50              "tokenCount": 9
51            }
52          ],
53          "candidatesTokensDetails": [
54            {
55              "modality": "TEXT",
56              "tokenCount": 146
57            }
58          ],
59          "thoughtsTokenCount": 750
60        },
61        "modelVersion": "gemini-2.5-pro",
62        "createTime": "2025-09-24T19:46:04.550048Z",
63        "responseId": "fErUaKDJIaChmecP8LzZwQs"
64      }
65    headers:
66      Content-Type:
67      - application/json; charset=UTF-8
68    status: 200 OK
69    code: 200
70    duration: 8.665756459s