|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"messages": [{"role": "user", "content": "\n David Nguyen is a sophomore |
| 4 | + majoring in computer science at Stanford University and has a GPA of 3.8.\n David |
| 5 | + is an active member of the university''s Chess Club and the South Asian Student |
| 6 | + Association.\n He hopes to pursue a career in software engineering after |
| 7 | + graduating.\n "}], "model": "gpt-3.5-turbo", "tools": [{"type": "function", |
| 8 | + "function": {"name": "extract_student_info", "description": "Get the student |
| 9 | + information from the body of the input text", "parameters": {"type": "object", |
| 10 | + "properties": {"name": {"type": "string", "description": "Name of the person"}, |
| 11 | + "major": {"type": "string", "description": "Major subject."}, "school": {"type": |
| 12 | + "string", "description": "The university name."}, "grades": {"type": "integer", |
| 13 | + "description": "GPA of the student."}, "clubs": {"type": "array", "description": |
| 14 | + "School clubs for extracurricular activities. ", "items": {"type": "string", |
| 15 | + "description": "Name of School Club"}}}}}}], "user": "ddtrace-test"}' |
| 16 | + headers: |
| 17 | + ? !!python/object/new:multidict._multidict.istr |
| 18 | + - Accept |
| 19 | + : - application/json |
| 20 | + ? !!python/object/new:multidict._multidict.istr |
| 21 | + - Accept-Encoding |
| 22 | + : - gzip, deflate |
| 23 | + ? !!python/object/new:multidict._multidict.istr |
| 24 | + - Connection |
| 25 | + : - keep-alive |
| 26 | + Content-Length: |
| 27 | + - '1019' |
| 28 | + ? !!python/object/new:multidict._multidict.istr |
| 29 | + - Content-Type |
| 30 | + : - application/json |
| 31 | + ? !!python/object/new:multidict._multidict.istr |
| 32 | + - User-Agent |
| 33 | + : - OpenAI/Python 1.30.1 |
| 34 | + X-Stainless-Arch: |
| 35 | + - arm64 |
| 36 | + X-Stainless-Async: |
| 37 | + - 'false' |
| 38 | + X-Stainless-Lang: |
| 39 | + - python |
| 40 | + X-Stainless-OS: |
| 41 | + - MacOS |
| 42 | + X-Stainless-Package-Version: |
| 43 | + - 1.30.1 |
| 44 | + X-Stainless-Runtime: |
| 45 | + - CPython |
| 46 | + X-Stainless-Runtime-Version: |
| 47 | + - 3.10.13 |
| 48 | + method: POST |
| 49 | + uri: https://api.openai.com/v1/chat/completions |
| 50 | + response: |
| 51 | + body: |
| 52 | + string: "{\n \"id\": \"chatcmpl-BoxWCjmDlewUb2qBJa9OZuE7LzBAr\",\n \"object\": |
| 53 | + \"chat.completion\",\n \"created\": 1751484888,\n \"model\": \"gpt-3.5-turbo-0125\",\n |
| 54 | + \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": |
| 55 | + \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n |
| 56 | + \ \"id\": \"call_AX6wGDrtP0zqy2121BVX6bcy\",\n \"type\": |
| 57 | + \"function\",\n \"function\": {\n \"name\": \"extract_student_info\",\n |
| 58 | + \ \"arguments\": \"{\\\"name\\\":\\\"David Nguyen\\\",\\\"major\\\":\\\"Computer |
| 59 | + Science\\\",\\\"school\\\":\\\"Stanford University\\\",\\\"grades\\\":3.8,\\\"clubs\\\":[\\\"Chess |
| 60 | + Club\\\",\\\"South Asian Student Association\\\"]}\"\n }\n }\n |
| 61 | + \ ],\n \"refusal\": null,\n \"annotations\": []\n },\n |
| 62 | + \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n |
| 63 | + \ ],\n \"usage\": {\n \"prompt_tokens\": 166,\n \"completion_tokens\": |
| 64 | + 43,\n \"total_tokens\": 209,\n \"prompt_tokens_details\": {\n \"cached_tokens\": |
| 65 | + 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": |
| 66 | + {\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": |
| 67 | + 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"service_tier\": |
| 68 | + \"default\",\n \"system_fingerprint\": null\n}\n" |
| 69 | + headers: |
| 70 | + CF-RAY: |
| 71 | + - 959095254900ddb6-EWR |
| 72 | + Connection: |
| 73 | + - keep-alive |
| 74 | + Content-Encoding: |
| 75 | + - gzip |
| 76 | + Content-Type: |
| 77 | + - application/json |
| 78 | + Date: |
| 79 | + - Wed, 02 Jul 2025 19:34:49 GMT |
| 80 | + Server: |
| 81 | + - cloudflare |
| 82 | + Set-Cookie: |
| 83 | + - __cf_bm=kGWIveGgZM9P_vDdNSqWJ5z38dtLy8ODIcgnfNitcjA-1751484889-1.0.1.1-I_8mYv9YvKimJio4OJe9tZxFIa75uuZckI5URNB0orGrf8ni5EnwOTOCnHs_KXc9Hn4q9mLW9GKlHDTajBSM4RgZHsY_m20CwA1jHDShN6c; |
| 84 | + path=/; expires=Wed, 02-Jul-25 20:04:49 GMT; domain=.api.openai.com; HttpOnly; |
| 85 | + Secure; SameSite=None |
| 86 | + - _cfuvid=hWEbYpUUTKwG6DnSAFyZOeq1jvddTjufJcE.uOuYHh4-1751484889167-0.0.1.1-604800000; |
| 87 | + path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None |
| 88 | + Transfer-Encoding: |
| 89 | + - chunked |
| 90 | + X-Content-Type-Options: |
| 91 | + - nosniff |
| 92 | + access-control-expose-headers: |
| 93 | + - X-Request-ID |
| 94 | + alt-svc: |
| 95 | + - h3=":443"; ma=86400 |
| 96 | + cf-cache-status: |
| 97 | + - DYNAMIC |
| 98 | + openai-organization: |
| 99 | + - datadog-staging |
| 100 | + openai-processing-ms: |
| 101 | + - '1026' |
| 102 | + openai-version: |
| 103 | + - '2020-10-01' |
| 104 | + strict-transport-security: |
| 105 | + - max-age=31536000; includeSubDomains; preload |
| 106 | + x-envoy-upstream-service-time: |
| 107 | + - '1031' |
| 108 | + x-ratelimit-limit-requests: |
| 109 | + - '10000' |
| 110 | + x-ratelimit-limit-tokens: |
| 111 | + - '50000000' |
| 112 | + x-ratelimit-remaining-requests: |
| 113 | + - '9999' |
| 114 | + x-ratelimit-remaining-tokens: |
| 115 | + - '49999925' |
| 116 | + x-ratelimit-reset-requests: |
| 117 | + - 6ms |
| 118 | + x-ratelimit-reset-tokens: |
| 119 | + - 0s |
| 120 | + x-request-id: |
| 121 | + - req_28132c14abf430b2a760d62b7d93d08f |
| 122 | + status: |
| 123 | + code: 200 |
| 124 | + message: OK |
| 125 | +version: 1 |
0 commit comments