|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"messages": [{"role": "user", "content": "What is the weather in New York?"}], |
| 4 | + "model": "gpt-4o", "stop": [], "stream": true, "stream_options": {"include_usage": |
| 5 | + true}, "tools": [{"type": "function", "function": {"name": "get_weather", "description": |
| 6 | + "Get the current weather in a given location", "parameters": {"type": "object", |
| 7 | + "properties": {"location": {"type": "string", "description": "The city and state, |
| 8 | + e.g. San Francisco, CA"}}, "required": ["location"]}}}]}' |
| 9 | + headers: |
| 10 | + accept: |
| 11 | + - application/json |
| 12 | + accept-encoding: |
| 13 | + - gzip, deflate |
| 14 | + connection: |
| 15 | + - keep-alive |
| 16 | + content-length: |
| 17 | + - '470' |
| 18 | + content-type: |
| 19 | + - application/json |
| 20 | + cookie: |
| 21 | + - _cfuvid=3UeEmz_rnmsoZxrVUv32u35gJOi766GDWNe5_RTjiPk-1736537376739-0.0.1.1-604800000 |
| 22 | + host: |
| 23 | + - api.openai.com |
| 24 | + user-agent: |
| 25 | + - OpenAI/Python 1.68.2 |
| 26 | + x-stainless-arch: |
| 27 | + - arm64 |
| 28 | + x-stainless-async: |
| 29 | + - 'false' |
| 30 | + x-stainless-lang: |
| 31 | + - python |
| 32 | + x-stainless-os: |
| 33 | + - MacOS |
| 34 | + x-stainless-package-version: |
| 35 | + - 1.68.2 |
| 36 | + x-stainless-raw-response: |
| 37 | + - 'true' |
| 38 | + x-stainless-read-timeout: |
| 39 | + - '600.0' |
| 40 | + x-stainless-retry-count: |
| 41 | + - '0' |
| 42 | + x-stainless-runtime: |
| 43 | + - CPython |
| 44 | + x-stainless-runtime-version: |
| 45 | + - 3.12.9 |
| 46 | + method: POST |
| 47 | + uri: https://api.openai.com/v1/chat/completions |
| 48 | + response: |
| 49 | + body: |
| 50 | + string: 'data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_UkMsNK0RTJ1nlT19WqgLJYV9","type":"function","function":{"name":"get_weather","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}],"usage":null} |
| 51 | +
|
| 52 | +
|
| 53 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 54 | +
|
| 55 | +
|
| 56 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 57 | +
|
| 58 | +
|
| 59 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 60 | +
|
| 61 | +
|
| 62 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"New"}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 63 | +
|
| 64 | +
|
| 65 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" |
| 66 | + York"}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 67 | +
|
| 68 | +
|
| 69 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 70 | +
|
| 71 | +
|
| 72 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" |
| 73 | + NY"}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 74 | +
|
| 75 | +
|
| 76 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} |
| 77 | +
|
| 78 | +
|
| 79 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"usage":null} |
| 80 | +
|
| 81 | +
|
| 82 | + data: {"id":"chatcmpl-BcY6NFDeu4HFOAIarpwSNAUEMuPTg","object":"chat.completion.chunk","created":1748527251,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_07871e2ad8","choices":[],"usage":{"prompt_tokens":68,"completion_tokens":17,"total_tokens":85,"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}}} |
| 83 | +
|
| 84 | +
|
| 85 | + data: [DONE] |
| 86 | +
|
| 87 | +
|
| 88 | + ' |
| 89 | + headers: |
| 90 | + CF-RAY: |
| 91 | + - 947685373af8a435-GRU |
| 92 | + Connection: |
| 93 | + - keep-alive |
| 94 | + Content-Type: |
| 95 | + - text/event-stream; charset=utf-8 |
| 96 | + Date: |
| 97 | + - Thu, 29 May 2025 14:00:51 GMT |
| 98 | + Server: |
| 99 | + - cloudflare |
| 100 | + Set-Cookie: |
| 101 | + - __cf_bm=fFoq7oCHLgmljA4hsHWxTGHMEWJ.0t1XTuDptZPPkOc-1748527251-1.0.1.1-PP3Hd7XzA4AQFn0JQWjuQdhFwey0Pj9maUWKfFG16Bkl69Uk65A8XKN73UbsvO327TruwxameKb_m_HDePCR.YN0TZlE8Pu45WsA9shDwKY; |
| 102 | + path=/; expires=Thu, 29-May-25 14:30:51 GMT; domain=.api.openai.com; HttpOnly; |
| 103 | + Secure; SameSite=None |
| 104 | + - _cfuvid=ut1CVX5GOYnv03fiV2Dsv7cm5soJmwgSutkPAEuVXWg-1748527251565-0.0.1.1-604800000; |
| 105 | + path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None |
| 106 | + Transfer-Encoding: |
| 107 | + - chunked |
| 108 | + X-Content-Type-Options: |
| 109 | + - nosniff |
| 110 | + access-control-expose-headers: |
| 111 | + - X-Request-ID |
| 112 | + alt-svc: |
| 113 | + - h3=":443"; ma=86400 |
| 114 | + cf-cache-status: |
| 115 | + - DYNAMIC |
| 116 | + openai-organization: |
| 117 | + - crewai-iuxna1 |
| 118 | + openai-processing-ms: |
| 119 | + - '332' |
| 120 | + openai-version: |
| 121 | + - '2020-10-01' |
| 122 | + strict-transport-security: |
| 123 | + - max-age=31536000; includeSubDomains; preload |
| 124 | + x-envoy-upstream-service-time: |
| 125 | + - '334' |
| 126 | + x-ratelimit-limit-requests: |
| 127 | + - '10000' |
| 128 | + x-ratelimit-limit-tokens: |
| 129 | + - '30000000' |
| 130 | + x-ratelimit-remaining-requests: |
| 131 | + - '9999' |
| 132 | + x-ratelimit-remaining-tokens: |
| 133 | + - '29999989' |
| 134 | + x-ratelimit-reset-requests: |
| 135 | + - 6ms |
| 136 | + x-ratelimit-reset-tokens: |
| 137 | + - 0s |
| 138 | + x-request-id: |
| 139 | + - req_1dc91fc964a8d23ee023693400e5c181 |
| 140 | + status: |
| 141 | + code: 200 |
| 142 | + message: OK |
| 143 | +version: 1 |
0 commit comments