simple.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: 202
10    host: us-east5-aiplatform.googleapis.com
11    body: |
12      {"contents":[{"parts":[{"text":"Say hi in Portuguese"}],"role":"user"}],"generationConfig":{"maxOutputTokens":4000},"systemInstruction":{"parts":[{"text":"You are a helpful assistant"}],"role":"user"}}
13    headers:
14      Content-Type:
15      - application/json
16      User-Agent:
17      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
18      - google-genai-sdk/1.49.0 gl-go/go1.26.1
19    url: https://us-east5-aiplatform.googleapis.com/v1beta1/projects/fantasy-playground-472418/locations/us-east5/publishers/google/models/gemini-2.5-flash:generateContent
20    method: POST
21  response:
22    proto: HTTP/2.0
23    proto_major: 2
24    proto_minor: 0
25    content_length: -1
26    uncompressed: true
27    body: |
28      {
29        "candidates": [
30          {
31            "content": {
32              "role": "model",
33              "parts": [
34                {
35                  "text": "Olá!"
36                }
37              ]
38            },
39            "finishReason": "STOP",
40            "avgLogprobs": -0.6419329047203064
41          }
42        ],
43        "usageMetadata": {
44          "promptTokenCount": 9,
45          "candidatesTokenCount": 2,
46          "totalTokenCount": 35,
47          "trafficType": "ON_DEMAND",
48          "promptTokensDetails": [
49            {
50              "modality": "TEXT",
51              "tokenCount": 9
52            }
53          ],
54          "candidatesTokensDetails": [
55            {
56              "modality": "TEXT",
57              "tokenCount": 2
58            }
59          ],
60          "thoughtsTokenCount": 24
61        },
62        "modelVersion": "gemini-2.5-flash",
63        "createTime": "2026-03-12T18:05:55.473045Z",
64        "responseId": "gwCzadXvHKzFw-UPou_44AQ"
65      }
66    headers:
67      Content-Type:
68      - application/json; charset=UTF-8
69    status: 200 OK
70    code: 200
71    duration: 1.541615625s