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: 225
10    host: ""
11    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"gpt-5-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      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
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":{"detected":false,"filtered":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":1773338554,"id":"chatcmpl-DIeegIrNy9WWawejS4BxAWXvSfvYD","model":"gpt-5-mini-2025-08-07","obfuscation":"EhAqKil2ZE9b9t","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
30
31      data: {"choices":[{"content_filter_results":{},"delta":{"content":"Olá"},"finish_reason":null,"index":0,"logprobs":null}],"created":1773338554,"id":"chatcmpl-DIeegIrNy9WWawejS4BxAWXvSfvYD","model":"gpt-5-mini-2025-08-07","obfuscation":"ZoWpqohbaOh0u","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
32
33      data: {"choices":[{"content_filter_results":{},"delta":{"content":"!"},"finish_reason":null,"index":0,"logprobs":null}],"created":1773338554,"id":"chatcmpl-DIeegIrNy9WWawejS4BxAWXvSfvYD","model":"gpt-5-mini-2025-08-07","obfuscation":"5hv4pnP8HC9jryK","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":1773338554,"id":"chatcmpl-DIeegIrNy9WWawejS4BxAWXvSfvYD","model":"gpt-5-mini-2025-08-07","obfuscation":"7vERe2IKtr","object":"chat.completion.chunk","system_fingerprint":null,"usage":null}
36
37      data: {"choices":[],"created":1773338554,"id":"chatcmpl-DIeegIrNy9WWawejS4BxAWXvSfvYD","model":"gpt-5-mini-2025-08-07","obfuscation":"EwDY3uVnpJy","object":"chat.completion.chunk","system_fingerprint":null,"usage":{"completion_tokens":140,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":128,"rejected_prediction_tokens":0},"prompt_tokens":19,"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0},"total_tokens":159}}
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: 2.195586958s