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: 196
10    host: ""
11    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"usage":{"include":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    uncompressed: true
27    body: "\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n\n         \n{\"id\":\"gen-1761054116-RmAaRVVL0OjqPdSqcv8v\",\"provider\":\"xAI\",\"model\":\"x-ai/grok-code-fast-1\",\"object\":\"chat.completion\",\"created\":1761054116,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Oi! (That's \\\"hi\\\" in Portuguese.)\",\"refusal\":null,\"reasoning\":\"First, the user's query is \\\"Say hi in Portuguese.\\\" This is a simple, casual request. It's not a closed-ended science, math, or search question, but more of an open-ended or conversational one.\\n\\n\\n## Interpreting the Query  \\n- The user's request is \\\"Say hi in Portuguese,\\\" a casual and conversational prompt.  \\n- It's an open-ended question, not tied to science, math, or search, focusing on language and greeting.\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user's query is \\\"Say hi in Portuguese.\\\" This is a simple, casual request. It's not a closed-ended science, math, or search question, but more of an open-ended or conversational one.\\n\\n\\n## Interpreting the Query  \\n- The user's request is \\\"Say hi in Portuguese,\\\" a casual and conversational prompt.  \\n- It's an open-ended question, not tied to science, math, or search, focusing on language and greeting.\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\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YdNcqfPGkyME5gn9nX6bPCJKCxYSB/8BxlRv9UvRKkrrgQPW9F9qOo9DHeZ79UmWl8I/L82ASHug9TFqDhwz5tWhe619JO6haMWTR0C2uIwrgSWvfZ6tNdH4IdjhtEMxFSANBPNSOWBuWGZEJDhMeg4h9WS2566/J10PCAWXzaZ6vCa7o2mYN80LsF95mLaeizn3u8Etzz9hpw9ZaO6cXUFj4m0KN86dIBOaY+FGbxltR5L2SLdY1zK9/z4oS5eKaKP9FUlSVXVxueu0y/IvEK0lgfe+Wp42zVLxYjf902StA5F45dxqs42u/B2bxOnSGpq7kd6pqghxfXZax5NaxFB0NYG2OEz7e5wADPaQir1Pn3pth7lq4/\",\"id\":\"rs_66bf7ee5-6780-5aad-3399-62114b35af11_us-east-1\",\"format\":\"xai-responses-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":213,\"completion_tokens\":238,\"total_tokens\":451,\"cost\":0.00036504,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.00000804,\"upstream_inference_completions_cost\":0.000357},\"completion_tokens_details\":{\"reasoning_tokens\":228,\"image_tokens\":0}}}"
28    headers:
29      Content-Type:
30      - application/json
31    status: 200 OK
32    code: 200
33    duration: 682.839459ms