---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1022
    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":"gpt-4o-mini","max_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-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cqjQnYhW1"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rLhtyxgT"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"author"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6rCnZ"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\":{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uLCFr"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"name"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Z4kRJrn"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"i7ITFd"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"J"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QOKPTpFD3k"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"nrzPm6DD5"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"t04cMsYJm"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"92cWFXxDuy"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":" Tolkien"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kBC"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oC1Hp7"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"national"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zQZ"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"ity"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"N6K1O3ab"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"UoLVyy"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"British"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TV5S"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"2jPfhfxO"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FlctPVgz"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"genres"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"u1j1u"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\":[\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zZQy6"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gQaG"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k3G1WI"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"Adventure"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Kg"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ytigXK"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"Epic"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pzDLPTT"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VCGe7i"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"High"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wOYStNc"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":" Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"UJ3"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\"],"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"fGKupEG"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"eNlqNsJTd"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"published"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BR"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"_year"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8t2XNc"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"fcHFAVN9"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"195"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8nKamqa9"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EA9ob6e1g0"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4VT9hlBG"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"title"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mYtTTV"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PAUtf8"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"MZEWeooF"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":" Lord"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7oKmxC"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"x5IM0scE"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9yzvCyd"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":" Rings"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sSufv"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3AI53rdp"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"D6wxm"}

      data: {"id":"chatcmpl-DIgPup7Lq8l6HngR7SwBRgYJ3CCDY","object":"chat.completion.chunk","created":1773345326,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_a1ddba3226","choices":[],"usage":{"prompt_tokens":160,"completion_tokens":43,"total_tokens":203,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"AQumAMat"}

      data: [DONE]

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