|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"messages":[{"content":"You are a temperature bot. Today is 2024-06-09.","role":"system"},{"content":"What |
| 4 | + is the temperature today in Recife?","role":"user"}],"model":"gpt-4o","stream":true,"stream_options":{"include_usage":true},"temperature":1.0,"tools":[{"type":"function","function":{"name":"fetch_current_temperature","description":"Fetch |
| 5 | + the current temperature data for a location","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}}},{"type":"function","function":{"name":"fetch_forecast_temperature","description":"Fetch |
| 6 | + the forecast temperature data for a location","parameters":{"type":"object","properties":{"location":{"type":"string"},"dt_str":{"description":"Date |
| 7 | + in the format ''YYYY-MM-DD''","type":"string"}},"required":["location","dt_str"]}}}]}' |
| 8 | + headers: |
| 9 | + Accept: |
| 10 | + - application/json |
| 11 | + Accept-Encoding: |
| 12 | + - gzip, deflate, zstd |
| 13 | + Connection: |
| 14 | + - keep-alive |
| 15 | + Content-Length: |
| 16 | + - '812' |
| 17 | + Content-Type: |
| 18 | + - application/json |
| 19 | + Host: |
| 20 | + - api.openai.com |
| 21 | + X-Stainless-Raw-Response: |
| 22 | + - 'true' |
| 23 | + authorization: |
| 24 | + - DUMMY |
| 25 | + user-agent: |
| 26 | + - OpenAI/Python |
| 27 | + x-stainless-retry-count: |
| 28 | + - '0' |
| 29 | + method: POST |
| 30 | + uri: https://api.openai.com/v1/chat/completions |
| 31 | + response: |
| 32 | + body: |
| 33 | + string: 'data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_zuq818gZWJJlDhdrLcI5IPMm","type":"function","function":{"name":"fetch_current_temperature","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NW7i9IqiUa8"} |
| 34 | +
|
| 35 | +
|
| 36 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"2K6"} |
| 37 | +
|
| 38 | +
|
| 39 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sQRXefPeqyM0h3"} |
| 40 | +
|
| 41 | +
|
| 42 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1"} |
| 43 | +
|
| 44 | +
|
| 45 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Rec"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bbt"} |
| 46 | +
|
| 47 | +
|
| 48 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ife"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"2tw"} |
| 49 | +
|
| 50 | +
|
| 51 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sf0"} |
| 52 | +
|
| 53 | +
|
| 54 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}],"usage":null,"obfuscation":"gBbl"} |
| 55 | +
|
| 56 | +
|
| 57 | + data: {"id":"chatcmpl-DIDpzDJSqT4EW7UPZCL857JRcFTq6","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[],"usage":{"prompt_tokens":111,"completion_tokens":16,"total_tokens":127,"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":"UEfMPsiTrLLjA"} |
| 58 | +
|
| 59 | +
|
| 60 | + data: [DONE] |
| 61 | +
|
| 62 | +
|
| 63 | + ' |
| 64 | + headers: |
| 65 | + Connection: |
| 66 | + - keep-alive |
| 67 | + Content-Type: |
| 68 | + - text/event-stream; charset=utf-8 |
| 69 | + Date: Sun, 09 Jun 2024 23:39:08 GMT |
| 70 | + Server: DUMMY |
| 71 | + Strict-Transport-Security: |
| 72 | + - max-age=31536000; includeSubDomains; preload |
| 73 | + Transfer-Encoding: |
| 74 | + - chunked |
| 75 | + X-Content-Type-Options: |
| 76 | + - nosniff |
| 77 | + access-control-expose-headers: |
| 78 | + - X-Request-ID |
| 79 | + cf-cache-status: |
| 80 | + - DYNAMIC |
| 81 | + openai-project: |
| 82 | + - proj_dummy_openai_id |
| 83 | + x-openai-proxy-wasm: |
| 84 | + - v0.1 |
| 85 | + status: |
| 86 | + code: 200 |
| 87 | + message: OK |
| 88 | +- request: |
| 89 | + body: '{"messages":[{"content":"You are a temperature bot. Today is 2024-06-09.","role":"system"},{"content":"What |
| 90 | + is the temperature today in Recife?","role":"user"},{"content":null,"role":"assistant","tool_calls":[{"type":"function","id":"call_zuq818gZWJJlDhdrLcI5IPMm","function":{"name":"fetch_current_temperature","arguments":"{\"location\": |
| 91 | + \"Recife\"}"}}]},{"content":"32 degrees Celsius","role":"tool","tool_call_id":"call_zuq818gZWJJlDhdrLcI5IPMm"}],"model":"gpt-4o","stream":true,"stream_options":{"include_usage":true},"temperature":1.0,"tools":[{"type":"function","function":{"name":"fetch_current_temperature","description":"Fetch |
| 92 | + the current temperature data for a location","parameters":{"properties":{"location":{"type":"string"}},"required":["location"],"type":"object"}}},{"type":"function","function":{"name":"fetch_forecast_temperature","description":"Fetch |
| 93 | + the forecast temperature data for a location","parameters":{"type":"object","properties":{"location":{"type":"string"},"dt_str":{"description":"Date |
| 94 | + in the format ''YYYY-MM-DD''","type":"string"}},"required":["location","dt_str"]}}}]}' |
| 95 | + headers: |
| 96 | + Accept: |
| 97 | + - application/json |
| 98 | + Accept-Encoding: |
| 99 | + - gzip, deflate, zstd |
| 100 | + Connection: |
| 101 | + - keep-alive |
| 102 | + Content-Length: |
| 103 | + - '1103' |
| 104 | + Content-Type: |
| 105 | + - application/json |
| 106 | + Host: |
| 107 | + - api.openai.com |
| 108 | + X-Stainless-Raw-Response: |
| 109 | + - 'true' |
| 110 | + authorization: |
| 111 | + - DUMMY |
| 112 | + cookie: |
| 113 | + - DUMMY |
| 114 | + user-agent: |
| 115 | + - OpenAI/Python |
| 116 | + x-stainless-retry-count: |
| 117 | + - '0' |
| 118 | + method: POST |
| 119 | + uri: https://api.openai.com/v1/chat/completions |
| 120 | + response: |
| 121 | + body: |
| 122 | + string: 'data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"XpqH8r6lKhOKG6"} |
| 123 | +
|
| 124 | +
|
| 125 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":"The"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cIlWkGBpC6Lml"} |
| 126 | +
|
| 127 | +
|
| 128 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 129 | + current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"t2j4AdCr"} |
| 130 | +
|
| 131 | +
|
| 132 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 133 | + temperature"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"d4F5"} |
| 134 | +
|
| 135 | +
|
| 136 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 137 | + in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HMWCJkSoPRIze"} |
| 138 | +
|
| 139 | +
|
| 140 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 141 | + Recife"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"b21LgWyaZ"} |
| 142 | +
|
| 143 | +
|
| 144 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 145 | + is"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"si0Fdd77rKVjw"} |
| 146 | +
|
| 147 | +
|
| 148 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 149 | + "},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sXqWNkI7XGaTUss"} |
| 150 | +
|
| 151 | +
|
| 152 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":"32"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RrCp3ZZkst7zWH"} |
| 153 | +
|
| 154 | +
|
| 155 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 156 | + degrees"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"SsSscPaq"} |
| 157 | +
|
| 158 | +
|
| 159 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":" |
| 160 | + Celsius"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"SbS9VfIu"} |
| 161 | +
|
| 162 | +
|
| 163 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uKYplWNzsKkx9s3"} |
| 164 | +
|
| 165 | +
|
| 166 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"doOrarXmUb"} |
| 167 | +
|
| 168 | +
|
| 169 | + data: {"id":"chatcmpl-DIDpzBVzIdaiHSEUtACeflIWDRaWo","object":"chat.completion.chunk","created":1773235467,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_c7a156cce7","choices":[],"usage":{"prompt_tokens":139,"completion_tokens":12,"total_tokens":151,"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":"jW6QWGp9HDgt3"} |
| 170 | +
|
| 171 | +
|
| 172 | + data: [DONE] |
| 173 | +
|
| 174 | +
|
| 175 | + ' |
| 176 | + headers: |
| 177 | + Connection: |
| 178 | + - keep-alive |
| 179 | + Content-Type: |
| 180 | + - text/event-stream; charset=utf-8 |
| 181 | + Date: Sun, 09 Jun 2024 23:39:08 GMT |
| 182 | + Server: DUMMY |
| 183 | + Strict-Transport-Security: |
| 184 | + - max-age=31536000; includeSubDomains; preload |
| 185 | + Transfer-Encoding: |
| 186 | + - chunked |
| 187 | + X-Content-Type-Options: |
| 188 | + - nosniff |
| 189 | + access-control-expose-headers: |
| 190 | + - X-Request-ID |
| 191 | + cf-cache-status: |
| 192 | + - DYNAMIC |
| 193 | + openai-project: |
| 194 | + - proj_dummy_openai_id |
| 195 | + x-openai-proxy-wasm: |
| 196 | + - v0.1 |
| 197 | + status: |
| 198 | + code: 200 |
| 199 | + message: OK |
| 200 | +version: 1 |
0 commit comments