---
version: 2
interactions:
  - id: 0
    request:
        proto: HTTP/1.1
        proto_major: 1
        proto_minor: 1
        content_length: 252
        host: ""
        body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}'
        headers:
            Accept:
              - application/json
            Content-Type:
              - application/json
            User-Agent:
              - OpenAI/Go 2.3.0
        url: https://openrouter.ai/api/v1/chat/completions
        method: POST
    response:
        proto: HTTP/2.0
        proto_major: 2
        proto_minor: 0
        content_length: -1
        body: |+
            data: {"id":"gen-1758709988-nVhkZGAgcDLlvtCygw4h","provider":"OpenAI","model":"openai/gpt-5","object":"chat.completion.chunk","created":1758709988,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}

            data: {"id":"gen-1758709988-nVhkZGAgcDLlvtCygw4h","provider":"OpenAI","model":"openai/gpt-5","object":"chat.completion.chunk","created":1758709988,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABo08jndDbqrrN0GRqZ73vDkhlAxmzQuTxZJ6BxX7jdQqDFykBwBvm3o3iLDdf1c0Qe4kVM_Upe6e1ZtyJNnWkpSaQDQt7rrwpFiQyazwbe9qF3JVrj94uAsdPb1OLJxkGuYoVKPBleeIdNN3VCJpGKxdWo5B0kdg_CiR7P_phvL7davft3-8LHgZo4MFDLllMQythnGqq8iBU4VVW7dBjPUyyoVUmJHgD_cGV5maRX2XRb9MzaitUl-CbCCp6ChOBYCZQLc8sVc7ovOje56jQvfRugKpcsAMdXvYW1K3mf1wSUIud3rFFwZcpdZzgMyJf0oGmk6oci1gWV6m7ssxi-CIvElMfRmOpMna2VrQG-JhuZD2bt3pH2MNj-Vvj-1il7pz2KnYO10_B2ss4_iMp-d31HPR2wVLrJa8D__sstuku9EQwVxNCKS_u7xwf8oIOD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d5p0pggNFWqhfqRFEHZ7aeQaMdJF7daaYFEl8IvocWX6uW5hcOzMIkcE=","id":"rs_68d3c8e5f6188196b19bf9977a4dc562062c29828b2ad4fa","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}

            data: {"id":"gen-1758709988-nVhkZGAgcDLlvtCygw4h","provider":"OpenAI","model":"openai/gpt-5","object":"chat.completion.chunk","created":1758709988,"choices":[{"index":0,"delta":{"role":"assistant","content":"Olá"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}

            data: {"id":"gen-1758709988-nVhkZGAgcDLlvtCygw4h","provider":"OpenAI","model":"openai/gpt-5","object":"chat.completion.chunk","created":1758709988,"choices":[{"index":0,"delta":{"role":"assistant","content":"!"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}

            data: {"id":"gen-1758709988-nVhkZGAgcDLlvtCygw4h","provider":"OpenAI","model":"openai/gpt-5","object":"chat.completion.chunk","created":1758709988,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"completed","logprobs":null}]}

            data: {"id":"gen-1758709988-nVhkZGAgcDLlvtCygw4h","provider":"OpenAI","model":"openai/gpt-5","object":"chat.completion.chunk","created":1758709988,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":19,"completion_tokens":136,"total_tokens":155,"cost":0.000691875,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000011875,"upstream_inference_completions_cost":0.00068},"completion_tokens_details":{"reasoning_tokens":128,"image_tokens":0}}}

            data: [DONE]

        headers:
            Content-Type:
              - text/event-stream
        status: 200 OK
        code: 200
        duration: 881.33025ms
