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: 222
10    host: ""
11    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"o4-mini","max_completion_tokens":4000,"stream_options":{"include_usage":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://fantasy-playground-resource.openai.azure.com/openai/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: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"jailbreak":{"filtered":false,"detected":false},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]}
28
29      data: {"choices":[{"content_filter_results":{},"delta":{"content":"","refusal":null,"role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1761842949,"id":"chatcmpl-CWQ7hehqpDlf2niJw1ppNwUCBUH6W","model":"o4-mini-2025-04-16","obfuscation":"I","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
30
31      data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"Olá"},"finish_reason":null,"index":0,"logprobs":null}],"created":1761842949,"id":"chatcmpl-CWQ7hehqpDlf2niJw1ppNwUCBUH6W","model":"o4-mini-2025-04-16","obfuscation":"","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
32
33      data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"!"},"finish_reason":null,"index":0,"logprobs":null}],"created":1761842949,"id":"chatcmpl-CWQ7hehqpDlf2niJw1ppNwUCBUH6W","model":"o4-mini-2025-04-16","obfuscation":"fH","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
34
35      data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0,"logprobs":null}],"created":1761842949,"id":"chatcmpl-CWQ7hehqpDlf2niJw1ppNwUCBUH6W","model":"o4-mini-2025-04-16","obfuscation":"p7EdA3UJmxdvk","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
36
37      data: {"choices":[],"created":1761842949,"id":"chatcmpl-CWQ7hehqpDlf2niJw1ppNwUCBUH6W","model":"o4-mini-2025-04-16","obfuscation":"","object":"chat.completion.chunk","system_fingerprint":null,"usage":{"completion_tokens":85,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":64,"rejected_prediction_tokens":0},"prompt_tokens":19,"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0},"total_tokens":104}}
38
39      data: [DONE]
40
41    headers:
42      Content-Type:
43      - text/event-stream; charset=utf-8
44    status: 200 OK
45    code: 200
46    duration: 1.122837417s