simple_streaming.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: 256
10    host: ""
11    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}'
12    headers:
13      Accept:
14      - application/json
15      Content-Type:
16      - application/json
17      User-Agent:
18      - OpenAI/Go 2.7.1
19    url: https://openrouter.ai/api/v1/chat/completions
20    method: POST
21  response:
22    proto: HTTP/2.0
23    proto_major: 2
24    proto_minor: 0
25    content_length: -1
26    body: |+
27      data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Discovering Greetings in Portuguese**\n\nI've homed in on the core of the user's request: translating \"hi\" to Portuguese. So far, the process is straightforward; I've parsed the prompt, confirming that the user is seeking a Portuguese greeting. Now I'm meticulously generating a list of possible translations. *Oi* is definitely the most prevalent, and the informal tone is noted. What else is there?\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Discovering Greetings in Portuguese**\n\nI've homed in on the core of the user's request: translating \"hi\" to Portuguese. So far, the process is straightforward; I've parsed the prompt, confirming that the user is seeking a Portuguese greeting. Now I'm meticulously generating a list of possible translations. *Oi* is definitely the most prevalent, and the informal tone is noted. What else is there?\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}
28
29      data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Considering Cultural Context in Translations**\n\nI'm now integrating the cultural dimensions of the prompt. I've mapped the primary translations (*Oi* and *Olá*), and the next step is layering in considerations of formality and regional variances. I'm focusing on providing context; for instance, is there an advantage to using one greeting over another in a specific circumstance? The goal is to convey not just the words, but the nuances of how they're used.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Considering Cultural Context in Translations**\n\nI'm now integrating the cultural dimensions of the prompt. I've mapped the primary translations (*Oi* and *Olá*), and the next step is layering in considerations of formality and regional variances. I'm focusing on providing context; for instance, is there an advantage to using one greeting over another in a specific circumstance? The goal is to convey not just the words, but the nuances of how they're used.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}
30
31      data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"You can say **\"Oi\"** (informal) or **\"Olá\"** (slightly more formal, but suitable for almost any situation).","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
32
33      data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"CikBjz1rXzWbLe+Kp5V9HEz6zONyB+8lsCyQ3JFwB6LAFferupDkixSwZwpfAY89a18NaFyuCwQI5J1JbcCbdb1mCIKlD6SqZ80wKXXlkPO5v2Ri3T9EuhV4sXjEm2wU4yrwfl+8m2yXhX8QGmzR8h5ehp20DDGaAaAFkjJqDKJnufm4HXIYh1tE2kEKZgGPPWtfL/OUBSAweEOtJ1/PhwyHBnQUfjQH2/95OnoEAysBf+rgP52A10qbu1H0zvqzrS51YhVcHsNNVBJYZPvpbUWRKd8P+fUCfmMe9u/fCU5SCegCyLciL5cf8S079KtRBFhPgAqPAQGPPWtfvQFTkd1Zgi7cBYRJV68hE5AjtVRjBDLlc2rpJuKAzFoItsvQXDArzFJUfyq36wKv1J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VejqCvbvEY/A+/3aImDp3Vi5QL0k2/JUoyFfsiidPVoM8dT9IfBXe5XilHQZQKG4AnvKvCQJvxhOmDV5WtHnQy0olUGQdZZVn8Da6JW+AvDY2tQfL6caPMMutp7l2cPjA/3kbATeLmUNsUQ8vW3ZH+gr8cw2nmRlzpmSZvXJmCmkBjz1rX1zS5oLLYHpfWJkmoPGQoTfKxoET2z3U9Aee3AmzPddYfU0iAOo1F3gvOSR0ztl4ph/ZbbSPLmGWHLsksjA72g4fFBk/6zsVP69SWbZKfqL3GdpYl4S+Ju1QVHUMp+95zCgTXCI=","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]}
34
35      data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"STOP"}]}
36
37      data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":9,"completion_tokens":314,"total_tokens":323,"cost":0.003786,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.003786,"upstream_inference_prompt_cost":0.000018,"upstream_inference_completions_cost":0.003768},"completion_tokens_details":{"reasoning_tokens":284,"image_tokens":0,"audio_tokens":0}}}
38
39      data: [DONE]
40
41    headers:
42      Content-Type:
43      - text/event-stream
44    status: 200 OK
45    code: 200
46    duration: 6.089984333s