---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1029
    host: ""
    body: '{"messages":[{"content":"Generate information about ''The Lord of the Rings'' book by J.R.R. Tolkien, including genres like fantasy and adventure, and its publication year (1954).","role":"user"}],"model":"o4-mini","max_completion_tokens":4000,"stream_options":{"include_usage":true},"response_format":{"json_schema":{"name":"Book","strict":true,"description":"A book with title, author, genres, and publication year","schema":{"additionalProperties":false,"properties":{"author":{"additionalProperties":false,"properties":{"name":{"description":"Author''s name","type":"string"},"nationality":{"description":"Author''s nationality","type":"string"}},"required":["name","nationality"],"type":"object"},"genres":{"description":"List of genres","items":{"type":"string"},"type":"array"},"published_year":{"description":"Year the book was published","type":"integer"},"title":{"description":"The book title","type":"string"}},"required":["title","author","genres","published_year"],"type":"object"}},"type":"json_schema"},"stream":true}'
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
    url: https://api.openai.com/v1/chat/completions
    method: POST
  response:
    proto: HTTP/2.0
    proto_major: 2
    proto_minor: 0
    content_length: -1
    body: |+
      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"BIfIBbQc"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"{\""},"finish_reason":null}],"usage":null,"obfuscation":"pW10hzH"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"author"},"finish_reason":null}],"usage":null,"obfuscation":"fzSs"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":{\""},"finish_reason":null}],"usage":null,"obfuscation":"uww4"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"name"},"finish_reason":null}],"usage":null,"obfuscation":"QAq0Uw"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"auLk9"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"J"},"finish_reason":null}],"usage":null,"obfuscation":"kKKmSc7nO"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".R"},"finish_reason":null}],"usage":null,"obfuscation":"gCwOdAxF"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":".R"},"finish_reason":null}],"usage":null,"obfuscation":"FnwAK9O7"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"finish_reason":null}],"usage":null,"obfuscation":"Jssuct2DL"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Tolkien"},"finish_reason":null}],"usage":null,"obfuscation":"A3"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"U4FK1"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"national"},"finish_reason":null}],"usage":null,"obfuscation":"W3"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"ity"},"finish_reason":null}],"usage":null,"obfuscation":"GPc5Q7S"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"tY82Q"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"British"},"finish_reason":null}],"usage":null,"obfuscation":"LKb"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"BFfMtd1"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"IjtD6Xs"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"genres"},"finish_reason":null}],"usage":null,"obfuscation":"Mm1i"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":[\""},"finish_reason":null}],"usage":null,"obfuscation":"Kuhv"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"fant"},"finish_reason":null}],"usage":null,"obfuscation":"4npznZ"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"asy"},"finish_reason":null}],"usage":null,"obfuscation":"2iNAJL1"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\",\""},"finish_reason":null}],"usage":null,"obfuscation":"j88um"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"ad"},"finish_reason":null}],"usage":null,"obfuscation":"Ig5G8jV1"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"venture"},"finish_reason":null}],"usage":null,"obfuscation":"ZON"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"],"},"finish_reason":null}],"usage":null,"obfuscation":"5KE76g"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\""},"finish_reason":null}],"usage":null,"obfuscation":"PFt3swUZ"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"published"},"finish_reason":null}],"usage":null,"obfuscation":"F"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"_year"},"finish_reason":null}],"usage":null,"obfuscation":"BRnhd"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":"},"finish_reason":null}],"usage":null,"obfuscation":"x51QZRn"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"195"},"finish_reason":null}],"usage":null,"obfuscation":"e6CeZtY"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"4"},"finish_reason":null}],"usage":null,"obfuscation":"BQRrPbcuY"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":",\""},"finish_reason":null}],"usage":null,"obfuscation":"3QgRP4X"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"title"},"finish_reason":null}],"usage":null,"obfuscation":"WG3RK"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\":\""},"finish_reason":null}],"usage":null,"obfuscation":"O8oJ4"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"The"},"finish_reason":null}],"usage":null,"obfuscation":"oXVF3W0"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Lord"},"finish_reason":null}],"usage":null,"obfuscation":"VGIHr"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" of"},"finish_reason":null}],"usage":null,"obfuscation":"r3XB1SO"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}],"usage":null,"obfuscation":"6V0IM6"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" Rings"},"finish_reason":null}],"usage":null,"obfuscation":"n8yS"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"\"}"},"finish_reason":null}],"usage":null,"obfuscation":"wcyfm9U"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"qmk5"}

      data: {"id":"chatcmpl-DIgTQPz2aGqDZNpclm4MN66JS2WPX","object":"chat.completion.chunk","created":1773345544,"model":"o4-mini-2025-04-16","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":156,"completion_tokens":189,"total_tokens":345,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"pR3K"}

      data: [DONE]

    headers:
      Content-Type:
      - text/event-stream; charset=utf-8
    status: 200 OK
    code: 200
    duration: 1.941595667s
