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: generativelanguage.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://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro: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              "parts": [
33                {
34                  "text": "Of course!\n\nThe most common ways to say \"hi\" in Portuguese are:\n\n*   **Olá** (oh-LAH) - This is the direct translation of \"hello\" and can be used in any situation, formal or informal.\n*   **Oi** (OY) - This is more like \"hi\" and is very common and casual, especially in Brazil.\n\nYou can also use greetings that depend on the time of day:\n\n*   **Bom dia** (bohm GEE-ah) - Good morning\n*   **Boa tarde** (BOH-ah TAR-jee) - Good afternoon\n*   **Boa noite** (BOH-ah NOY-chee) - Good evening / Good night"
35                }
36              ],
37              "role": "model"
38            },
39            "finishReason": "STOP",
40            "index": 0
41          }
42        ],
43        "usageMetadata": {
44          "promptTokenCount": 11,
45          "candidatesTokenCount": 152,
46          "totalTokenCount": 816,
47          "promptTokensDetails": [
48            {
49              "modality": "TEXT",
50              "tokenCount": 11
51            }
52          ],
53          "thoughtsTokenCount": 653
54        },
55        "modelVersion": "gemini-2.5-pro",
56        "responseId": "aACzadbaBJboz7IPu7SlwQE"
57      }
58    headers:
59      Content-Type:
60      - application/json; charset=UTF-8
61    status: 200 OK
62    code: 200
63    duration: 9.00807775s