interactions:
- request:
    body: '{"input":"Hello world","model":"gpt-4.1","stream":true,"tools":[{"type":"web_search_preview"}]}'
    headers:
      accept:
      - application/json
      accept-encoding:
      - gzip, deflate
      connection:
      - keep-alive
      content-length:
      - '95'
      content-type:
      - application/json
      host:
      - api.openai.com
      user-agent:
      - OpenAI/Python 1.76.2
      x-stainless-arch:
      - arm64
      x-stainless-async:
      - 'false'
      x-stainless-lang:
      - python
      x-stainless-os:
      - MacOS
      x-stainless-package-version:
      - 1.76.2
      x-stainless-read-timeout:
      - '600'
      x-stainless-retry-count:
      - '0'
      x-stainless-runtime:
      - CPython
      x-stainless-runtime-version:
      - 3.12.10
    method: POST
    uri: https://api.openai.com/v1/responses
  response:
    body:
      string: "event: response.created\ndata: {\"type\":\"response.created\",\"response\":{\"id\":\"resp_681e3dae12dc81919b0945058952fe2f06d1e88da744bb5e\",\"object\":\"response\",\"created_at\":1746812334,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"gpt-4.1-2025-04-14\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"service_tier\":\"auto\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"web_search_preview\",\"search_context_size\":\"medium\",\"user_location\":{\"type\":\"approximate\",\"city\":null,\"country\":\"US\",\"region\":null,\"timezone\":null}}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}}}\n\nevent:
        response.in_progress\ndata: {\"type\":\"response.in_progress\",\"response\":{\"id\":\"resp_681e3dae12dc81919b0945058952fe2f06d1e88da744bb5e\",\"object\":\"response\",\"created_at\":1746812334,\"status\":\"in_progress\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"gpt-4.1-2025-04-14\",\"output\":[],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"service_tier\":\"auto\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"web_search_preview\",\"search_context_size\":\"medium\",\"user_location\":{\"type\":\"approximate\",\"city\":null,\"country\":\"US\",\"region\":null,\"timezone\":null}}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":null,\"user\":null,\"metadata\":{}}}\n\nevent:
        response.output_item.added\ndata: {\"type\":\"response.output_item.added\",\"output_index\":0,\"item\":{\"id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"type\":\"message\",\"status\":\"in_progress\",\"content\":[],\"role\":\"assistant\"}}\n\nevent:
        response.content_part.added\ndata: {\"type\":\"response.content_part.added\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"annotations\":[],\"text\":\"\"}}\n\nevent:
        response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"Hello\"}\n\nevent:
        response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"!\"}\n\nevent:
        response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        \U0001F30D\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        How\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        can\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        I\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        help\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        you\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"
        today\"}\n\nevent: response.output_text.delta\ndata: {\"type\":\"response.output_text.delta\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"delta\":\"?\"}\n\nevent:
        response.output_text.done\ndata: {\"type\":\"response.output_text.done\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"text\":\"Hello!
        \U0001F30D How can I help you today?\"}\n\nevent: response.content_part.done\ndata:
        {\"type\":\"response.content_part.done\",\"item_id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"output_index\":0,\"content_index\":0,\"part\":{\"type\":\"output_text\",\"annotations\":[],\"text\":\"Hello!
        \U0001F30D How can I help you today?\"}}\n\nevent: response.output_item.done\ndata:
        {\"type\":\"response.output_item.done\",\"output_index\":0,\"item\":{\"id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"type\":\"message\",\"status\":\"completed\",\"content\":[{\"type\":\"output_text\",\"annotations\":[],\"text\":\"Hello!
        \U0001F30D How can I help you today?\"}],\"role\":\"assistant\"}}\n\nevent:
        response.completed\ndata: {\"type\":\"response.completed\",\"response\":{\"id\":\"resp_681e3dae12dc81919b0945058952fe2f06d1e88da744bb5e\",\"object\":\"response\",\"created_at\":1746812334,\"status\":\"completed\",\"error\":null,\"incomplete_details\":null,\"instructions\":null,\"max_output_tokens\":null,\"model\":\"gpt-4.1-2025-04-14\",\"output\":[{\"id\":\"msg_681e3dae9a0481919e61e0b0b4fc62b406d1e88da744bb5e\",\"type\":\"message\",\"status\":\"completed\",\"content\":[{\"type\":\"output_text\",\"annotations\":[],\"text\":\"Hello!
        \U0001F30D How can I help you today?\"}],\"role\":\"assistant\"}],\"parallel_tool_calls\":true,\"previous_response_id\":null,\"reasoning\":{\"effort\":null,\"summary\":null},\"service_tier\":\"default\",\"store\":false,\"temperature\":1.0,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"tools\":[{\"type\":\"web_search_preview\",\"search_context_size\":\"medium\",\"user_location\":{\"type\":\"approximate\",\"city\":null,\"country\":\"US\",\"region\":null,\"timezone\":null}}],\"top_p\":1.0,\"truncation\":\"disabled\",\"usage\":{\"input_tokens\":303,\"input_tokens_details\":{\"cached_tokens\":0},\"output_tokens\":13,\"output_tokens_details\":{\"reasoning_tokens\":0},\"total_tokens\":316},\"user\":null,\"metadata\":{}}}\n\n"
    headers:
      CF-RAY:
      - 93d2f91fa80edda5-IAD
      Connection:
      - keep-alive
      Content-Type:
      - text/event-stream; charset=utf-8
      Date:
      - Fri, 09 May 2025 17:38:54 GMT
      Server:
      - cloudflare
      Set-Cookie:
      - __cf_bm=iYRiYqN4c4Yci4uffqFHUOP6Y17QKLEwabDROLM8G.s-1746812334-1.0.1.1-zFSMPrrh4DRKlbwbPH8If8DY0aL_BS.CMgyp7OtaByN.5KmRcsAl5SaDij_OasdDNa4IKvVjufmhQJQVeyq8lKXMmUtht5UrqjI.S298oCg;
        path=/; expires=Fri, 09-May-25 18:08:54 GMT; domain=.api.openai.com; HttpOnly;
        Secure; SameSite=None
      - _cfuvid=QNq2VFq.ciBOLwAsPbTK3M7WSe8L1bFg5lYQlv_0C8A-1746812334124-0.0.1.1-604800000;
        path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
      Transfer-Encoding:
      - chunked
      X-Content-Type-Options:
      - nosniff
      alt-svc:
      - h3=":443"; ma=86400
      cf-cache-status:
      - DYNAMIC
      openai-organization:
      - datadog-staging
      openai-processing-ms:
      - '55'
      openai-version:
      - '2020-10-01'
      strict-transport-security:
      - max-age=31536000; includeSubDomains; preload
      x-request-id:
      - req_a579450324f061ae74accc977c6cc5e3
    status:
      code: 200
      message: OK
version: 1
