---
version: 2
interactions:
- id: 0
  request:
    proto: HTTP/1.1
    proto_major: 1
    proto_minor: 1
    content_length: 1017
    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","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:
      - OpenAI/Go 2.7.1
    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-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oRfA4z9DWq7qj8"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6zBd5qX7Btxxs"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"author"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TM0t4Pm61A"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":{\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vGe6G1eVLX"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"name"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IzcNGOmzos0t"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"l7hTuQxFaSd"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"J"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KUdeHzDFBeGZqrS"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"53WRtPIBKf8ppj"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":".R"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k1Sj1EOhcZYCrc"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"qg5EAndN8z366Rb"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Tolkien"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5FtxI3Pp"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"M5dFMIxnYln"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"national"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KWRPefSc"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"ity"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Am6NFkfoBupq4"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mE6llEgaiEl"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"British"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NOxOkP0FW"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dTuuDbNhmHIam"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1YF0LTdj65xaU"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"genres"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sgSIFdyI3Y"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":[\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"J7yKvYHrAE"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1bi4UyMpr"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"YKmjdjs48hJ"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"Adventure"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TPD2t4l"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vlNVJvvgk1c"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"Epic"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"w7jUArhKEasV"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5Y8gslzJdue"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"High"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cOxUUXJCFsCN"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Fantasy"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pvt7toWU"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\"],"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"X4iUq3xGjfQZ"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9DWpvWngJkc3QW"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"published"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"x83XGTN"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"_year"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"b0pZYS1Ugrk"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TnUypAqlvMK0t"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"195"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5q3RZV2IBGwQq"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"seaiFS3GIkUeF8R"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":",\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5z7ebiG1wSVfE"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"title"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"t3kq28e6YDC"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\":\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"27pSWGte8Fs"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hbcPvP0yuw3gs"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Lord"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"w5Nf8vyr8dS"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oEMgc3xOjSI7i"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QUboXKjGhMgZ"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":" Rings"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VzpWMn93wL"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{"content":"\"}"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6SnH1kmGO0pUa"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"KDN8LMYAVx"}

      data: {"id":"chatcmpl-CZkh4dwQrDDuhFHnkTYw9GVO9PVzy","object":"chat.completion.chunk","created":1762637006,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b1442291a8","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":"GVU4FsyFvtGsL"}

      data: [DONE]

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