tool_streaming.yaml

  1---
  2version: 2
  3interactions:
  4- id: 0
  5  request:
  6    proto: HTTP/1.1
  7    proto_major: 1
  8    proto_minor: 1
  9    content_length: 519
 10    host: ""
 11    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}'
 12    headers:
 13      Accept:
 14      - application/json
 15      Content-Type:
 16      - application/json
 17      User-Agent:
 18      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 19    url: https://ai-gateway.vercel.sh/v1/chat/completions
 20    method: POST
 21  response:
 22    proto: HTTP/2.0
 23    proto_major: 2
 24    proto_minor: 0
 25    content_length: -1
 26    body: |+
 27      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"role":"assistant"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 28
 29      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABpsx2aAob_dcE5mhudxDzzAG63j04ig7HqUletWX4FEbhTGi3XFAwzf7UHBnUceX7TzaFR6UdV6aUvLz-yGxRKFBDsuGB0cA_nt9Z_ihfGaj0y3kzXPoHd9OrwdTl_Q-NP-Ezp2d57dh9x0ZR98go8C2lKElyYbZzf9kYMm4xKr7zNHLL5qsmMcEnx3wN0OqYt70FJgfJa5AmKpB-6jgF590w6eyKj1zou0GIMJcO3hIkhmSBrDDNGXPFdtgfTuSEzADQi21MhLrJzcC_NC_1SQbIVTD5hn6X4kSi0b-0awG6IfxQo1CvC68-e1RArV6FTSo5HewvnbK0slXo6bIdyt5tWETKZrM0_krG3UGJgBrhs4mV0FBLJws-yMshjPiJVECPjWoUbFg5Yjy1a536Py1BHxJAP1VutpgcWuUs1hyi-VOO3mwX8k1sJNrACe-Mv0DBrLsHoUjnEVCPHqDXmtVHcMwsuh1ebBVgdpCudexhyl0LYxwsieKZ2yi7SpIXLKtqsA6-ykOkzKxUmxM_a8sLL1Rc2WISS-7tt2gd3O-c9q1zXf27mr58BI4ZT3vQ2rXZJHdX6bc9Z-guISneLJ5ejCGA1bpOTYjlg--EHZnNwGhfFmLpIfNWTnjb9IdGTIxf0l59K4K0UPggkIXG94pqyRcTOyoebKTGbvOaF_8x9Oe1IrGaeyOvbJhwwpUPYAxqBnR2P4bUhuGILZqC5LISevAnUEjzW9mH94U_7dCT0DfVYvd0O-ZipL6jeR94SIOkEl3adDForcniFsWhSM1Dp34YczkFvbM5Gm4NXh23ZDSbEoiuFC4TMmdOO89tzypk8","id":"rs_0a1966083dfec53c0169b31d9a86f88197ad226e39316ccf60","format":"openai-responses-v1","index":0}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 30
 31      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_2sPqS2wAxxnsgDb6WsoqYYQI","type":"function","function":{"name":"weather","arguments":""}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 32
 33      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 34
 35      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 36
 37      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 38
 39      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 40
 41      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ence"}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 42
 43      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":","}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 44
 45      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 46
 47      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_zjw0mgcpqr"}
 48
 49      data: {"id":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","object":"chat.completion.chunk","created":1773346202,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"provider_metadata":{"openai":{"responseId":"resp_0a1966083dfec53c0169b31d99d60c8197bc41471bc7184100","serviceTier":"default"},"gateway":{"routing":{"originalModelId":"openai/gpt-5","resolvedProvider":"openai","resolvedProviderApiModelId":"gpt-5-2025-08-07","internalResolvedModelId":"openai:gpt-5-2025-08-07","fallbacksAvailable":["azure"],"internalReasoning":"Selected openai as preferred provider for gpt-5. 1 fallback(s) available: azure","planningReasoning":"System credentials planned for: openai, azure. Total execution order: openai(system) → azure(system)","canonicalSlug":"openai/gpt-5","finalProvider":"openai","attempts":[{"provider":"openai","internalModelId":"openai:gpt-5-2025-08-07","providerApiModelId":"gpt-5-2025-08-07","credentialType":"system","success":true,"startTime":849040.113997,"endTime":852056.598613,"providerRequestId":"req_8b5d0bc7c06b4330a7d34a5a5683dd2f","statusCode":200,"providerResponseId":"resp_0a1966083dfec53c0169b31d99d60c8197bc41471bc7184100"}],"modelAttemptCount":1,"modelAttempts":[{"modelId":"openai:gpt-5-2025-08-07","canonicalSlug":"openai/gpt-5","success":true,"providerAttemptCount":1,"providerAttempts":[{"provider":"openai","internalModelId":"openai:gpt-5-2025-08-07","providerApiModelId":"gpt-5-2025-08-07","credentialType":"system","success":true,"startTime":849040.113997,"endTime":852056.598613,"providerRequestId":"req_8b5d0bc7c06b4330a7d34a5a5683dd2f","statusCode":200,"providerResponseId":"resp_0a1966083dfec53c0169b31d99d60c8197bc41471bc7184100"}]}],"totalProviderAttemptCount":1},"cost":"0.00187875","marketCost":"0.00187875","generationId":"gen_01KKHTQ85GD6CXP31EJTEPPJSR","billableWebSearchCalls":0}}},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":63,"completion_tokens":116,"total_tokens":179,"cost":0.00187875,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0,"upstream_inference_completions_cost":0},"completion_tokens_details":{"reasoning_tokens":64,"image_tokens":0},"cache_creation_input_tokens":0,"market_cost":0.00187875},"system_fingerprint":"fp_zjw0mgcpqr","service_tier":"default","generationId":"gen_01KKHTQ85GD6CXP31EJTEPPJSR"}
 50
 51      data: [DONE]
 52
 53    headers:
 54      Content-Type:
 55      - text/event-stream
 56    status: 200 OK
 57    code: 200
 58    duration: 555.709542ms
 59- id: 1
 60  request:
 61    proto: HTTP/1.1
 62    proto_major: 1
 63    proto_minor: 1
 64    content_length: 1780
 65    host: ""
 66    body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_2sPqS2wAxxnsgDb6WsoqYYQI","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"gAAAAABpsx2aAob_dcE5mhudxDzzAG63j04ig7HqUletWX4FEbhTGi3XFAwzf7UHBnUceX7TzaFR6UdV6aUvLz-yGxRKFBDsuGB0cA_nt9Z_ihfGaj0y3kzXPoHd9OrwdTl_Q-NP-Ezp2d57dh9x0ZR98go8C2lKElyYbZzf9kYMm4xKr7zNHLL5qsmMcEnx3wN0OqYt70FJgfJa5AmKpB-6jgF590w6eyKj1zou0GIMJcO3hIkhmSBrDDNGXPFdtgfTuSEzADQi21MhLrJzcC_NC_1SQbIVTD5hn6X4kSi0b-0awG6IfxQo1CvC68-e1RArV6FTSo5HewvnbK0slXo6bIdyt5tWETKZrM0_krG3UGJgBrhs4mV0FBLJws-yMshjPiJVECPjWoUbFg5Yjy1a536Py1BHxJAP1VutpgcWuUs1hyi-VOO3mwX8k1sJNrACe-Mv0DBrLsHoUjnEVCPHqDXmtVHcMwsuh1ebBVgdpCudexhyl0LYxwsieKZ2yi7SpIXLKtqsA6-ykOkzKxUmxM_a8sLL1Rc2WISS-7tt2gd3O-c9q1zXf27mr58BI4ZT3vQ2rXZJHdX6bc9Z-guISneLJ5ejCGA1bpOTYjlg--EHZnNwGhfFmLpIfNWTnjb9IdGTIxf0l59K4K0UPggkIXG94pqyRcTOyoebKTGbvOaF_8x9Oe1IrGaeyOvbJhwwpUPYAxqBnR2P4bUhuGILZqC5LISevAnUEjzW9mH94U_7dCT0DfVYvd0O-ZipL6jeR94SIOkEl3adDForcniFsWhSM1Dp34YczkFvbM5Gm4NXh23ZDSbEoiuFC4TMmdOO89tzypk8","format":"openai-responses-v1","id":"rs_0a1966083dfec53c0169b31d9a86f88197ad226e39316ccf60","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"call_2sPqS2wAxxnsgDb6WsoqYYQI","role":"tool"}],"model":"openai/gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"weather","strict":false,"description":"Get weather information for a location","parameters":{"properties":{"location":{"description":"the city","type":"string"}},"required":["location"],"type":"object"}},"type":"function"}],"stream":true}'
 67    headers:
 68      Accept:
 69      - application/json
 70      Content-Type:
 71      - application/json
 72      User-Agent:
 73      - Charm-Fantasy/0.12.2 (https://charm.land/fantasy)
 74    url: https://ai-gateway.vercel.sh/v1/chat/completions
 75    method: POST
 76  response:
 77    proto: HTTP/2.0
 78    proto_major: 2
 79    proto_minor: 0
 80    content_length: -1
 81    body: |+
 82      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"role":"assistant"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 83
 84      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":"It"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 85
 86      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":"’s"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 87
 88      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" currently"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 89
 90      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" about"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 91
 92      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" "},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 93
 94      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":"40"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 95
 96      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":"°C"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 97
 98      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
 99
100      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" Florence"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
101
102      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
103
104      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" Italy"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
105
106      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
107
108      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" Stay"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
109
110      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" hydrated"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
111
112      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
113
114      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" avoid"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
115
116      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" prolonged"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
117
118      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" sun"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
119
120      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" exposure"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
121
122      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" during"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
123
124      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" peak"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
125
126      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" afternoon"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
127
128      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":" hours"},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
129
130      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"system_fingerprint":"fp_oviize2n33"}
131
132      data: {"id":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","object":"chat.completion.chunk","created":1773346205,"model":"openai/gpt-5","choices":[{"index":0,"delta":{"provider_metadata":{"openai":{"responseId":"resp_0a1966083dfec53c0169b31d9d0f7c8197b5113dbefefe6dba","serviceTier":"default"},"gateway":{"routing":{"originalModelId":"openai/gpt-5","resolvedProvider":"openai","resolvedProviderApiModelId":"gpt-5-2025-08-07","internalResolvedModelId":"openai:gpt-5-2025-08-07","fallbacksAvailable":["azure"],"internalReasoning":"Selected openai as preferred provider for gpt-5. 1 fallback(s) available: azure","planningReasoning":"System credentials planned for: openai, azure. Total execution order: openai(system) → azure(system)","canonicalSlug":"openai/gpt-5","finalProvider":"openai","attempts":[{"provider":"openai","internalModelId":"openai:gpt-5-2025-08-07","providerApiModelId":"gpt-5-2025-08-07","credentialType":"system","success":true,"startTime":355068.285189,"endTime":356251.105957,"providerRequestId":"req_9a4c736413e64cc19e53b485ba2e86a5","statusCode":200,"providerResponseId":"resp_0a1966083dfec53c0169b31d9d0f7c8197b5113dbefefe6dba"}],"modelAttemptCount":1,"modelAttempts":[{"modelId":"openai:gpt-5-2025-08-07","canonicalSlug":"openai/gpt-5","success":true,"providerAttemptCount":1,"providerAttempts":[{"provider":"openai","internalModelId":"openai:gpt-5-2025-08-07","providerApiModelId":"gpt-5-2025-08-07","credentialType":"system","success":true,"startTime":355068.285189,"endTime":356251.105957,"providerRequestId":"req_9a4c736413e64cc19e53b485ba2e86a5","statusCode":200,"providerResponseId":"resp_0a1966083dfec53c0169b31d9d0f7c8197b5113dbefefe6dba"}]}],"totalProviderAttemptCount":1},"cost":"0.00040125","marketCost":"0.00040125","generationId":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W","billableWebSearchCalls":0}}},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":97,"completion_tokens":28,"total_tokens":125,"cost":0.00040125,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0,"upstream_inference_completions_cost":0},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0},"cache_creation_input_tokens":0,"market_cost":0.00040125},"system_fingerprint":"fp_oviize2n33","service_tier":"default","generationId":"gen_01KKHTQB9Z3EMMZFKJN3CSQH3W"}
133
134      data: [DONE]
135
136    headers:
137      Content-Type:
138      - text/event-stream
139    status: 200 OK
140    code: 200
141    duration: 377.344375ms