|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"input": [{"role": "user", "content": [{"type": "input_text", "text": |
| 4 | + "John, age 15, won first prize"}]}], "model": "gpt-4.1", "store": false, "stream": |
| 5 | + true, "text": {"format": {"type": "json_schema", "name": "structured_data", |
| 6 | + "schema": {"properties": {"name": {"type": "string"}, "age": {"type": "integer"}}, |
| 7 | + "required": ["name", "age"], "type": "object", "additionalProperties": false}, |
| 8 | + "strict": true}}}' |
| 9 | + headers: |
| 10 | + Accept: |
| 11 | + - application/json |
| 12 | + Accept-Encoding: |
| 13 | + - gzip, deflate |
| 14 | + Connection: |
| 15 | + - keep-alive |
| 16 | + Content-Length: |
| 17 | + - '373' |
| 18 | + Content-Type: |
| 19 | + - application/json |
| 20 | + Host: |
| 21 | + - api.openai.com |
| 22 | + X-Stainless-Async: |
| 23 | + - async:asyncio |
| 24 | + x-stainless-read-timeout: |
| 25 | + - '600' |
| 26 | + method: POST |
| 27 | + uri: https://api.openai.com/v1/responses |
| 28 | + response: |
| 29 | + body: |
| 30 | + string: 'event: response.created |
| 31 | +
|
| 32 | + data: {"type":"response.created","sequence_number":0,"response":{"id":"resp_0f07d7b28142433a01695d29df22e88196b8369f690b02a071","object":"response","created_at":1767713247,"status":"in_progress","background":false,"completed_at":null,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-4.1-2025-04-14","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"structured_data","schema":{"properties":{"name":{"type":"string"},"age":{"type":"integer"}},"required":["name","age"],"type":"object","additionalProperties":false},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} |
| 33 | +
|
| 34 | +
|
| 35 | + event: response.in_progress |
| 36 | +
|
| 37 | + data: {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_0f07d7b28142433a01695d29df22e88196b8369f690b02a071","object":"response","created_at":1767713247,"status":"in_progress","background":false,"completed_at":null,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-4.1-2025-04-14","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"auto","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"structured_data","schema":{"properties":{"name":{"type":"string"},"age":{"type":"integer"}},"required":["name","age"],"type":"object","additionalProperties":false},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}} |
| 38 | +
|
| 39 | +
|
| 40 | + event: response.output_item.added |
| 41 | +
|
| 42 | + data: {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","type":"message","status":"in_progress","content":[],"role":"assistant"}} |
| 43 | +
|
| 44 | +
|
| 45 | + event: response.content_part.added |
| 46 | +
|
| 47 | + data: {"type":"response.content_part.added","sequence_number":3,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}} |
| 48 | +
|
| 49 | +
|
| 50 | + event: response.output_text.delta |
| 51 | +
|
| 52 | + data: {"type":"response.output_text.delta","sequence_number":4,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"{\"","logprobs":[],"obfuscation":"GBMfTKXTGoa4A1"} |
| 53 | +
|
| 54 | +
|
| 55 | + event: response.output_text.delta |
| 56 | +
|
| 57 | + data: {"type":"response.output_text.delta","sequence_number":5,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"name","logprobs":[],"obfuscation":"rLUZVZrTWM6Z"} |
| 58 | +
|
| 59 | +
|
| 60 | + event: response.output_text.delta |
| 61 | +
|
| 62 | + data: {"type":"response.output_text.delta","sequence_number":6,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"\":\"","logprobs":[],"obfuscation":"bbwC7TwzilROd"} |
| 63 | +
|
| 64 | +
|
| 65 | + event: response.output_text.delta |
| 66 | +
|
| 67 | + data: {"type":"response.output_text.delta","sequence_number":7,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"John","logprobs":[],"obfuscation":"KLxWngetKu7y"} |
| 68 | +
|
| 69 | +
|
| 70 | + event: response.output_text.delta |
| 71 | +
|
| 72 | + data: {"type":"response.output_text.delta","sequence_number":8,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"\",\"","logprobs":[],"obfuscation":"bOsT2m95GfXmQ"} |
| 73 | +
|
| 74 | +
|
| 75 | + event: response.output_text.delta |
| 76 | +
|
| 77 | + data: {"type":"response.output_text.delta","sequence_number":9,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"age","logprobs":[],"obfuscation":"dFQvAZmfnCkBT"} |
| 78 | +
|
| 79 | +
|
| 80 | + event: response.output_text.delta |
| 81 | +
|
| 82 | + data: {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"\":","logprobs":[],"obfuscation":"T8F95uvPiwB3lj"} |
| 83 | +
|
| 84 | +
|
| 85 | + event: response.output_text.delta |
| 86 | +
|
| 87 | + data: {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"15","logprobs":[],"obfuscation":"6OGFpzssVl3sVX"} |
| 88 | +
|
| 89 | +
|
| 90 | + event: response.output_text.delta |
| 91 | +
|
| 92 | + data: {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"delta":"}","logprobs":[],"obfuscation":"DJzTyaU3Jz9ZCjG"} |
| 93 | +
|
| 94 | +
|
| 95 | + event: response.output_text.done |
| 96 | +
|
| 97 | + data: {"type":"response.output_text.done","sequence_number":13,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"text":"{\"name\":\"John\",\"age\":15}","logprobs":[]} |
| 98 | +
|
| 99 | +
|
| 100 | + event: response.content_part.done |
| 101 | +
|
| 102 | + data: {"type":"response.content_part.done","sequence_number":14,"item_id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","output_index":0,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"name\":\"John\",\"age\":15}"}} |
| 103 | +
|
| 104 | +
|
| 105 | + event: response.output_item.done |
| 106 | +
|
| 107 | + data: {"type":"response.output_item.done","sequence_number":15,"output_index":0,"item":{"id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"name\":\"John\",\"age\":15}"}],"role":"assistant"}} |
| 108 | +
|
| 109 | +
|
| 110 | + event: response.completed |
| 111 | +
|
| 112 | + data: {"type":"response.completed","sequence_number":16,"response":{"id":"resp_0f07d7b28142433a01695d29df22e88196b8369f690b02a071","object":"response","created_at":1767713247,"status":"completed","background":false,"completed_at":1767713247,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-4.1-2025-04-14","output":[{"id":"msg_0f07d7b28142433a01695d29df98fc81968781402b6544c770","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"{\"name\":\"John\",\"age\":15}"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":null,"summary":null},"safety_identifier":null,"service_tier":"default","store":false,"temperature":1.0,"text":{"format":{"type":"json_schema","description":null,"name":"structured_data","schema":{"properties":{"name":{"type":"string"},"age":{"type":"integer"}},"required":["name","age"],"type":"object","additionalProperties":false},"strict":true},"verbosity":"medium"},"tool_choice":"auto","tools":[],"top_logprobs":0,"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":46,"input_tokens_details":{"cached_tokens":0},"output_tokens":10,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":56},"user":null,"metadata":{}}} |
| 113 | +
|
| 114 | +
|
| 115 | + ' |
| 116 | + headers: |
| 117 | + CF-RAY: |
| 118 | + - 9b9c3d4f9f641103-ORD |
| 119 | + Connection: |
| 120 | + - keep-alive |
| 121 | + Content-Type: |
| 122 | + - text/event-stream; charset=utf-8 |
| 123 | + Date: |
| 124 | + - Tue, 06 Jan 2026 15:27:27 GMT |
| 125 | + Server: |
| 126 | + - cloudflare |
| 127 | + Strict-Transport-Security: |
| 128 | + - max-age=31536000; includeSubDomains; preload |
| 129 | + Transfer-Encoding: |
| 130 | + - chunked |
| 131 | + X-Content-Type-Options: |
| 132 | + - nosniff |
| 133 | + alt-svc: |
| 134 | + - h3=":443"; ma=86400 |
| 135 | + cf-cache-status: |
| 136 | + - DYNAMIC |
| 137 | + openai-processing-ms: |
| 138 | + - '50' |
| 139 | + openai-version: |
| 140 | + - '2020-10-01' |
| 141 | + x-envoy-upstream-service-time: |
| 142 | + - '53' |
| 143 | + status: |
| 144 | + code: 200 |
| 145 | + message: OK |
| 146 | +version: 1 |
0 commit comments