From 5e4a4438f6dd9a60cefc0e26e948e6ac7a244e83 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 19 Mar 2026 15:41:30 -0300 Subject: [PATCH] test: re-record openrouter fixtures --- .../anthropic/multi_tool.yaml | 63 + .../anthropic/multi_tool_streaming.yaml | 141 ++ .../anthropic/simple.yaml | 33 + .../anthropic/simple_streaming.yaml | 32 + .../TestOpenRouterCommon/anthropic/tool.yaml | 63 + .../anthropic/tool_streaming.yaml | 169 ++ .../claude-sonnet-4/multi_tool.yaml | 63 - .../claude-sonnet-4/multi_tool_streaming.yaml | 117 -- .../claude-sonnet-4/simple.yaml | 33 - .../claude-sonnet-4/simple_streaming.yaml | 40 - .../claude-sonnet-4/tool.yaml | 63 - .../claude-sonnet-4/tool_streaming.yaml | 117 -- .../deepseek/deepseek-v3.2/multi_tool.yaml | 63 - .../deepseek-v3.2/multi_tool_streaming.yaml | 165 -- .../deepseek/deepseek-v3.2/simple.yaml | 33 - .../deepseek-v3.2/simple_streaming.yaml | 42 - .../deepseek/deepseek-v3.2/tool.yaml | 63 - .../deepseek-v3.2/tool_streaming.yaml | 107 -- .../gemini-2.5-flash/multi_tool.yaml | 63 - .../multi_tool_streaming.yaml | 87 -- .../gemini-2.5-flash/simple.yaml | 33 - .../gemini-2.5-flash/simple_streaming.yaml | 42 - .../gemini-2.5-flash/tool.yaml | 63 - .../gemini-2.5-flash/tool_streaming.yaml | 81 - .../gemini-3-pro-preview/multi_tool.yaml | 63 - .../multi_tool_streaming.yaml | 93 -- .../gemini-3-pro-preview/simple.yaml | 33 - .../simple_streaming.yaml | 46 - .../gemini-3-pro-preview/tool.yaml | 63 - .../gemini-3-pro-preview/tool_streaming.yaml | 85 - .../gemini/multi_tool.yaml | 63 + .../gemini/multi_tool_streaming.yaml | 121 ++ .../TestOpenRouterCommon/gemini/simple.yaml | 33 + .../gemini/simple_streaming.yaml | 46 + .../TestOpenRouterCommon/gemini/tool.yaml | 63 + .../gemini/tool_streaming.yaml | 113 ++ .../glm-4.5/multi_tool.yaml | 63 - .../glm-4.5/multi_tool_streaming.yaml | 405 ----- .../TestOpenRouterCommon/glm-4.5/simple.yaml | 33 - .../glm-4.5/simple_streaming.yaml | 204 --- .../TestOpenRouterCommon/glm-4.5/tool.yaml | 63 - .../glm-4.5/tool_streaming.yaml | 371 ----- .../glm-4.6/multi_tool.yaml | 63 - .../glm-4.6/multi_tool_streaming.yaml | 361 ----- .../TestOpenRouterCommon/glm-4.6/simple.yaml | 33 - .../glm-4.6/simple_streaming.yaml | 1388 ----------------- .../TestOpenRouterCommon/glm-4.6/tool.yaml | 63 - .../glm-4.6/tool_streaming.yaml | 319 ---- .../TestOpenRouterCommon/glm/multi_tool.yaml | 63 + .../glm/multi_tool_streaming.yaml | 171 ++ .../TestOpenRouterCommon/glm/simple.yaml | 33 + .../glm/simple_streaming.yaml | 562 +++++++ .../TestOpenRouterCommon/glm/tool.yaml | 63 + .../glm/tool_streaming.yaml | 133 ++ .../gpt-5/multi_tool.yaml | 63 - .../gpt-5/multi_tool_streaming.yaml | 261 ---- .../TestOpenRouterCommon/gpt-5/simple.yaml | 33 - .../gpt-5/simple_streaming.yaml | 192 --- .../TestOpenRouterCommon/gpt-5/tool.yaml | 63 - .../gpt-5/tool_streaming.yaml | 555 ------- .../grok-code-fast-1/multi_tool.yaml | 63 - .../multi_tool_streaming.yaml | 273 ---- .../grok-code-fast-1/simple.yaml | 33 - .../grok-code-fast-1/simple_streaming.yaml | 150 -- .../grok-code-fast-1/tool.yaml | 63 - .../grok-code-fast-1/tool_streaming.yaml | 187 --- .../TestOpenRouterCommon/grok/multi_tool.yaml | 63 + .../grok/multi_tool_streaming.yaml | 243 +++ .../TestOpenRouterCommon/grok/simple.yaml | 33 + .../grok/simple_streaming.yaml | 32 + .../TestOpenRouterCommon/grok/tool.yaml | 63 + .../grok/tool_streaming.yaml | 181 +++ .../kimi-k2/multi_tool.yaml | 63 - .../kimi-k2/multi_tool_streaming.yaml | 239 --- .../TestOpenRouterCommon/kimi-k2/simple.yaml | 33 - .../kimi-k2/simple_streaming.yaml | 42 - .../TestOpenRouterCommon/kimi-k2/tool.yaml | 63 - .../kimi-k2/tool_streaming.yaml | 161 -- .../TestOpenRouterCommon/kimi/multi_tool.yaml | 63 + .../kimi/multi_tool_streaming.yaml | 471 ++++++ .../TestOpenRouterCommon/kimi/simple.yaml | 33 + .../kimi/simple_streaming.yaml | 430 +++++ .../TestOpenRouterCommon/kimi/tool.yaml | 63 + .../kimi/tool_streaming.yaml | 311 ++++ .../openai/multi_tool.yaml | 63 + .../openai/multi_tool_streaming.yaml | 127 ++ .../TestOpenRouterCommon/openai/simple.yaml | 33 + .../openai/simple_streaming.yaml | 32 + .../TestOpenRouterCommon/openai/tool.yaml | 63 + .../openai/tool_streaming.yaml | 129 ++ .../qwen3-235b-a22b-2507/multi_tool.yaml | 63 - .../multi_tool_streaming.yaml | 113 -- .../qwen3-235b-a22b-2507/simple.yaml | 33 - .../simple_streaming.yaml | 44 - .../qwen3-235b-a22b-2507/tool.yaml | 63 - .../qwen3-235b-a22b-2507/tool_streaming.yaml | 97 -- .../anthropic/multi_tool.yaml | 63 + .../anthropic/multi_tool_streaming.yaml | 139 ++ .../anthropic/simple.yaml | 33 + .../anthropic/simple_streaming.yaml | 32 + .../anthropic/tool.yaml | 63 + .../anthropic/tool_streaming.yaml | 141 ++ .../claude-sonnet-4/multi_tool.yaml | 63 - .../claude-sonnet-4/multi_tool_streaming.yaml | 117 -- .../claude-sonnet-4/simple.yaml | 33 - .../claude-sonnet-4/simple_streaming.yaml | 66 - .../claude-sonnet-4/tool.yaml | 63 - .../claude-sonnet-4/tool_streaming.yaml | 115 -- .../anthropic/thinking-streaming.yaml | 177 +++ .../anthropic/thinking.yaml | 63 + .../thinking-streaming.yaml | 137 -- .../claude-sonnet-4-sig/thinking.yaml | 63 - .../claude-sonnet-4/thinking-streaming.yaml | 139 -- .../claude-sonnet-4/thinking.yaml | 63 - .../thinking-streaming.yaml | 87 -- .../gemini-3-pro-preview/thinking.yaml | 63 - .../glm-4.6/thinking-streaming.yaml | 347 ----- .../glm-4.6/thinking.yaml | 63 - .../gpt-5/thinking-streaming.yaml | 307 ---- .../gpt-5/thinking.yaml | 63 - .../grok-code-fast-1/thinking-streaming.yaml | 287 ---- .../grok-code-fast-1/thinking.yaml | 63 - 122 files changed, 5109 insertions(+), 10113 deletions(-) create mode 100644 providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/anthropic/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/anthropic/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/anthropic/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/anthropic/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/gemini/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/gemini/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/gemini/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/gemini/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/gemini/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/gemini/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.5/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.5/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.5/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.5/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.6/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.6/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.6/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/glm-4.6/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/glm/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/glm/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/glm/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/glm/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/glm/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/glm/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gpt-5/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gpt-5/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gpt-5/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/gpt-5/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/grok/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/grok/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/grok/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/grok/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/grok/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/grok/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/kimi-k2/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/kimi-k2/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/kimi-k2/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/kimi-k2/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/kimi/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/kimi/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/kimi/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/kimi/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/kimi/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/kimi/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/openai/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/openai/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/openai/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/openai/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/openai/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommon/openai/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple.yaml create mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool.yaml create mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple_streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool.yaml delete mode 100644 providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool_streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterThinking/anthropic/thinking-streaming.yaml create mode 100644 providertests/testdata/TestOpenRouterThinking/anthropic/thinking.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking-streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking-streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking-streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking-streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/gpt-5/thinking-streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/gpt-5/thinking.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking-streaming.yaml delete mode 100644 providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking.yaml diff --git a/providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..07256ce2506838bffc277b872742847f4b61d921 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 856 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945358-FDlyLIKJQBIXIh4OyuLo\",\"object\":\"chat.completion\",\"created\":1773945358,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_bdrk_01VnB5DUbR2NKeZThzEtpwdb\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"toolu_bdrk_01CDDWHjeHEf3QYvSRaGihKp\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":690,\"completion_tokens\":120,\"total_tokens\":810,\"cost\":0.00129,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00129,\"upstream_inference_prompt_cost\":0.00069,\"upstream_inference_completions_cost\":0.0006},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 4.230596708s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1311 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01VnB5DUbR2NKeZThzEtpwdb","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_bdrk_01CDDWHjeHEf3QYvSRaGihKp","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_bdrk_01VnB5DUbR2NKeZThzEtpwdb","role":"tool"},{"content":"6","tool_call_id":"toolu_bdrk_01CDDWHjeHEf3QYvSRaGihKp","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945363-bjEDpfY1yMWlhRQEtwaa\",\"object\":\"chat.completion\",\"created\":1773945363,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Perfect! Here are the results:\\n\\n- **Adding** 2 + 3 = **5**\\n- **Multiplying** 2 × 3 = **6**\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":871,\"completion_tokens\":44,\"total_tokens\":915,\"cost\":0.001091,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.001091,\"upstream_inference_prompt_cost\":0.000871,\"upstream_inference_completions_cost\":0.00022},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.332091s diff --git a/providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..303f2ddcb48bd4e7015a4c0f894bb42aa1a188d1 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/anthropic/multi_tool_streaming.yaml @@ -0,0 +1,141 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 893 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_bdrk_01XTTFRiRuvcspcpxuMoJ965","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":": 2"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":", "}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"toolu_bdrk_01Ao3wLFy6JWPGtWcZ8CvdVo","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945367-w5BMjFUo1VftlXVqvaPn","object":"chat.completion.chunk","created":1773945367,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":685,"completion_tokens":120,"total_tokens":805,"cost":0.001285,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001285,"upstream_inference_prompt_cost":0.000685,"upstream_inference_completions_cost":0.0006},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 3.905948833s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1348 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01XTTFRiRuvcspcpxuMoJ965","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_bdrk_01Ao3wLFy6JWPGtWcZ8CvdVo","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_bdrk_01XTTFRiRuvcspcpxuMoJ965","role":"tool"},{"content":"6","tool_call_id":"toolu_bdrk_01Ao3wLFy6JWPGtWcZ8CvdVo","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"Perfect","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"! Here","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" are the results:\n\n- **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"Addition","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"**: 2 + 3 ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"= **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"5**\n- **Multiplication**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" 2 × 3 =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" **6**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945371-0C2JH3j25iWHzQzrJHm7","object":"chat.completion.chunk","created":1773945371,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":866,"completion_tokens":43,"total_tokens":909,"cost":0.001081,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001081,"upstream_inference_prompt_cost":0.000866,"upstream_inference_completions_cost":0.000215},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.608417583s diff --git a/providertests/testdata/TestOpenRouterCommon/anthropic/simple.yaml b/providertests/testdata/TestOpenRouterCommon/anthropic/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..759541e67e9f7e96dc0be261d5915f7c3a43dcdd --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/anthropic/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 201 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945333-8woqHhslWkUBof9rDT5h\",\"object\":\"chat.completion\",\"created\":1773945333,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá! \U0001F44B\\n\\n(or \\\"Oi!\\\" for a more casual greeting)\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":24,\"total_tokens\":40,\"cost\":0.000136,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000136,\"upstream_inference_prompt_cost\":0.000016,\"upstream_inference_completions_cost\":0.00012},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.234733708s diff --git a/providertests/testdata/TestOpenRouterCommon/anthropic/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/anthropic/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..930a91517115183662b877a4e945022a42ac637a --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/anthropic/simple_streaming.yaml @@ -0,0 +1,32 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 255 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: ": OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Olá! \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\U0001F44B\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\\n\\n(\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Or\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \\\"\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Oi!\\\" for\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" a\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" more casual greeting)\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}]}\n\ndata: {\"id\":\"gen-1773945335-6fzOzM22YNaAMMCFoBUI\",\"object\":\"chat.completion.chunk\",\"created\":1773945335,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":24,\"total_tokens\":40,\"cost\":0.000136,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000136,\"upstream_inference_prompt_cost\":0.000016,\"upstream_inference_completions_cost\":0.00012},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}\n\ndata: [DONE]\n\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 6.406652583s diff --git a/providertests/testdata/TestOpenRouterCommon/anthropic/tool.yaml b/providertests/testdata/TestOpenRouterCommon/anthropic/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2baf6de704e7e0c7a1a747ca14962d5b2feae88c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/anthropic/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 493 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945342-jKAAVEw88x4puynntZ3C\",\"object\":\"chat.completion\",\"created\":1773945342,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_bdrk_01HvsWDkYxNAWR5pVHD47MZ7\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence, Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":577,\"completion_tokens\":54,\"total_tokens\":631,\"cost\":0.000847,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000847,\"upstream_inference_prompt_cost\":0.000577,\"upstream_inference_completions_cost\":0.00027},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 5.041391041s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 758 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01HvsWDkYxNAWR5pVHD47MZ7","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_bdrk_01HvsWDkYxNAWR5pVHD47MZ7","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945347-FZ9S04kVlZRXgrWCIN1o\",\"object\":\"chat.completion\",\"created\":1773945347,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is **40°C (104°F)**, which is quite hot! This is typical for Florence during the summer months, particularly in July and August when temperatures often reach or exceed 40°C. If you're planning a visit or are currently there, make sure to stay hydrated and use sun protection.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":646,\"completion_tokens\":73,\"total_tokens\":719,\"cost\":0.001011,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.001011,\"upstream_inference_prompt_cost\":0.000646,\"upstream_inference_completions_cost\":0.000365},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 5.138797333s diff --git a/providertests/testdata/TestOpenRouterCommon/anthropic/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/anthropic/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6bd69861a6a808295e846806abb8bcd0b9246455 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/anthropic/tool_streaming.yaml @@ -0,0 +1,169 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 547 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"anthropic/claude-haiku-4.5","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_bdrk_01Q8hMVuCxjhyQ5fPFaK2LHt","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"location\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"Florence,"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945354-XxuArfRtL105GrGucMsX","object":"chat.completion.chunk","created":1773945354,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":577,"completion_tokens":54,"total_tokens":631,"cost":0.000847,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000847,"upstream_inference_prompt_cost":0.000577,"upstream_inference_completions_cost":0.00027},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.738503458s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 812 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01Q8hMVuCxjhyQ5fPFaK2LHt","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_bdrk_01Q8hMVuCxjhyQ5fPFaK2LHt","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"The weather in Florence, Italy is currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" **40°C (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"104°F)**,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" which","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" is quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" \n\nThis","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" is typical","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" for Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" during","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" summer months when","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" temperatures","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" can be","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" quite warm","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"'d recommend:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"\n- Staying","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" hydrated\n- Wearing light,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" breathable clothing\n- Using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" sun","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" protection (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"sun","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"screen, hat, sunglasses)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"\n- Planning","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" outdoor activities for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" early","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" morning or late evening","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" avoid the heat of","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" the day","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945356-69pREjI1t1LIACEkKHdK","object":"chat.completion.chunk","created":1773945356,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":646,"completion_tokens":96,"total_tokens":742,"cost":0.001126,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001126,"upstream_inference_prompt_cost":0.000646,"upstream_inference_completions_cost":0.00048},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.818862708s diff --git a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool.yaml deleted file mode 100644 index 6238a378a7f7a83f8f27e5e1ba37ded7b3c30d19..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 855 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323540-GMKB7AKBdj2BQpQEkGHO\",\"object\":\"chat.completion\",\"created\":1773323540,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll add and multiply the numbers 2 and 3 for you.\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_vrtx_01CrwT5W3QNtyBVRA3nAPzUp\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"toolu_vrtx_0146kPvSq635LRm2USSvDtM9\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":507,\"completion_tokens\":137,\"total_tokens\":644,\"cost\":0.003576,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.003576,\"upstream_inference_prompt_cost\":0.001521,\"upstream_inference_completions_cost\":0.002055},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 903.432416ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1373 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"toolu_vrtx_01CrwT5W3QNtyBVRA3nAPzUp","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_vrtx_0146kPvSq635LRm2USSvDtM9","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_vrtx_01CrwT5W3QNtyBVRA3nAPzUp","role":"tool"},{"content":"6","tool_call_id":"toolu_vrtx_0146kPvSq635LRm2USSvDtM9","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773323541-QBUWUTUbDaqymBDVEuoE\",\"object\":\"chat.completion\",\"created\":1773323541,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The results are:\\n- 2 + 3 = 5\\n- 2 × 3 = 6\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":705,\"completion_tokens\":31,\"total_tokens\":736,\"cost\":0.00258,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00258,\"upstream_inference_prompt_cost\":0.002115,\"upstream_inference_completions_cost\":0.000465},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.30722575s diff --git a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool_streaming.yaml deleted file mode 100644 index f327e6363e347ba6e9a6bf3865d6d47358d17553..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/multi_tool_streaming.yaml +++ /dev/null @@ -1,117 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 892 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"I'll add and multiply the numbers","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 2 and 3 for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" you.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_vrtx_012sEiA1ajGbPds1mUPKdMnU","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\": "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"toolu_vrtx_012fhTq4abLcwbgsKbdfgVPA","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\": 2"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":", \"b"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323543-geHAkHUSSkZsqY28AQTy","object":"chat.completion.chunk","created":1773323543,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.003561,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 917.065042ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1410 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"toolu_vrtx_012sEiA1ajGbPds1mUPKdMnU","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_vrtx_012fhTq4abLcwbgsKbdfgVPA","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_vrtx_012sEiA1ajGbPds1mUPKdMnU","role":"tool"},{"content":"6","tool_call_id":"toolu_vrtx_012fhTq4abLcwbgsKbdfgVPA","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"The results","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" are:\n- 2 +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 3 = 5\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 2 × 3 =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323545-oAGngtaqrgPZPjMvn7RU","object":"chat.completion.chunk","created":1773323545,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":700,"completion_tokens":31,"total_tokens":731,"cost":0.002565,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002565,"upstream_inference_prompt_cost":0.0021,"upstream_inference_completions_cost":0.000465},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.143589583s diff --git a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple.yaml b/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple.yaml deleted file mode 100644 index 54d3ba5f5e85b028aafe4dc793d0ab25f942b3e5..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 200 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n{\"id\":\"gen-1773323530-QEmpi7F7SRj0p4e9ja20\",\"object\":\"chat.completion\",\"created\":1773323530,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá!\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":7,\"total_tokens\":23,\"cost\":0.000153,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000153,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.000105},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.175311917s diff --git a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple_streaming.yaml deleted file mode 100644 index 6c1ad2d98016471a6a1c5d5c75db3584ff7bb46c..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/simple_streaming.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 254 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323531-D7RR9I3I1lMzNDNfWzao","object":"chat.completion.chunk","created":1773323531,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"Olá!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323531-D7RR9I3I1lMzNDNfWzao","object":"chat.completion.chunk","created":1773323531,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323531-D7RR9I3I1lMzNDNfWzao","object":"chat.completion.chunk","created":1773323531,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":16,"completion_tokens":7,"total_tokens":23,"cost":0.000153,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000153,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.000105},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 890.029ms diff --git a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool.yaml b/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool.yaml deleted file mode 100644 index 486c068ae6676b6a2f261d6714161f512172009b..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 492 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773323532-1mS9KNmcR9a15lyOpBt1\",\"object\":\"chat.completion\",\"created\":1773323532,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll get the current weather information for Florence, Italy.\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_vrtx_016wvfRxzgyUV27vpoMsJi36\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence,Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":394,\"completion_tokens\":66,\"total_tokens\":460,\"cost\":0.002172,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002172,\"upstream_inference_prompt_cost\":0.001182,\"upstream_inference_completions_cost\":0.00099},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.07917925s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 830 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll get the current weather information for Florence, Italy.","tool_calls":[{"id":"toolu_vrtx_016wvfRxzgyUV27vpoMsJi36","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_016wvfRxzgyUV27vpoMsJi36","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323534-wQioDfMwqpk3GMDwrf4r\",\"object\":\"chat.completion\",\"created\":1773323534,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current temperature in Florence, Italy is 40°C (104°F). That's quite hot! This is typical summer weather for the region. If you're planning to visit or are currently there, make sure to stay hydrated and seek shade during the hottest parts of the day.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":475,\"completion_tokens\":63,\"total_tokens\":538,\"cost\":0.00237,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00237,\"upstream_inference_prompt_cost\":0.001425,\"upstream_inference_completions_cost\":0.000945},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.488607917s diff --git a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool_streaming.yaml deleted file mode 100644 index 918ee41a8ed46ba4509a6da0e1d1b92d69b5b042..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/claude-sonnet-4/tool_streaming.yaml +++ /dev/null @@ -1,117 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 546 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"anthropic/claude-sonnet-4","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"I'll get","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" the weather information for Florence, Italy for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" you.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_vrtx_015PkcPo9nLuQ3Lz4ELQueGM","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\": \"Floren"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ce"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":",Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323536-Ko6dI9bnZTkPeee45z6T","object":"chat.completion.chunk","created":1773323536,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":394,"completion_tokens":67,"total_tokens":461,"cost":0.002187,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002187,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.001005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 948.437542ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 884 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll get the weather information for Florence, Italy for you.","tool_calls":[{"id":"toolu_vrtx_015PkcPo9nLuQ3Lz4ELQueGM","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_015PkcPo9nLuQ3Lz4ELQueGM","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"The current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" temperature in Florence, Italy is 40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"°C (104°F). That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"'s quite hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" If","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" you're planning to visit or are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" currently there, make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" sure to stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" hydrated and seek","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" shade during the hottest parts","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" of the day.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323538-UfUcZg6x7EjgfGIP95rN","object":"chat.completion.chunk","created":1773323538,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":476,"completion_tokens":54,"total_tokens":530,"cost":0.002238,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002238,"upstream_inference_prompt_cost":0.001428,"upstream_inference_completions_cost":0.00081},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.039042791s diff --git a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool.yaml deleted file mode 100644 index f3e9edb7233506448129c945843592b382bd714b..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 852 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323896-yilCh8sn1R8UFUbdxmGz\",\"object\":\"chat.completion\",\"created\":1773323896,\"model\":\"deepseek/deepseek-v3.2-20251201\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll add and multiply the numbers 2 and 3 at the same time as required\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"11cf71f38f0b4894b68d75abb63dfbad\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"598d391f886f4aae9d12e1fe63701947\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":422,\"completion_tokens\":122,\"total_tokens\":544,\"cost\":0.00015608,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00015608,\"upstream_inference_prompt_cost\":0.00010972,\"upstream_inference_completions_cost\":0.00004636},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.419623959s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1378 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 at the same time as required","tool_calls":[{"id":"11cf71f38f0b4894b68d75abb63dfbad","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"598d391f886f4aae9d12e1fe63701947","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"11cf71f38f0b4894b68d75abb63dfbad","role":"tool"},{"content":"6","tool_call_id":"598d391f886f4aae9d12e1fe63701947","role":"tool"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323901-yNEwfFD1Mu1e66ZJ7PVt\",\"object\":\"chat.completion\",\"created\":1773323901,\"model\":\"deepseek/deepseek-v3.2-20251201\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Results:\\n- Addition: 2 + 3 = 5\\n- Multiplication: 2 × 3 = 6\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":569,\"completion_tokens\":26,\"total_tokens\":595,\"cost\":0.00015782,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00015782,\"upstream_inference_prompt_cost\":0.00014794,\"upstream_inference_completions_cost\":0.00000988},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.833652167s diff --git a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool_streaming.yaml deleted file mode 100644 index 3c1d215e48b04ac9edd2da75315dbe873dddaf06..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/multi_tool_streaming.yaml +++ /dev/null @@ -1,165 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 889 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"'ll help","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" you add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" and multiply","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" numbers ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"2 and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" simultaneously as","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" requested.\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"0b9b65cb86084440a3ea7f75a9f20104","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\": 2, \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"5e95ae6f882c4547a01d7ed60da214f0","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\": 2, \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323904-gGztCi17vPKdNVkryZCS","object":"chat.completion.chunk","created":1773323904,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":416,"completion_tokens":123,"total_tokens":539,"cost":0.0001549,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0001549,"upstream_inference_prompt_cost":0.00010816,"upstream_inference_completions_cost":0.00004674},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.3461555s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1432 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll help you add and multiply the numbers 2 and 3 simultaneously as you requested.\n\n","tool_calls":[{"id":"0b9b65cb86084440a3ea7f75a9f20104","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"5e95ae6f882c4547a01d7ed60da214f0","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"0b9b65cb86084440a3ea7f75a9f20104","role":"tool"},{"content":"6","tool_call_id":"5e95ae6f882c4547a01d7ed60da214f0","role":"tool"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" results are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":":\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"Addition**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" + ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"3 =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" **Multiplication","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"**: ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"2 ×","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" = ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"6\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"So","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" when","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" working","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" with the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" numbers ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"2 and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":":\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" Their","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" sum is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" Their product","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" is ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323909-d48dNrkwsHDs62ddmrgf","object":"chat.completion.chunk","created":1773323909,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":563,"completion_tokens":56,"total_tokens":619,"cost":0.00016766,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00016766,"upstream_inference_prompt_cost":0.00014638,"upstream_inference_completions_cost":0.00002128},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.468291333s diff --git a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple.yaml b/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple.yaml deleted file mode 100644 index d1de1ab05ab2ab661a9ca5957df0acd49a159de5..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 197 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323879-BNXjUOAjb0ekhuFzfdmG\",\"object\":\"chat.completion\",\"created\":1773323879,\"model\":\"deepseek/deepseek-v3.2-20251201\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá! \U0001F60A\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":13,\"completion_tokens\":6,\"total_tokens\":19,\"cost\":0.00000566,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00000566,\"upstream_inference_prompt_cost\":0.00000338,\"upstream_inference_completions_cost\":0.00000228},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.374466917s diff --git a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple_streaming.yaml deleted file mode 100644 index e37350e27891d00d678c83d24626b26f5afb9740..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/simple_streaming.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 251 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323881-sbeSbTHCeTso0VvT2Trm","object":"chat.completion.chunk","created":1773323881,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323881-sbeSbTHCeTso0VvT2Trm","object":"chat.completion.chunk","created":1773323881,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"á!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323881-sbeSbTHCeTso0VvT2Trm","object":"chat.completion.chunk","created":1773323881,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323881-sbeSbTHCeTso0VvT2Trm","object":"chat.completion.chunk","created":1773323881,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":13,"completion_tokens":3,"total_tokens":16,"cost":0.00000452,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00000452,"upstream_inference_prompt_cost":0.00000338,"upstream_inference_completions_cost":0.00000114},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.671443459s diff --git a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool.yaml b/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool.yaml deleted file mode 100644 index aab11aa1f1260be7c94bd70d2b088fedc9bf87c0..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 489 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323883-qj9Z9EU0tpfsgrYQKXNC\",\"object\":\"chat.completion\",\"created\":1773323884,\"model\":\"deepseek/deepseek-v3.2-20251201\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll get the weather information for Florence, Italy for you.\\n\\n\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"349178e55f3844ab9d1caa689619277a\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence,Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":318,\"completion_tokens\":58,\"total_tokens\":376,\"cost\":0.00010472,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00010472,\"upstream_inference_prompt_cost\":0.00008268,\"upstream_inference_completions_cost\":0.00002204},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.656624334s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 825 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll get the weather information for Florence, Italy for you.\n\n","tool_calls":[{"id":"349178e55f3844ab9d1caa689619277a","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"349178e55f3844ab9d1caa689619277a","role":"tool"}],"model":"deepseek/deepseek-v3.2","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323887-OoxGQKe5NN2dKyD4fppO\",\"object\":\"chat.completion\",\"created\":1773323887,\"model\":\"deepseek/deepseek-v3.2-20251201\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in Florence, Italy is **40°C** (which is 104°F). That's quite hot! If you're planning to be there, make sure to stay hydrated and seek shade during the hottest parts of the day.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":395,\"completion_tokens\":51,\"total_tokens\":446,\"cost\":0.00012208,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00012208,\"upstream_inference_prompt_cost\":0.0001027,\"upstream_inference_completions_cost\":0.00001938},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.471653125s diff --git a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool_streaming.yaml deleted file mode 100644 index c98c502667eed0ee6b5820817000621b1f76a955..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/deepseek/deepseek-v3.2/tool_streaming.yaml +++ /dev/null @@ -1,107 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 543 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"deepseek/deepseek-v3.2","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"'ll get","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" the weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" information for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" Florence,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" Italy for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" you.\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"0a373b5ec8014719aec1898f092698c4","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\": \"Florence\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323890-5hlASQg7HIbNczB2sxfw","object":"chat.completion.chunk","created":1773323890,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":318,"completion_tokens":56,"total_tokens":374,"cost":0.00010396,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00010396,"upstream_inference_prompt_cost":0.00008268,"upstream_inference_completions_cost":0.00002128},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.497798917s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 873 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll get the weather information for Florence, Italy for you.\n\n","tool_calls":[{"id":"0a373b5ec8014719aec1898f092698c4","function":{"arguments":"{\"location\": \"Florence\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"0a373b5ec8014719aec1898f092698c4","role":"tool"}],"model":"deepseek/deepseek-v3.2","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" temperature in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" Florence,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" Italy is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"40°","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"C.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323894-rewl0HpIp9isI6kKd8cP","object":"chat.completion.chunk","created":1773323894,"model":"deepseek/deepseek-v3.2-20251201","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":393,"completion_tokens":13,"total_tokens":406,"cost":0.00010712,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00010712,"upstream_inference_prompt_cost":0.00010218,"upstream_inference_completions_cost":0.00000494},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.430157167s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool.yaml deleted file mode 100644 index 0c12e7ff7b7e93b86b805dd3d174e9a13e3b29a8..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 853 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323563-vMWuE4lAdXXxYhoFBGsq\",\"object\":\"chat.completion\",\"created\":1773323563,\"model\":\"google/gemini-2.5-flash\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_add_U8tpxxwjMfCfJFWUR70h\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"b\\\":3,\\\"a\\\":2}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"tool_multiply_YmffBFRJLXoCJxBdhkmH\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}]}}],\"usage\":{\"prompt_tokens\":61,\"completion_tokens\":10,\"total_tokens\":71,\"cost\":0.0000433,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000433,\"upstream_inference_prompt_cost\":0.0000183,\"upstream_inference_completions_cost\":0.000025},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.678430958s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1288 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"tool_add_U8tpxxwjMfCfJFWUR70h","function":{"arguments":"{\"b\":3,\"a\":2}","name":"add"},"type":"function"},{"id":"tool_multiply_YmffBFRJLXoCJxBdhkmH","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"tool_add_U8tpxxwjMfCfJFWUR70h","role":"tool"},{"content":"6","tool_call_id":"tool_multiply_YmffBFRJLXoCJxBdhkmH","role":"tool"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323565-qTc7olbcOYAvfIbW83iw\",\"object\":\"chat.completion\",\"created\":1773323565,\"model\":\"google/gemini-2.5-flash\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"I have added 2 and 3 to get 5, and multiplied 2 and 3 to get 6.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":110,\"completion_tokens\":25,\"total_tokens\":135,\"cost\":0.0000955,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000955,\"upstream_inference_prompt_cost\":0.000033,\"upstream_inference_completions_cost\":0.0000625},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.042498792s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool_streaming.yaml deleted file mode 100644 index 933628e71ea325b91e2f1a0635cfb464a17cf475..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/multi_tool_streaming.yaml +++ /dev/null @@ -1,87 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 890 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323568-46sn6OjhgDHVFJLSGDFI","object":"chat.completion.chunk","created":1773323568,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_add_KQuyjhzkSrDLHHP8RcOV","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323568-46sn6OjhgDHVFJLSGDFI","object":"chat.completion.chunk","created":1773323568,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"b\":3,\"a\":2}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323568-46sn6OjhgDHVFJLSGDFI","object":"chat.completion.chunk","created":1773323568,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"tool_multiply_bdU7KY7e0zIp9S5WXO8k","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323568-46sn6OjhgDHVFJLSGDFI","object":"chat.completion.chunk","created":1773323568,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"b\":3,\"a\":2}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323568-46sn6OjhgDHVFJLSGDFI","object":"chat.completion.chunk","created":1773323568,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323568-46sn6OjhgDHVFJLSGDFI","object":"chat.completion.chunk","created":1773323568,"model":"google/gemini-2.5-flash","provider":"Google","choices":[],"usage":{"prompt_tokens":57,"completion_tokens":10,"total_tokens":67,"cost":0.0000421,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000421,"upstream_inference_prompt_cost":0.0000171,"upstream_inference_completions_cost":0.000025},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 3.172039875s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1325 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"tool_add_KQuyjhzkSrDLHHP8RcOV","function":{"arguments":"{\"b\":3,\"a\":2}","name":"add"},"type":"function"},{"id":"tool_multiply_bdU7KY7e0zIp9S5WXO8k","function":{"arguments":"{\"b\":3,\"a\":2}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"tool_add_KQuyjhzkSrDLHHP8RcOV","role":"tool"},{"content":"6","tool_call_id":"tool_multiply_bdU7KY7e0zIp9S5WXO8k","role":"tool"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323571-WfkXfBTnlPHhaiUMJm5S","object":"chat.completion.chunk","created":1773323571,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"The sum of","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323571-WfkXfBTnlPHhaiUMJm5S","object":"chat.completion.chunk","created":1773323571,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":" 2 and 3 is 5.\nThe product of 2 and 3 is 6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323571-WfkXfBTnlPHhaiUMJm5S","object":"chat.completion.chunk","created":1773323571,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323571-WfkXfBTnlPHhaiUMJm5S","object":"chat.completion.chunk","created":1773323571,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323571-WfkXfBTnlPHhaiUMJm5S","object":"chat.completion.chunk","created":1773323571,"model":"google/gemini-2.5-flash","provider":"Google","choices":[],"usage":{"prompt_tokens":106,"completion_tokens":25,"total_tokens":131,"cost":0.0000943,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000943,"upstream_inference_prompt_cost":0.0000318,"upstream_inference_completions_cost":0.0000625},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 2.648272667s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple.yaml deleted file mode 100644 index 7c6ee863d35cdd857ce322fbf97c891369f1822f..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 198 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323546-Lz9h2412HbWSXFNgDi4q\",\"object\":\"chat.completion\",\"created\":1773323546,\"model\":\"google/gemini-2.5-flash\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá!\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":9,\"completion_tokens\":2,\"total_tokens\":11,\"cost\":0.0000077,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000077,\"upstream_inference_prompt_cost\":0.0000027,\"upstream_inference_completions_cost\":0.000005},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.217108958s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple_streaming.yaml deleted file mode 100644 index 886e0594d81c4c9988d4b8ec35d83f277c15a00a..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/simple_streaming.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 252 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323549-Z7TPTY3OFTwi3FbsrkD7","object":"chat.completion.chunk","created":1773323549,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"Olá","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323549-Z7TPTY3OFTwi3FbsrkD7","object":"chat.completion.chunk","created":1773323549,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323549-Z7TPTY3OFTwi3FbsrkD7","object":"chat.completion.chunk","created":1773323549,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323549-Z7TPTY3OFTwi3FbsrkD7","object":"chat.completion.chunk","created":1773323549,"model":"google/gemini-2.5-flash","provider":"Google","choices":[],"usage":{"prompt_tokens":9,"completion_tokens":2,"total_tokens":11,"cost":0.0000077,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000077,"upstream_inference_prompt_cost":0.0000027,"upstream_inference_completions_cost":0.000005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 2.50132825s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool.yaml deleted file mode 100644 index ef4b36c825e6e62d64bafbfb9b4c011e1cc400e0..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 490 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323551-Z9fvSRyarJhiEckomsGU\",\"object\":\"chat.completion\",\"created\":1773323551,\"model\":\"google/gemini-2.5-flash\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_weather_FPNgk4I4KZEjUevmNdlw\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence,Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":28,\"completion_tokens\":5,\"total_tokens\":33,\"cost\":0.0000209,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000209,\"upstream_inference_prompt_cost\":0.0000084,\"upstream_inference_completions_cost\":0.0000125},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.649886792s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 749 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_FPNgk4I4KZEjUevmNdlw","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"tool_weather_FPNgk4I4KZEjUevmNdlw","role":"tool"}],"model":"google/gemini-2.5-flash","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323554-NStMJTYcdirUtUc0NcNX\",\"object\":\"chat.completion\",\"created\":1773323554,\"model\":\"google/gemini-2.5-flash\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is 40 degrees Celsius.\\n\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":56,\"completion_tokens\":14,\"total_tokens\":70,\"cost\":0.0000518,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000518,\"upstream_inference_prompt_cost\":0.0000168,\"upstream_inference_completions_cost\":0.000035},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.892622666s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool_streaming.yaml deleted file mode 100644 index a746d18b20d3c17bd29b8f7e428a76f76a9d4b24..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-2.5-flash/tool_streaming.yaml +++ /dev/null @@ -1,81 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 544 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"google/gemini-2.5-flash","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323557-bwTLEOraICpagWL6Uq07","object":"chat.completion.chunk","created":1773323557,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_weather_13exAs9OnUCNuJ59R1nr","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323557-bwTLEOraICpagWL6Uq07","object":"chat.completion.chunk","created":1773323557,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323557-bwTLEOraICpagWL6Uq07","object":"chat.completion.chunk","created":1773323557,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323557-bwTLEOraICpagWL6Uq07","object":"chat.completion.chunk","created":1773323557,"model":"google/gemini-2.5-flash","provider":"Google","choices":[],"usage":{"prompt_tokens":28,"completion_tokens":5,"total_tokens":33,"cost":0.0000209,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000209,"upstream_inference_prompt_cost":0.0000084,"upstream_inference_completions_cost":0.0000125},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 2.693357792s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 803 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_13exAs9OnUCNuJ59R1nr","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"tool_weather_13exAs9OnUCNuJ59R1nr","role":"tool"}],"model":"google/gemini-2.5-flash","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323560-bWQYXK8x3ujdxDOjLrPN","object":"chat.completion.chunk","created":1773323560,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"The weather in Florence,Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323560-bWQYXK8x3ujdxDOjLrPN","object":"chat.completion.chunk","created":1773323560,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":" is 40 C.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323560-bWQYXK8x3ujdxDOjLrPN","object":"chat.completion.chunk","created":1773323560,"model":"google/gemini-2.5-flash","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323560-bWQYXK8x3ujdxDOjLrPN","object":"chat.completion.chunk","created":1773323560,"model":"google/gemini-2.5-flash","provider":"Google","choices":[],"usage":{"prompt_tokens":56,"completion_tokens":12,"total_tokens":68,"cost":0.0000468,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000468,"upstream_inference_prompt_cost":0.0000168,"upstream_inference_completions_cost":0.00003},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 2.10521125s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool.yaml deleted file mode 100644 index dc5bbd55d0b182dd74a4166a84ba30c23ce8b1d0..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 857 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324005-wJjeeAWkEZDz7VOVeFl8\",\"object\":\"chat.completion\",\"created\":1773324005,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Contemplating Operations**\\n\\nI've decided to simultaneously invoke both the addition and multiplication tools. The inputs are clear: 2 and 3. I will make the calls and receive the combined results, as per instructions. It feels like a simple enough task.\\n\\n\\n**Constructing the Calls**\\n\\nI'm now formulating the tool calls. The `add` and `multiply` tools will both receive the same inputs: a = 2, and b = 3. I'm building out the calls as requested, ensuring they are correctly formatted. I will then send these tool calls in the output.\\n\\n\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_add_BBg7ltfK2mevaHnlNtro\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"tool_multiply_7JvrECM0fnB3wiILotc7\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"**Contemplating Operations**\\n\\nI've decided to simultaneously invoke both the addition and multiplication tools. The inputs are clear: 2 and 3. I will make the calls and receive the combined results, as per instructions. It feels like a simple enough task.\\n\\n\\n**Constructing the Calls**\\n\\nI'm now formulating the tool calls. The `add` and `multiply` tools will both receive the same inputs: a = 2, and b = 3. I'm building out the calls as requested, ensuring they are correctly formatted. I will then send these tool calls in the output.\\n\\n\\n\",\"format\":\"google-gemini-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"CiQBjz1rX4IdDk5hysBuPZydzU9+FNiryaovcmLVVkxqUahnO74KfwGPPWtfXwVIw6C/CsPqzV23ebxt1fLEk93J7ZuhI847mu84BDHQFZT5NqzQPTa8WFPbhzwGHsHiMJeRamvNyn6xN6VR94IvNaHs0NnCfg4vz2V4mVb1eNxDh7hKumA3jV0isZ/YgRr4hMrc9vscet8+A6L+vzbtjwilPg8zoXIKawGPPWtfmXfm2UvYgVN2ZSVdPubrbe2YBfVYI6e9aN3dSQ5W4NeV7tYxAAIR6l8KLm8hxICqF6fA66mRxHJBIisoeHqXycOJYlLBm7XEkY/m9oo+EOLjR4AxxfD80KSuSqd6JOvpqChndP7sCpcBAY89a18uzrdg3iTmpCsk/Mhlz/iLPY/6KJoyvsVYQ4gh5EAAuCglfiTgXdVl5CbwqimrvXP1brREeT11AjrTbBSUzzKb7vjx1oY7RvCzFQMw878Yk9SptJGdKmWzq+wHlTZ0D0ycf04e3CeAKno7U27pS5uRP6Z44LJ5fs6kGRDrLC5YH+sNZUgl4G4Qwgk/ZStjda9tXwqAAQGPPWtfFNHbpW51+brZJsLPFpO7ym2it/iq9f96sL5fA8ueJ+euPKqgvGLXPEDHeoFlf+j75lMTmUrbW/FEIGQ44MePKdF3rVP6TZaza1S+C1b7oRaG0aGAdwWEMIF1tLdoAaKdiPoi3y9GOJ140439tVDA1XjzoYfzZTLvrJWRCo4BAY89a1/LnFd4P0V06ucbrurakTj/3tOMtYRVApFhVwZN/kmJcxdhTjojzbFBUb1daWYw3LsJPZWyCVAgAhFfqhU0NvruK+gvkTUA/PCXIbA8tbbV+nNDqI+XLGrczRYlmmAuBFkeFSzeNys5BNnijN1AzLnMIxOY4TcOrmVtioVJbFJSiWkSDzeYjQN0hApSAY89a19QnvCiRryqXsOjH1V5IaINiFfa02fufqFJGjuvTCGbvBlsFB7bT9cABzArI6vXgMFzdb3JzjLL7kznff8BCFCEu3Ine0xijA+pgzXaSA==\",\"format\":\"google-gemini-v1\",\"id\":\"tool_add_BBg7ltfK2mevaHnlNtro\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":61,\"completion_tokens\":180,\"total_tokens\":241,\"cost\":0.002282,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002282,\"upstream_inference_prompt_cost\":0.000122,\"upstream_inference_completions_cost\":0.00216},\"completion_tokens_details\":{\"reasoning_tokens\":162,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 5.441428625s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2486 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"tool_add_BBg7ltfK2mevaHnlNtro","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"tool_multiply_7JvrECM0fnB3wiILotc7","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"CiQBjz1rX4IdDk5hysBuPZydzU9+FNiryaovcmLVVkxqUahnO74KfwGPPWtfXwVIw6C/CsPqzV23ebxt1fLEk93J7ZuhI847mu84BDHQFZT5NqzQPTa8WFPbhzwGHsHiMJeRamvNyn6xN6VR94IvNaHs0NnCfg4vz2V4mVb1eNxDh7hKumA3jV0isZ/YgRr4hMrc9vscet8+A6L+vzbtjwilPg8zoXIKawGPPWtfmXfm2UvYgVN2ZSVdPubrbe2YBfVYI6e9aN3dSQ5W4NeV7tYxAAIR6l8KLm8hxICqF6fA66mRxHJBIisoeHqXycOJYlLBm7XEkY/m9oo+EOLjR4AxxfD80KSuSqd6JOvpqChndP7sCpcBAY89a18uzrdg3iTmpCsk/Mhlz/iLPY/6KJoyvsVYQ4gh5EAAuCglfiTgXdVl5CbwqimrvXP1brREeT11AjrTbBSUzzKb7vjx1oY7RvCzFQMw878Yk9SptJGdKmWzq+wHlTZ0D0ycf04e3CeAKno7U27pS5uRP6Z44LJ5fs6kGRDrLC5YH+sNZUgl4G4Qwgk/ZStjda9tXwqAAQGPPWtfFNHbpW51+brZJsLPFpO7ym2it/iq9f96sL5fA8ueJ+euPKqgvGLXPEDHeoFlf+j75lMTmUrbW/FEIGQ44MePKdF3rVP6TZaza1S+C1b7oRaG0aGAdwWEMIF1tLdoAaKdiPoi3y9GOJ140439tVDA1XjzoYfzZTLvrJWRCo4BAY89a1/LnFd4P0V06ucbrurakTj/3tOMtYRVApFhVwZN/kmJcxdhTjojzbFBUb1daWYw3LsJPZWyCVAgAhFfqhU0NvruK+gvkTUA/PCXIbA8tbbV+nNDqI+XLGrczRYlmmAuBFkeFSzeNys5BNnijN1AzLnMIxOY4TcOrmVtioVJbFJSiWkSDzeYjQN0hApSAY89a19QnvCiRryqXsOjH1V5IaINiFfa02fufqFJGjuvTCGbvBlsFB7bT9cABzArI6vXgMFzdb3JzjLL7kznff8BCFCEu3Ine0xijA+pgzXaSA==","format":"google-gemini-v1","id":"tool_add_BBg7ltfK2mevaHnlNtro","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"tool_add_BBg7ltfK2mevaHnlNtro","role":"tool"},{"content":"6","tool_call_id":"tool_multiply_7JvrECM0fnB3wiILotc7","role":"tool"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324011-3Y83R1WkjwD2fLe7EZKf\",\"object\":\"chat.completion\",\"created\":1773324011,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"The sum of 2 and 3 is 5, and the product of 2 and 3 is 6.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":109,\"completion_tokens\":25,\"total_tokens\":134,\"cost\":0.000518,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000518,\"upstream_inference_prompt_cost\":0.000218,\"upstream_inference_completions_cost\":0.0003},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 4.693649875s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool_streaming.yaml deleted file mode 100644 index d26c88e8815a5bac8d73ee08da3918dcc336aeed..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/multi_tool_streaming.yaml +++ /dev/null @@ -1,93 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 894 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Initiating Operations Concurrently**\n\nI've got the directive to execute both 'add' and 'multiply' operations on the provided numbers, 2 and 3. The system prompt is clear: both must be used. Now I am formulating the concurrent calls to 'add' and 'multiply', as requested.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Initiating Operations Concurrently**\n\nI've got the directive to execute both 'add' and 'multiply' operations on the provided numbers, 2 and 3. The system prompt is clear: both must be used. Now I am formulating the concurrent calls to 'add' and 'multiply', as requested.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Constructing Tool Calls**\n\nI'm solidifying the implementation strategy. My current focus is generating a list containing the `add` and `multiply` function calls, both operating on the inputs 2 and 3, as I previously planned. That list is now ready for execution.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Constructing Tool Calls**\n\nI'm solidifying the implementation strategy. My current focus is generating a list containing the `add` and `multiply` function calls, both operating on the inputs 2 and 3, as I previously planned. That list is now ready for execution.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"CiQBjz1rX8jwTvOiEkSdffMAbbZb3AAf8J6TRL+sv+cWElPrf1UKZwGPPWtfWNRRPkLCDBabDP5oo0WMzTrSFtbdqfv71+er3owJmWicmo4eIEWcKo18eDA4FrV4UvfwEU/bTdRZik97eIfZTzKLFj2pZMnFdF6mr/9R1YQ6QDK01Gab7ojW4nrSn6O+mLkKZAGPPWtfGne8v/7fOrodXKtnOK8O/KmqnZwQMoUNkP/Nxsy7f4vcegXjk421zmJ/9dNiCd2W/9AXGZkgCLYZoZESC9056TnLcfiwRMOH+JxTpOK9pbWcDPx5s8QJkVWUT+2Aq8sKrgEBjz1rX0DeTAqlLohJ1Nh4BFPPhmEtrrLKP39s++nYc+0k2CWDmI8XcvPsfXuIKGQFIG60fUn0CANPDjWtnWOI7CkwAe/iuzO0oul1sr8yebW0ucuN9JtPzhCKFLgCoydZ+YmiEqeA2m/+0UWfX687eNUODu2Zb4snWbZcx+vF0mS2rhzKpSktfgFJtc7z/A+/uPrsSCN8fIx0zH0bJuc2tMU03zr5XsBo5MtrO+AKYgGPPWtfx94NLyXU91eymKkmuKLgGkZ/tBK366wzvwLkopNlbJcoYDXBvZKE9ixmX+jyjP46RzftAmBusOOG8Z4TrGzUXld7fN+eAb5QIEKP7BegRq4KCco9wYqehjEuq+ZwCkIBjz1rX4NMJ6Fb+Vytwp7qSprS8/sBuNyrUT3ryumRgPlYFVhOTo6QEdjavg2ik1QvCHSX+PvIZHBqKoLAJ88znEg=","format":"google-gemini-v1","id":"tool_add_pBo1amaXosQZHph2sTIn","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_add_pBo1amaXosQZHph2sTIn","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"tool_multiply_4OlsV1nHAV6rIa96boyX","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"b\":3,\"a\":2}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773324016-ju6o6zsDAama1Oyl2svH","object":"chat.completion.chunk","created":1773324016,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":57,"completion_tokens":121,"total_tokens":178,"cost":0.001566,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001566,"upstream_inference_prompt_cost":0.000114,"upstream_inference_completions_cost":0.001452},"completion_tokens_details":{"reasoning_tokens":103,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 5.262496708s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2881 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"tool_add_pBo1amaXosQZHph2sTIn","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"tool_multiply_4OlsV1nHAV6rIa96boyX","function":{"arguments":"{\"b\":3,\"a\":2}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"google-gemini-v1","index":0,"text":"**Initiating Operations Concurrently**\n\nI''ve got the directive to execute both ''add'' and ''multiply'' operations on the provided numbers, 2 and 3. The system prompt is clear: both must be used. Now I am formulating the concurrent calls to ''add'' and ''multiply'', as requested.\n\n\n**Constructing Tool Calls**\n\nI''m solidifying the implementation strategy. My current focus is generating a list containing the `add` and `multiply` function calls, both operating on the inputs 2 and 3, as I previously planned. That list is now ready for execution.\n\n\n","type":"reasoning.text"},{"data":"CiQBjz1rX8jwTvOiEkSdffMAbbZb3AAf8J6TRL+sv+cWElPrf1UKZwGPPWtfWNRRPkLCDBabDP5oo0WMzTrSFtbdqfv71+er3owJmWicmo4eIEWcKo18eDA4FrV4UvfwEU/bTdRZik97eIfZTzKLFj2pZMnFdF6mr/9R1YQ6QDK01Gab7ojW4nrSn6O+mLkKZAGPPWtfGne8v/7fOrodXKtnOK8O/KmqnZwQMoUNkP/Nxsy7f4vcegXjk421zmJ/9dNiCd2W/9AXGZkgCLYZoZESC9056TnLcfiwRMOH+JxTpOK9pbWcDPx5s8QJkVWUT+2Aq8sKrgEBjz1rX0DeTAqlLohJ1Nh4BFPPhmEtrrLKP39s++nYc+0k2CWDmI8XcvPsfXuIKGQFIG60fUn0CANPDjWtnWOI7CkwAe/iuzO0oul1sr8yebW0ucuN9JtPzhCKFLgCoydZ+YmiEqeA2m/+0UWfX687eNUODu2Zb4snWbZcx+vF0mS2rhzKpSktfgFJtc7z/A+/uPrsSCN8fIx0zH0bJuc2tMU03zr5XsBo5MtrO+AKYgGPPWtfx94NLyXU91eymKkmuKLgGkZ/tBK366wzvwLkopNlbJcoYDXBvZKE9ixmX+jyjP46RzftAmBusOOG8Z4TrGzUXld7fN+eAb5QIEKP7BegRq4KCco9wYqehjEuq+ZwCkIBjz1rX4NMJ6Fb+Vytwp7qSprS8/sBuNyrUT3ryumRgPlYFVhOTo6QEdjavg2ik1QvCHSX+PvIZHBqKoLAJ88znEg=","format":"google-gemini-v1","id":"tool_add_pBo1amaXosQZHph2sTIn","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"tool_add_pBo1amaXosQZHph2sTIn","role":"tool"},{"content":"6","tool_call_id":"tool_multiply_4OlsV1nHAV6rIa96boyX","role":"tool"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324023-7FoX7Fe6AT4zEtGIZMt7","object":"chat.completion.chunk","created":1773324023,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"The result","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324023-7FoX7Fe6AT4zEtGIZMt7","object":"chat.completion.chunk","created":1773324023,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":" of adding 2 and 3 is 5, and the result of multiplying ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324023-7FoX7Fe6AT4zEtGIZMt7","object":"chat.completion.chunk","created":1773324023,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"2 by 3 is 6.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324023-7FoX7Fe6AT4zEtGIZMt7","object":"chat.completion.chunk","created":1773324023,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773324023-7FoX7Fe6AT4zEtGIZMt7","object":"chat.completion.chunk","created":1773324023,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":106,"completion_tokens":27,"total_tokens":133,"cost":0.000536,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000536,"upstream_inference_prompt_cost":0.000212,"upstream_inference_completions_cost":0.000324},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 4.543200542s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple.yaml deleted file mode 100644 index 8ac2b9f78e5f9f8e13c506e3d1b63a63b5a35070..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 202 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323945-KH4iNGLeuzlTvaLsyi6w\",\"object\":\"chat.completion\",\"created\":1773323945,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"You can say **\\\"Oi\\\"** (informal) or **\\\"Olá\\\"** (slightly more formal, like \\\"Hello\\\").\",\"refusal\":null,\"reasoning\":\"**Investigating Portuguese Greetings**\\n\\nI've homed in on the translation. It looks like \\\"Oi\\\" or \\\"Olá\\\" are the go-to options for \\\"hi\\\" in Portuguese. I'm noting \\\"Oi\\\" seems more casual than \\\"Olá,\\\" which is a key distinction to remember. Now, I'm considering contexts where one might be preferred over the other.\\n\\n\\n**Pinpointing Formalities in Usage**\\n\\nI'm now focusing on the formality aspects. I've noted that while \\\"Oi\\\" is indeed the simplest, providing \\\"Olá\\\" broadens the scope and adds nuance. Considering Brazilian versus European Portuguese, \\\"Oi\\\" is universally understood, and \\\"Olá\\\" is a safe bet in any setting. Time to refine the response to highlight this key distinction.\\n\\n\\n\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"**Investigating Portuguese Greetings**\\n\\nI've homed in on the translation. It looks like \\\"Oi\\\" or \\\"Olá\\\" are the go-to options for \\\"hi\\\" in Portuguese. I'm noting \\\"Oi\\\" seems more casual than \\\"Olá,\\\" which is a key distinction to remember. Now, I'm considering contexts where one might be preferred over the other.\\n\\n\\n**Pinpointing Formalities in Usage**\\n\\nI'm now focusing on the formality aspects. I've noted that while \\\"Oi\\\" is indeed the simplest, providing \\\"Olá\\\" broadens the scope and adds nuance. Considering Brazilian versus European Portuguese, \\\"Oi\\\" is universally understood, and \\\"Olá\\\" is a safe bet in any setting. Time to refine the response to highlight this key distinction.\\n\\n\\n\",\"format\":\"google-gemini-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"CikBjz1rXwsGfPyvpPTAObMA8wPY8uxtdh1qGpqVEC05KQjr6RE0517NrgpfAY89a1/C4BHmlOUe84daSc91J8qgaLcbiV66XMyz9B5X5ZzuSefPJFWink0sAEUhGKPhOd/UFJPd5vJn77FcANSfBJAPbXvQfPt1ur7ds7EKCdw1Uf2dEEYeFmTclhIKVAGPPWtfbVH+bCLa8my52HmrpFDVzvcO7b/PcesVlwo3SBlS7Eli0ZNEm7OND/wqwQhTPb3jSh/R2rtDuwdFVwh5oO0xhhQEFHHWE04G0q6lu7SKNgqKAQGPPWtfataiI310cD2pGmQZCqBsfRUiaaNglWcxoNrB4Y9D4VAEn0ij3q/FqKstF4qhqoBrIifdao3j9uezXb+orq27fi0z1wGg6PdtnOWPffTvSf0P+QgqjuXBct72DfnSigToi1Q3Tkl8f1/jN+yIzxoXG5aYb9tF+hpXpURZ8IPC7wI6ePkhfQqTAQGPPWtfiI8zBsiNninyAu6SpnEYl4ud3WcyIXD4EAMozlPb5L2gcWL4wMt3iydbR61Na07ptsL6ZhMAA2Epq96Nl/UURN+1TJQwJdjlXjKwYVTUnTuLwYABmkGLqBYU7KRgQ/1I/29y0X8A2siLzuQgLENUJ/dyrP45OFR3BKq1uqJ7K5pHtzx6z1RZtk7jy0QUbQr8AQGPPWtfloLRZXdGzWKCLT9hSa6ExEAr8HQo0Kv1wIYVA8D90I0BsHNBx1lj+a5IaU7YzzIxtAzRXE+JOwWvc+DRwBmHv/bauCVFlCaOuJp19a+KbfDijnGk2LXQF9WdnoskIXJA9b4EkW3TjloWpnD3rOC4mpDaWkKeux1rCZRy8Tgf2mW0sBaLBMklT/ND7M5VtrS8Smwkdk6RnW8NEBnbpBFuXNvjJyRb4UXgMegCXr10Hsd7ybib5oUniqRYRDTIetEHoEmkaRASouiq7zNUhtCrE+6jp3mInFEVVgpaeag1f2wWznjepOP49T70qNLFFdYDbTJIUmah/ArqAQGPPWtfM7rLtwJchAXUP/pquoVVVFxSRVXFAI/TYqHToe6D3seuE4r+4Uxxqj8Lor9ywF+mMmr4OnOHvWsJHgqBBdYOy9lHs+wMz/aWWoj1SUqbVAF0Bev4HkJRl8kDIVgfybmeFMb62puDxI1XIZCMgNYjgsVsvK/Srhg2rYvT8+eC6M8wCglEhga9KKgC5MvlHbwlLmccLSw78z0LIClZ87tsHGMLoLHt1QwHz92f0jj44evxCPyJaXhmQjQfKLiXhGkodiYAgLOvbM1NEqCnCJ0SPnJshzM++2VivCM/MA4MBn3ncHbyrgqeAgGPPWtfJbGNaMohwobhRZaiP9s7/0cPvfbwEr+uc8cdcsqigM8NLh7E1svZmXYmoJ97+TPjamGc+guxjbKJ5gs5IwG/nfCaP2j1CtXEnNY1MErs6FByHZypuLrSoLsldBSHOM6jYD+g2FJcsAvh9qBvfQpN3KVWOGh3oKCfITK4HsjVvpo1+CNJnsG0eLS38NsZqNr++RPCqkYvDGNrTjZpkj+5aK8+tRbvlUGet3z+2Fjq3p2EbrGTNltfJwQv72+LxJGlEkY4XbYQ1bpCrfTxpTokeAPfn4h5Gjp9WOyZFCeHaMWrzkCOGnVszILUWAmjnckNouleUKXVuDeQHEHdQKuFKaSQIwxLBGozhEbhhNGcgsN8HdTCGttsAaoKLAGPPWtfSyuI+pFjWeM4AomPtbYxXeuhNy3rReUxjnCWHfTqQjFeKqiduFa+\",\"format\":\"google-gemini-v1\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":9,\"completion_tokens\":293,\"total_tokens\":302,\"cost\":0.003534,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.003534,\"upstream_inference_prompt_cost\":0.000018,\"upstream_inference_completions_cost\":0.003516},\"completion_tokens_details\":{\"reasoning_tokens\":266,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 5.605099625s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple_streaming.yaml deleted file mode 100644 index 1e8d6830449b38a584b5929509d76d7d74acf35c..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/simple_streaming.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 256 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Discovering Greetings in Portuguese**\n\nI've homed in on the core of the user's request: translating \"hi\" to Portuguese. So far, the process is straightforward; I've parsed the prompt, confirming that the user is seeking a Portuguese greeting. Now I'm meticulously generating a list of possible translations. *Oi* is definitely the most prevalent, and the informal tone is noted. What else is there?\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Discovering Greetings in Portuguese**\n\nI've homed in on the core of the user's request: translating \"hi\" to Portuguese. So far, the process is straightforward; I've parsed the prompt, confirming that the user is seeking a Portuguese greeting. Now I'm meticulously generating a list of possible translations. *Oi* is definitely the most prevalent, and the informal tone is noted. What else is there?\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Considering Cultural Context in Translations**\n\nI'm now integrating the cultural dimensions of the prompt. I've mapped the primary translations (*Oi* and *Olá*), and the next step is layering in considerations of formality and regional variances. I'm focusing on providing context; for instance, is there an advantage to using one greeting over another in a specific circumstance? The goal is to convey not just the words, but the nuances of how they're used.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Considering Cultural Context in Translations**\n\nI'm now integrating the cultural dimensions of the prompt. I've mapped the primary translations (*Oi* and *Olá*), and the next step is layering in considerations of formality and regional variances. I'm focusing on providing context; for instance, is there an advantage to using one greeting over another in a specific circumstance? The goal is to convey not just the words, but the nuances of how they're used.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"You can say **\"Oi\"** (informal) or **\"Olá\"** (slightly more formal, but suitable for almost any situation).","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"CikBjz1rXzWbLe+Kp5V9HEz6zONyB+8lsCyQ3JFwB6LAFferupDkixSwZwpfAY89a18NaFyuCwQI5J1JbcCbdb1mCIKlD6SqZ80wKXXlkPO5v2Ri3T9EuhV4sXjEm2wU4yrwfl+8m2yXhX8QGmzR8h5ehp20DDGaAaAFkjJqDKJnufm4HXIYh1tE2kEKZgGPPWtfL/OUBSAweEOtJ1/PhwyHBnQUfjQH2/95OnoEAysBf+rgP52A10qbu1H0zvqzrS51YhVcHsNNVBJYZPvpbUWRKd8P+fUCfmMe9u/fCU5SCegCyLciL5cf8S079KtRBFhPgAqPAQGPPWtfvQFTkd1Zgi7cBYRJV68hE5AjtVRjBDLlc2rpJuKAzFoItsvQXDArzFJUfyq36wKv1J9o/ks4c4SNCZfmKTvu9hgYwZzeMXyXDKRVPY8ViGt0X0x74ADzf8qtntNYmhDhsn7AeyIUjMGBmaTDjwtxnVemEHxNtT4GCipJkkguD1sdVUpDexdhepqdCqEBAY89a19zuQ/BstuVpfucymYiYCwnvApm6YLEL3al/5vEkWrB/aFoqyDJi2EHWrBNZWWUPOlFA0mDrcDBW/vLueHEHO52U8bHWEGFV3Kna7yTalRX9Gy55D37fQrBDDzAFH7IATFAGFliXTLYcQGJbUaAUDO/Jtlo7Mgv9rFBo8+Qjs++h/4Ch7ytbjMSiB7Q/Vbr/0THl6z2QDwgA+GfeZsK0QEBjz1rX+yjloPA3E0pMfhcAqHG0mfI4y/O97ojOxbHLTrwz8cqpDe2uZ/+DPO5g5j1kozCtW2ZjnBiCcRmDNlsKfTKVI3EqRZHAGiAZCmZTlXnvCbdvIqYr45NuOTaGAtKJqbBnRgn697aqxV/VCGG7i8H0ph/eo0McK33TvhP9o/hg5QyeF6rzAIsPRXUknZHnoVAIQiYSLxCCX5tC8eL+Hz/rkF+pTbWt7JFAdyy/ok0JGgkYaTrUNaq7Ao6oVqcQN8tCey9R8ZyD2M0AUxrxwrcAQGPPWtf4ytHwYc+Je/mFwufvZ0I8qATM6FVGljWXqHA0tpJ/N1bx6DFeQLPAz8nOJPq1p6CZ/jBYRvZKGV/fqjs5NgRMTM+7ASCE61pQvpan+ZER9qa43Fv1LlORbzIUgg41BwzrP5KHyriLgdPfXKHV5f/zdLzfMmFDB7kwrvz5KtjJ5E5KaleDSY88x8xohyQyBeNb6c1AanPkTUR24EVGBFI6I4YS0gM9vRMAJvQidVM4JBEWx0k7uJ+L2ogzKmwz09tiraxDrfWwZi66da+MQ9p1jNsONUw5xMK7gEBjz1rXwph1CkfzOaBpycndaf+OXytzrGNftmYHe/MzLR6t2tnyJMalOF+AtNiG0hRG4Gy5IDWFNFC4KeTO+4bS4lreyLt5aebmO9dbMIpn3BNq62A+FgrL2by+GrMKmOActCg2ONwxseBJE5HsCPVejqCvbvEY/A+/3aImDp3Vi5QL0k2/JUoyFfsiidPVoM8dT9IfBXe5XilHQZQKG4AnvKvCQJvxhOmDV5WtHnQy0olUGQdZZVn8Da6JW+AvDY2tQfL6caPMMutp7l2cPjA/3kbATeLmUNsUQ8vW3ZH+gr8cw2nmRlzpmSZvXJmCmkBjz1rX1zS5oLLYHpfWJkmoPGQoTfKxoET2z3U9Aee3AmzPddYfU0iAOo1F3gvOSR0ztl4ph/ZbbSPLmGWHLsksjA72g4fFBk/6zsVP69SWbZKfqL3GdpYl4S+Ju1QVHUMp+95zCgTXCI=","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323953-YCRLdmUuB5yGRxQwfY8l","object":"chat.completion.chunk","created":1773323953,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":9,"completion_tokens":314,"total_tokens":323,"cost":0.003786,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.003786,"upstream_inference_prompt_cost":0.000018,"upstream_inference_completions_cost":0.003768},"completion_tokens_details":{"reasoning_tokens":284,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 6.089984333s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool.yaml deleted file mode 100644 index 02fe2bec3a498bc251d4e363196fb9e1d58e965b..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 494 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323962-Rw07UNMeWA60q0rNXDzM\",\"object\":\"chat.completion\",\"created\":1773323962,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Gathering Weather Data**\\n\\nI'm zeroing in on the best approach. My strategy is to employ the `weather` function to get the required weather details. Right now, I'm focused on extracting the location from the user's initial request. I'll need to feed the function \\\"Florence, Italy\\\" as the location.\\n\\n\\n**Defining The Function Call**\\n\\nI'm solidifying the implementation strategy. I plan to call the `weather` function now that I have the location. The next step will be formatting the function call with \\\"Florence, Italy\\\" properly input as the location.\\n\\n\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_weather_LHAdTONWsMosyZwDGBmQ\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence,Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"**Gathering Weather Data**\\n\\nI'm zeroing in on the best approach. My strategy is to employ the `weather` function to get the required weather details. Right now, I'm focused on extracting the location from the user's initial request. I'll need to feed the function \\\"Florence, Italy\\\" as the location.\\n\\n\\n**Defining The Function Call**\\n\\nI'm solidifying the implementation strategy. I plan to call the `weather` function now that I have the location. The next step will be formatting the function call with \\\"Florence, Italy\\\" properly input as the location.\\n\\n\\n\",\"format\":\"google-gemini-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"ClkBjz1rXxzgSFPYazsgAbVkNsxRfxt6rILuGXWuM905srXA5IqQHKYshHvdIQ4clY1SQSX9x7Zfqi+EIopTLVedHvJm/vuMzH8rJ6IK5lsgV7CYi3/hLyME5gprAY89a190CczLBN2BdlP2DpRaail2ts4NRlnoh9Ea/uT1Zx3OjkGaX1KmKQXdmyAyx0JPv8vAm6mBG7LT8kdBCCH5og9/wUmucf1YkhGH0LnK+BfmeyAkTQlinpMq9FS4wbl+Um3USz7DUX0KswEBjz1rX/VQvRaXzGVlq9MkoDfX5Zbjw23OcCOrKQDhFQhq9tT/0c7IEPHs2wsjVLrWnYdltTSfvX0z9ML0miKyTqQSLBdPh2WKWWmpdY/vdQ12rkAglUeIvTdINZKkY4mdoMKzDgvIFc2mdEUN7qfnYu/DBeLXr+FM0jjfOvDaVQjf6zfgUX6HS6u/d42j0XkLePkt56coejNz+8vfzW4UikY/FL9/i5HDSaN/aCAUnMHuPgpEAY89a18zrha3ifUOUwGIrCWFiaLNLRckJfRfAD6zeqthAAhv1p2oBCVbRtiSplusfcfZDq25CZ8pPGfp8hHv1JZ1Zh8=\",\"format\":\"google-gemini-v1\",\"id\":\"tool_weather_LHAdTONWsMosyZwDGBmQ\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":28,\"completion_tokens\":82,\"total_tokens\":110,\"cost\":0.00104,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00104,\"upstream_inference_prompt_cost\":0.000056,\"upstream_inference_completions_cost\":0.000984},\"completion_tokens_details\":{\"reasoning_tokens\":73,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 6.332650917s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1499 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_LHAdTONWsMosyZwDGBmQ","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"ClkBjz1rXxzgSFPYazsgAbVkNsxRfxt6rILuGXWuM905srXA5IqQHKYshHvdIQ4clY1SQSX9x7Zfqi+EIopTLVedHvJm/vuMzH8rJ6IK5lsgV7CYi3/hLyME5gprAY89a190CczLBN2BdlP2DpRaail2ts4NRlnoh9Ea/uT1Zx3OjkGaX1KmKQXdmyAyx0JPv8vAm6mBG7LT8kdBCCH5og9/wUmucf1YkhGH0LnK+BfmeyAkTQlinpMq9FS4wbl+Um3USz7DUX0KswEBjz1rX/VQvRaXzGVlq9MkoDfX5Zbjw23OcCOrKQDhFQhq9tT/0c7IEPHs2wsjVLrWnYdltTSfvX0z9ML0miKyTqQSLBdPh2WKWWmpdY/vdQ12rkAglUeIvTdINZKkY4mdoMKzDgvIFc2mdEUN7qfnYu/DBeLXr+FM0jjfOvDaVQjf6zfgUX6HS6u/d42j0XkLePkt56coejNz+8vfzW4UikY/FL9/i5HDSaN/aCAUnMHuPgpEAY89a18zrha3ifUOUwGIrCWFiaLNLRckJfRfAD6zeqthAAhv1p2oBCVbRtiSplusfcfZDq25CZ8pPGfp8hHv1JZ1Zh8=","format":"google-gemini-v1","id":"tool_weather_LHAdTONWsMosyZwDGBmQ","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"tool_weather_LHAdTONWsMosyZwDGBmQ","role":"tool"}],"model":"google/gemini-3-pro-preview","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323968-FAAVX4K7Zias1hgmd27W\",\"object\":\"chat.completion\",\"created\":1773323968,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is currently 40°C.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":52,\"completion_tokens\":14,\"total_tokens\":66,\"cost\":0.000272,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000272,\"upstream_inference_prompt_cost\":0.000104,\"upstream_inference_completions_cost\":0.000168},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 4.414599542s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool_streaming.yaml deleted file mode 100644 index c361dd0fe2345785a29b03808af6af2b28ba71c2..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gemini-3-pro-preview/tool_streaming.yaml +++ /dev/null @@ -1,85 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 548 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"google/gemini-3-pro-preview","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323973-ijsbVGP7klYwXuHnZ7oB","object":"chat.completion.chunk","created":1773323973,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Analyzing the Request**\n\nI've homed in on the user's need: weather data for Florence, Italy. My primary action now is identifying a suitable function, which, based on its name, is `weather`. A key parameter, `location`, is also clear. I plan to use the `weather` function with \"Florence, Italy\" as the location.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Analyzing the Request**\n\nI've homed in on the user's need: weather data for Florence, Italy. My primary action now is identifying a suitable function, which, based on its name, is `weather`. A key parameter, `location`, is also clear. I plan to use the `weather` function with \"Florence, Italy\" as the location.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323973-ijsbVGP7klYwXuHnZ7oB","object":"chat.completion.chunk","created":1773323973,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"CiQBjz1rXy/d6pcsxX2eeGAFJcWLwFKD8Fq7tzM4znpEy3uK6hkKcAGPPWtfdI2OUC5gBrFwuxgrbLbk84CqxKEqAPN0KZYOWFW3qoz1mSztFR+VVmJ4sdMXeAd0F5mAxvMcYzOGdgfmxAnygICxzhVEhnMiG2s+kCdESJ9gfqxZsDvVMS+HZq8hpfrjvwd7c/AYVxjdOYUKggEBjz1rXzlW5UTYY0QFoD2RsMgcdZ6TA3RCMoaED8q41ltANatdDbKN5OFS82APPTPbqvLl/3HrMh5zqIkZWzhLbDrR+jDznhGoWxgoobAk2HRV6cHyi35TMSvIziLWiGq2u9Etp1Uai2IVTDCmjiEsugdu156W4MXitiaGzPr8EhMpCooBAY89a1/mr6bY7W14FUhSese7Cw9/SlEuV2fcfx4xdINH6j7eP0PVqD295H01svPNvrIiFNY9/VA4/wR7StYvBt0GtTk3a7ScA+ZPydvE5E5QM0aUGvX6NGkAka1T55vwWFbnZKwy/vvxq9kZVUsWkIfvThQS1XIlZ5g9g/fOrQbo/Q0lqhka2MCc","format":"google-gemini-v1","id":"tool_weather_UjtAnUhPX2w8d0BXNCVK","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323973-ijsbVGP7klYwXuHnZ7oB","object":"chat.completion.chunk","created":1773323973,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_weather_UjtAnUhPX2w8d0BXNCVK","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323973-ijsbVGP7klYwXuHnZ7oB","object":"chat.completion.chunk","created":1773323973,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323973-ijsbVGP7klYwXuHnZ7oB","object":"chat.completion.chunk","created":1773323973,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323973-ijsbVGP7klYwXuHnZ7oB","object":"chat.completion.chunk","created":1773323973,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":28,"completion_tokens":73,"total_tokens":101,"cost":0.000932,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000932,"upstream_inference_prompt_cost":0.000056,"upstream_inference_completions_cost":0.000876},"completion_tokens_details":{"reasoning_tokens":64,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 10.279697125s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1915 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_UjtAnUhPX2w8d0BXNCVK","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"google-gemini-v1","index":0,"text":"**Analyzing the Request**\n\nI''ve homed in on the user''s need: weather data for Florence, Italy. My primary action now is identifying a suitable function, which, based on its name, is `weather`. A key parameter, `location`, is also clear. I plan to use the `weather` function with \"Florence, Italy\" as the location.\n\n\n","type":"reasoning.text"},{"data":"CiQBjz1rXy/d6pcsxX2eeGAFJcWLwFKD8Fq7tzM4znpEy3uK6hkKcAGPPWtfdI2OUC5gBrFwuxgrbLbk84CqxKEqAPN0KZYOWFW3qoz1mSztFR+VVmJ4sdMXeAd0F5mAxvMcYzOGdgfmxAnygICxzhVEhnMiG2s+kCdESJ9gfqxZsDvVMS+HZq8hpfrjvwd7c/AYVxjdOYUKggEBjz1rXzlW5UTYY0QFoD2RsMgcdZ6TA3RCMoaED8q41ltANatdDbKN5OFS82APPTPbqvLl/3HrMh5zqIkZWzhLbDrR+jDznhGoWxgoobAk2HRV6cHyi35TMSvIziLWiGq2u9Etp1Uai2IVTDCmjiEsugdu156W4MXitiaGzPr8EhMpCooBAY89a1/mr6bY7W14FUhSese7Cw9/SlEuV2fcfx4xdINH6j7eP0PVqD295H01svPNvrIiFNY9/VA4/wR7StYvBt0GtTk3a7ScA+ZPydvE5E5QM0aUGvX6NGkAka1T55vwWFbnZKwy/vvxq9kZVUsWkIfvThQS1XIlZ5g9g/fOrQbo/Q0lqhka2MCc","format":"google-gemini-v1","id":"tool_weather_UjtAnUhPX2w8d0BXNCVK","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"tool_weather_UjtAnUhPX2w8d0BXNCVK","role":"tool"}],"model":"google/gemini-3-pro-preview","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323994-kEA21hVoQ2WnDw9kiW6h","object":"chat.completion.chunk","created":1773323994,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"The weather in Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323994-kEA21hVoQ2WnDw9kiW6h","object":"chat.completion.chunk","created":1773323994,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":", Italy is currently 40°C.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323994-kEA21hVoQ2WnDw9kiW6h","object":"chat.completion.chunk","created":1773323994,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773323994-kEA21hVoQ2WnDw9kiW6h","object":"chat.completion.chunk","created":1773323994,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":54,"completion_tokens":14,"total_tokens":68,"cost":0.000276,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000276,"upstream_inference_prompt_cost":0.000108,"upstream_inference_completions_cost":0.000168},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 10.188124458s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/gemini/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9c6e7a808ec25ec3203e6679988a7f4d94fd1ee1 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/gemini/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 866 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945403-sdpFM7Ibw0ydMbFfbFhk\",\"object\":\"chat.completion\",\"created\":1773945403,\"model\":\"google/gemini-3.1-flash-lite-preview-20260303\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_add_67Z4MFOopECpNHW6qvVN\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"tool_multiply_ODGB2Wg7IAvQ59EC0lXF\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.encrypted\",\"data\":\"AY89a19euJGckSKHF210qgCYi0Cogu3ONrdlkrEwpq++DXoXjQNMP5N52UMy4CKjXRE=\",\"format\":\"google-gemini-v1\",\"id\":\"tool_add_67Z4MFOopECpNHW6qvVN\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":87,\"completion_tokens\":32,\"total_tokens\":119,\"cost\":0.00006975,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00006975,\"upstream_inference_prompt_cost\":0.00002175,\"upstream_inference_completions_cost\":0.000048},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.110945792s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1507 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"tool_add_67Z4MFOopECpNHW6qvVN","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"tool_multiply_ODGB2Wg7IAvQ59EC0lXF","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"AY89a19euJGckSKHF210qgCYi0Cogu3ONrdlkrEwpq++DXoXjQNMP5N52UMy4CKjXRE=","format":"google-gemini-v1","id":"tool_add_67Z4MFOopECpNHW6qvVN","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"tool_add_67Z4MFOopECpNHW6qvVN","role":"tool"},{"content":"6","tool_call_id":"tool_multiply_ODGB2Wg7IAvQ59EC0lXF","role":"tool"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945406-hlTqhqmy3oevZu6kSqJM\",\"object\":\"chat.completion\",\"created\":1773945406,\"model\":\"google/gemini-3.1-flash-lite-preview-20260303\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"The sum of 2 and 3 is 5, and the product of 2 and 3 is 6.\",\"refusal\":null,\"reasoning\":null,\"reasoning_details\":[{\"type\":\"reasoning.encrypted\",\"data\":\"AY89a18UGmTcyJ8nYzEK+7YFBG7gkHttSMEFVtoN+qdCBx5uCVaHs0xHLqqpi7pJn/Q=\",\"format\":\"google-gemini-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":154,\"completion_tokens\":25,\"total_tokens\":179,\"cost\":0.000076,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000076,\"upstream_inference_prompt_cost\":0.0000385,\"upstream_inference_completions_cost\":0.0000375},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.028248792s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ccc94db828112d602b03ce5cd71777e399b4fe80 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/gemini/multi_tool_streaming.yaml @@ -0,0 +1,121 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 903 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"AY89a1+4ldhGjiNn8S1VuGpFQrS57EYj823FwVVWyxvAG0cE5Qi8Mh3qDl5zaYStVes=","format":"google-gemini-v1","id":"tool_add_sYdHLQ7pM4TsXu9boNT5","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_add_sYdHLQ7pM4TsXu9boNT5","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"b\":3,\"a\":2}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"tool_multiply_M7nCvf8jvQADIkrw5YKS","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} + + data: {"id":"gen-1773945409-GKBLGdVdfDpywrF53THX","object":"chat.completion.chunk","created":1773945409,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"STOP"}],"usage":{"prompt_tokens":83,"completion_tokens":32,"total_tokens":115,"cost":0.00006875,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00006875,"upstream_inference_prompt_cost":0.00002075,"upstream_inference_completions_cost":0.000048},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 3.101256s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1544 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"tool_add_sYdHLQ7pM4TsXu9boNT5","function":{"arguments":"{\"b\":3,\"a\":2}","name":"add"},"type":"function"},{"id":"tool_multiply_M7nCvf8jvQADIkrw5YKS","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"AY89a1+4ldhGjiNn8S1VuGpFQrS57EYj823FwVVWyxvAG0cE5Qi8Mh3qDl5zaYStVes=","format":"google-gemini-v1","id":"tool_add_sYdHLQ7pM4TsXu9boNT5","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"tool_add_sYdHLQ7pM4TsXu9boNT5","role":"tool"},{"content":"6","tool_call_id":"tool_multiply_M7nCvf8jvQADIkrw5YKS","role":"tool"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"The sum","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":" of 2 and ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"3 is 5, and the product of 2 and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":" 3 is 6.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"AY89a18Arm6uvbtwsskpVED8BnueFZjjOLD5zxfz/ALu6B8EI7sgVUR6svb/kSSFRmM=","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"STOP"}]} + + data: {"id":"gen-1773945413-SErDL8acdBEMsr0VlQOj","object":"chat.completion.chunk","created":1773945413,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}],"usage":{"prompt_tokens":150,"completion_tokens":25,"total_tokens":175,"cost":0.000075,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000075,"upstream_inference_prompt_cost":0.0000375,"upstream_inference_completions_cost":0.0000375},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 3.220695416s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini/simple.yaml b/providertests/testdata/TestOpenRouterCommon/gemini/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6688a02edd323f985d91dc67112de65db59d6c20 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/gemini/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 211 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945384-xZPhbwajwzm3GL9jqUHp\",\"object\":\"chat.completion\",\"created\":1773945384,\"model\":\"google/gemini-3.1-flash-lite-preview-20260303\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá!\",\"refusal\":null,\"reasoning\":null,\"reasoning_details\":[{\"type\":\"reasoning.encrypted\",\"data\":\"AY89a1/3xY1TdwDH5U/lq5Eban8Wxxd1lYhLpbwogJiu9r0BguV+vY5JOgnVjONbeJE=\",\"format\":\"google-gemini-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":9,\"completion_tokens\":2,\"total_tokens\":11,\"cost\":0.00000525,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00000525,\"upstream_inference_prompt_cost\":0.00000225,\"upstream_inference_completions_cost\":0.000003},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.984944208s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0194693c382e665aa26b2d411ea378f1cdae2ece --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/gemini/simple_streaming.yaml @@ -0,0 +1,46 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 265 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945388-ScQOcjqnnQqDR2tkBCM6","object":"chat.completion.chunk","created":1773945388,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google AI Studio","choices":[{"index":0,"delta":{"content":"Olá!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945388-ScQOcjqnnQqDR2tkBCM6","object":"chat.completion.chunk","created":1773945388,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google AI Studio","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"EjQKMgG+Pvb72piB9g0HqzVyYjGL9Be9fvg3tyhef4/NDaxTjBDkMJi5K7zGEDVk+5oNajHu","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945388-ScQOcjqnnQqDR2tkBCM6","object":"chat.completion.chunk","created":1773945388,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google AI Studio","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"STOP"}]} + + data: {"id":"gen-1773945388-ScQOcjqnnQqDR2tkBCM6","object":"chat.completion.chunk","created":1773945388,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google AI Studio","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}],"usage":{"prompt_tokens":11,"completion_tokens":2,"total_tokens":13,"cost":0.00000575,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00000575,"upstream_inference_prompt_cost":0.00000275,"upstream_inference_completions_cost":0.000003},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.240184834s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini/tool.yaml b/providertests/testdata/TestOpenRouterCommon/gemini/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f1f6915ffe081da8dc4b031f3c5117e213b60f6d --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/gemini/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 503 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945390-pdnIFKfKJyD9oVzWL9Dr\",\"object\":\"chat.completion\",\"created\":1773945390,\"model\":\"google/gemini-3.1-flash-lite-preview-20260303\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_weather_aaDFcPO0qsPIvlIQKSFc\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.encrypted\",\"data\":\"AY89a19LCy6WJJsnCldFSEDCKuOZfohIqqdmMNnccTB8AkfBDwEgvVMlFkc1dI+gcwc=\",\"format\":\"google-gemini-v1\",\"id\":\"tool_weather_aaDFcPO0qsPIvlIQKSFc\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":39,\"completion_tokens\":16,\"total_tokens\":55,\"cost\":0.00003375,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00003375,\"upstream_inference_prompt_cost\":0.00000975,\"upstream_inference_completions_cost\":0.000024},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.10832375s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 973 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_aaDFcPO0qsPIvlIQKSFc","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"AY89a19LCy6WJJsnCldFSEDCKuOZfohIqqdmMNnccTB8AkfBDwEgvVMlFkc1dI+gcwc=","format":"google-gemini-v1","id":"tool_weather_aaDFcPO0qsPIvlIQKSFc","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"tool_weather_aaDFcPO0qsPIvlIQKSFc","role":"tool"}],"model":"google/gemini-3.1-flash-lite-preview","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945393-8ddmcZp5L5LzqkHANLRo\",\"object\":\"chat.completion\",\"created\":1773945393,\"model\":\"google/gemini-3.1-flash-lite-preview-20260303\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in Florence, Italy, is around 40°C.\",\"refusal\":null,\"reasoning\":null,\"reasoning_details\":[{\"type\":\"reasoning.encrypted\",\"data\":\"AY89a1/ZVNqyUobkDK7efg2HaVbYd8w3q44BTWNmfAc08dK+yGFMHu2LZzjed8s0HcE=\",\"format\":\"google-gemini-v1\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":71,\"completion_tokens\":16,\"total_tokens\":87,\"cost\":0.00004175,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00004175,\"upstream_inference_prompt_cost\":0.00001775,\"upstream_inference_completions_cost\":0.000024},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.11676975s diff --git a/providertests/testdata/TestOpenRouterCommon/gemini/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gemini/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..de6b47dd000309bf981edf9df46f269c7e7fb1e5 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/gemini/tool_streaming.yaml @@ -0,0 +1,113 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 557 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"google/gemini-3.1-flash-lite-preview","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945397-vXwGi8oe2Pu1tPhWFBqG","object":"chat.completion.chunk","created":1773945397,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"AY89a195Y0+HaAqhhzh7Ftn/kaQm1mbI2DIUJEF/ivbMf4Ez5+eK1DaB2LIT89cnq2Q=","format":"google-gemini-v1","id":"tool_weather_JseIOiirEv9DOluhcBh6","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945397-vXwGi8oe2Pu1tPhWFBqG","object":"chat.completion.chunk","created":1773945397,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_weather_JseIOiirEv9DOluhcBh6","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945397-vXwGi8oe2Pu1tPhWFBqG","object":"chat.completion.chunk","created":1773945397,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945397-vXwGi8oe2Pu1tPhWFBqG","object":"chat.completion.chunk","created":1773945397,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} + + data: {"id":"gen-1773945397-vXwGi8oe2Pu1tPhWFBqG","object":"chat.completion.chunk","created":1773945397,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"STOP"}],"usage":{"prompt_tokens":39,"completion_tokens":16,"total_tokens":55,"cost":0.00003375,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00003375,"upstream_inference_prompt_cost":0.00000975,"upstream_inference_completions_cost":0.000024},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 2.843115417s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1027 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_JseIOiirEv9DOluhcBh6","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"AY89a195Y0+HaAqhhzh7Ftn/kaQm1mbI2DIUJEF/ivbMf4Ez5+eK1DaB2LIT89cnq2Q=","format":"google-gemini-v1","id":"tool_weather_JseIOiirEv9DOluhcBh6","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"tool_weather_JseIOiirEv9DOluhcBh6","role":"tool"}],"model":"google/gemini-3.1-flash-lite-preview","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945399-8bWyDDLWhPyFSaQlOcd9","object":"chat.completion.chunk","created":1773945399,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"The weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945399-8bWyDDLWhPyFSaQlOcd9","object":"chat.completion.chunk","created":1773945399,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":" in Florence, Italy,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945399-8bWyDDLWhPyFSaQlOcd9","object":"chat.completion.chunk","created":1773945399,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":" is currently 40°C.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945399-8bWyDDLWhPyFSaQlOcd9","object":"chat.completion.chunk","created":1773945399,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"AY89a1+Ka9JkxfFogywc5shcRjkm5KIsFHylQ4DTSKSfz0vlhpZvMbmuDXajnxlKJLI=","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945399-8bWyDDLWhPyFSaQlOcd9","object":"chat.completion.chunk","created":1773945399,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"STOP"}]} + + data: {"id":"gen-1773945399-8bWyDDLWhPyFSaQlOcd9","object":"chat.completion.chunk","created":1773945399,"model":"google/gemini-3.1-flash-lite-preview-20260303","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}],"usage":{"prompt_tokens":73,"completion_tokens":15,"total_tokens":88,"cost":0.00004075,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00004075,"upstream_inference_prompt_cost":0.00001825,"upstream_inference_completions_cost":0.0000225},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 3.191008375s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool.yaml deleted file mode 100644 index 6630b5be791ace0008fa12407237261d6de03aff..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 842 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"z-ai/glm-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324050-bCRL875FlM7GNKziqHnP\",\"object\":\"chat.completion\",\"created\":1773324050,\"model\":\"z-ai/glm-4.5\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll add and multiply the numbers 2 and 3 for you.\\n\",\"refusal\":null,\"reasoning\":\"\\nThe user wants me to both add and multiply the numbers 2 and 3. I have access to both the \\\"add\\\" and \\\"multiply\\\" functions, so I can call both of them with the parameters a=2 and b=3.\\n\\nLet me make both function calls:\\n1. add(2, 3)\\n2. multiply(2, 3)\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_58a4fee3fd9c40d0896a1bfb\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_3e6b9f76a2f74ed6baa5f12e\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"\\nThe user wants me to both add and multiply the numbers 2 and 3. I have access to both the \\\"add\\\" and \\\"multiply\\\" functions, so I can call both of them with the parameters a=2 and b=3.\\n\\nLet me make both function calls:\\n1. add(2, 3)\\n2. multiply(2, 3)\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":284,\"completion_tokens\":136,\"total_tokens\":420,\"cost\":0.00044853,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":43,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00044853,\"upstream_inference_prompt_cost\":0.00014933,\"upstream_inference_completions_cost\":0.0002992},\"completion_tokens_details\":{\"reasoning_tokens\":76,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 3.177698625s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1675 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"call_58a4fee3fd9c40d0896a1bfb","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_3e6b9f76a2f74ed6baa5f12e","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"\nThe user wants me to both add and multiply the numbers 2 and 3. I have access to both the \"add\" and \"multiply\" functions, so I can call both of them with the parameters a=2 and b=3.\n\nLet me make both function calls:\n1. add(2, 3)\n2. multiply(2, 3)","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_58a4fee3fd9c40d0896a1bfb","role":"tool"},{"content":"6","tool_call_id":"call_3e6b9f76a2f74ed6baa5f12e","role":"tool"}],"model":"z-ai/glm-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324055-s02kvCiNioyJGsJcrceq\",\"object\":\"chat.completion\",\"created\":1773324055,\"model\":\"z-ai/glm-4.5\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The results are:\\n- Adding 2 and 3: 5\\n- Multiplying 2 and 3: 6\",\"refusal\":null,\"reasoning\":\"\\nThe function calls have returned the results:\\n- Adding 2 and 3 gives 5\\n- Multiplying 2 and 3 gives 6\\n\\nI should present both results clearly to the user.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"\\nThe function calls have returned the results:\\n- Adding 2 and 3 gives 5\\n- Multiplying 2 and 3 gives 6\\n\\nI should present both results clearly to the user.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":433,\"completion_tokens\":72,\"total_tokens\":505,\"cost\":0.00021289,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":419,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00021289,\"upstream_inference_prompt_cost\":0.00005449,\"upstream_inference_completions_cost\":0.0001584},\"completion_tokens_details\":{\"reasoning_tokens\":42,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 3.445616208s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool_streaming.yaml deleted file mode 100644 index 9a4fedc41c4507f851f87d1227546abddbdac101..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.5/multi_tool_streaming.yaml +++ /dev/null @@ -1,405 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 879 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"z-ai/glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asking","reasoning_details":[{"type":"reasoning.text","text":" asking","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me","reasoning_details":[{"type":"reasoning.text","text":" me","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" numbers","reasoning_details":[{"type":"reasoning.text","text":" numbers","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.text","text":" need","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.text","text":" same","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" inputs","reasoning_details":[{"type":"reasoning.text","text":" inputs","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":").\n\n","reasoning_details":[{"type":"reasoning.text","text":").\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"For","reasoning_details":[{"type":"reasoning.text","text":"For","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":\n","reasoning_details":[{"type":"reasoning.text","text":":\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" b","reasoning_details":[{"type":"reasoning.text","text":" b","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n\n","reasoning_details":[{"type":"reasoning.text","text":"\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"For","reasoning_details":[{"type":"reasoning.text","text":"For","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":\n","reasoning_details":[{"type":"reasoning.text","text":":\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \n","reasoning_details":[{"type":"reasoning.text","text":" \n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" b","reasoning_details":[{"type":"reasoning.text","text":" b","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n\n","reasoning_details":[{"type":"reasoning.text","text":"\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"I","reasoning_details":[{"type":"reasoning.text","text":"I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'ll","reasoning_details":[{"type":"reasoning.text","text":"'ll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.text","text":" call","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" functions","reasoning_details":[{"type":"reasoning.text","text":" functions","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" these","reasoning_details":[{"type":"reasoning.text","text":" these","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameters","reasoning_details":[{"type":"reasoning.text","text":" parameters","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"'ll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" multiply","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" numbers","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":".\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_6a11b6c05ee447799771c928","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_4431af3675844706982c27ec","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324058-dZa5em6CCB29zznhaofI","object":"chat.completion.chunk","created":1773324058,"model":"z-ai/glm-4.5","provider":"Novita","choices":[],"usage":{"prompt_tokens":280,"completion_tokens":143,"total_tokens":423,"cost":0.00035716,"is_byok":false,"prompt_tokens_details":{"cached_tokens":256,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00035716,"upstream_inference_prompt_cost":0.00004256,"upstream_inference_completions_cost":0.0003146},"completion_tokens_details":{"reasoning_tokens":82,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.14797225s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1755 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\nI''ll add and multiply the numbers 2 and 3 for you.\n","tool_calls":[{"id":"call_6a11b6c05ee447799771c928","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_4431af3675844706982c27ec","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user is asking me to add and multiply the numbers 2 and 3. I need to use both the add function and the multiply function with the same inputs (2 and 3).\n\nFor the add function:\n- a = 2\n- b = 3\n\nFor the multiply function:\n- a = 2 \n- b = 3\n\nI''ll call both functions with these parameters.","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_6a11b6c05ee447799771c928","role":"tool"},{"content":"6","tool_call_id":"call_4431af3675844706982c27ec","role":"tool"}],"model":"z-ai/glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" results","reasoning_details":[{"type":"reasoning.text","text":" results","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":\n","reasoning_details":[{"type":"reasoning.text","text":":\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Adding","reasoning_details":[{"type":"reasoning.text","text":" Adding","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" gives","reasoning_details":[{"type":"reasoning.text","text":" gives","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"5","reasoning_details":[{"type":"reasoning.text","text":"5","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Multip","reasoning_details":[{"type":"reasoning.text","text":" Multip","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"lying","reasoning_details":[{"type":"reasoning.text","text":"lying","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" gives","reasoning_details":[{"type":"reasoning.text","text":" gives","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"6","reasoning_details":[{"type":"reasoning.text","text":"6","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n\n","reasoning_details":[{"type":"reasoning.text","text":"\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"I","reasoning_details":[{"type":"reasoning.text","text":"I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" present","reasoning_details":[{"type":"reasoning.text","text":" present","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" these","reasoning_details":[{"type":"reasoning.text","text":" these","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" results","reasoning_details":[{"type":"reasoning.text","text":" results","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clearly","reasoning_details":[{"type":"reasoning.text","text":" clearly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" results","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":":\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" Adding","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":":","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" Multip","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"lying","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":":","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324062-5ihkwbIAUS4cXNmrgV8p","object":"chat.completion.chunk","created":1773324062,"model":"z-ai/glm-4.5","provider":"Novita","choices":[],"usage":{"prompt_tokens":435,"completion_tokens":68,"total_tokens":503,"cost":0.00027242,"is_byok":false,"prompt_tokens_details":{"cached_tokens":282,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00027242,"upstream_inference_prompt_cost":0.00012282,"upstream_inference_completions_cost":0.0001496},"completion_tokens_details":{"reasoning_tokens":37,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.413508667s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.5/simple.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.5/simple.yaml deleted file mode 100644 index 326ef7393d25f896b55e42b7c02f1bdb487cc1cf..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.5/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 187 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"z-ai/glm-4.5","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324029-JPnY5xkTVM6SreU2loOi\",\"object\":\"chat.completion\",\"created\":1773324029,\"model\":\"z-ai/glm-4.5\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"\\nOlá! That's \\\"hi\\\" in Portuguese. \\n\\nIf you want to be more informal, you can also say \\\"Oi\\\" which is commonly used in Brazil.\",\"refusal\":null,\"reasoning\":\"The human is asking me to say \\\"hi\\\" in Portuguese. The Portuguese word for \\\"hi\\\" or \\\"hello\\\" is \\\"Olá\\\". I'll provide this translation and maybe add a bit more context about Portuguese greetings to be more helpful.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The human is asking me to say \\\"hi\\\" in Portuguese. The Portuguese word for \\\"hi\\\" or \\\"hello\\\" is \\\"Olá\\\". I'll provide this translation and maybe add a bit more context about Portuguese greetings to be more helpful.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":87,\"total_tokens\":103,\"cost\":0.00019659,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":9,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00019659,\"upstream_inference_prompt_cost\":0.00000519,\"upstream_inference_completions_cost\":0.0001914},\"completion_tokens_details\":{\"reasoning_tokens\":49,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.388520208s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.5/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.5/simple_streaming.yaml deleted file mode 100644 index 7734c83e167a13400cb46bba01ce0184fe16af4a..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.5/simple_streaming.yaml +++ /dev/null @@ -1,204 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 241 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"z-ai/glm-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"I","reasoning_details":[{"type":"reasoning.text","text":"I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.text","text":" need","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say","reasoning_details":[{"type":"reasoning.text","text":" say","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi","reasoning_details":[{"type":"reasoning.text","text":"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" greeting","reasoning_details":[{"type":"reasoning.text","text":" greeting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.text","text":"\".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This","reasoning_details":[{"type":"reasoning.text","text":" This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" standard","reasoning_details":[{"type":"reasoning.text","text":" standard","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" friendly","reasoning_details":[{"type":"reasoning.text","text":" friendly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" greeting","reasoning_details":[{"type":"reasoning.text","text":" greeting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.text","text":" that","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" can","reasoning_details":[{"type":"reasoning.text","text":" can","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be","reasoning_details":[{"type":"reasoning.text","text":" be","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" used","reasoning_details":[{"type":"reasoning.text","text":" used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most","reasoning_details":[{"type":"reasoning.text","text":" most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" situations","reasoning_details":[{"type":"reasoning.text","text":" situations","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" There","reasoning_details":[{"type":"reasoning.text","text":" There","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s","reasoning_details":[{"type":"reasoning.text","text":"'s","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" also","reasoning_details":[{"type":"reasoning.text","text":" also","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" which","reasoning_details":[{"type":"reasoning.text","text":" which","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" more","reasoning_details":[{"type":"reasoning.text","text":" more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" informal","reasoning_details":[{"type":"reasoning.text","text":" informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" similar","reasoning_details":[{"type":"reasoning.text","text":" similar","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Hi","reasoning_details":[{"type":"reasoning.text","text":"Hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" English","reasoning_details":[{"type":"reasoning.text","text":" English","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Since","reasoning_details":[{"type":"reasoning.text","text":" Since","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" request","reasoning_details":[{"type":"reasoning.text","text":" request","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" simple","reasoning_details":[{"type":"reasoning.text","text":" simple","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" doesn","reasoning_details":[{"type":"reasoning.text","text":" doesn","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'t","reasoning_details":[{"type":"reasoning.text","text":"'t","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" specify","reasoning_details":[{"type":"reasoning.text","text":" specify","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" form","reasoning_details":[{"type":"reasoning.text","text":" form","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ality","reasoning_details":[{"type":"reasoning.text","text":"ality","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'ll","reasoning_details":[{"type":"reasoning.text","text":"'ll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.text","text":" provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.text","text":" it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s","reasoning_details":[{"type":"reasoning.text","text":"'s","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" universally","reasoning_details":[{"type":"reasoning.text","text":" universally","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" appropriate","reasoning_details":[{"type":"reasoning.text","text":" appropriate","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"á","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324032-BB5Bz02Qyy8Wc5LPmWVO","object":"chat.completion.chunk","created":1773324032,"model":"z-ai/glm-4.5","provider":"Novita","choices":[],"usage":{"prompt_tokens":16,"completion_tokens":86,"total_tokens":102,"cost":0.00019145,"is_byok":false,"prompt_tokens_details":{"cached_tokens":15,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00019145,"upstream_inference_prompt_cost":0.00000225,"upstream_inference_completions_cost":0.0001892},"completion_tokens_details":{"reasoning_tokens":79,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 759.130333ms diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.5/tool.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.5/tool.yaml deleted file mode 100644 index 9a40311b26b50d5e8aa9a9d360e393f38445ddcc..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.5/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 479 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"z-ai/glm-4.5","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324034-8wFcOZ85dhprBktxwDQI\",\"object\":\"chat.completion\",\"created\":1773324034,\"model\":\"z-ai/glm-4.5\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll check the weather in Florence, Italy for you.\\n\",\"refusal\":null,\"reasoning\":\"\\nThe user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided \\\"Florence, Italy\\\" as the location. I should use this exact location string when calling the function.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_a2a3ce77cc02433e93b5a5be\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"\\nThe user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided \\\"Florence, Italy\\\" as the location. I should use this exact location string when calling the function.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":178,\"completion_tokens\":83,\"total_tokens\":261,\"cost\":0.00026833,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":43,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00026833,\"upstream_inference_prompt_cost\":0.00008573,\"upstream_inference_completions_cost\":0.0001826},\"completion_tokens_details\":{\"reasoning_tokens\":52,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 5.335454333s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1134 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.\n","tool_calls":[{"id":"call_a2a3ce77cc02433e93b5a5be","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"\nThe user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided \"Florence, Italy\" as the location. I should use this exact location string when calling the function.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_a2a3ce77cc02433e93b5a5be","role":"tool"}],"model":"z-ai/glm-4.5","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324040-z292tRfVyhCylAVz3rEa\",\"object\":\"chat.completion\",\"created\":1773324040,\"model\":\"z-ai/glm-4.5\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current temperature in Florence, Italy is 40°C, which is quite warm!\",\"refusal\":null,\"reasoning\":\"\\nThe weather function returned that the temperature in Florence, Italy is 40°C. This is quite hot! I should provide this information to the user in a clear and helpful way.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"\\nThe weather function returned that the temperature in Florence, Italy is 40°C. This is quite hot! I should provide this information to the user in a clear and helpful way.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":269,\"completion_tokens\":58,\"total_tokens\":327,\"cost\":0.0001616,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":260,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0001616,\"upstream_inference_prompt_cost\":0.000034,\"upstream_inference_completions_cost\":0.0001276},\"completion_tokens_details\":{\"reasoning_tokens\":37,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.773174916s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.5/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.5/tool_streaming.yaml deleted file mode 100644 index 1747f24476960b3b93385973bf9b4590f0b5f922..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.5/tool_streaming.yaml +++ /dev/null @@ -1,371 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 533 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"z-ai/glm-4.5","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asking","reasoning_details":[{"type":"reasoning.text","text":" asking","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.text","text":" have","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" access","reasoning_details":[{"type":"reasoning.text","text":" access","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.text","text":" that","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" requires","reasoning_details":[{"type":"reasoning.text","text":" requires","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.text","text":" parameter","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" has","reasoning_details":[{"type":"reasoning.text","text":" has","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provided","reasoning_details":[{"type":"reasoning.text","text":" provided","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Flo","reasoning_details":[{"type":"reasoning.text","text":"Flo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"rence","reasoning_details":[{"type":"reasoning.text","text":"rence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Italy","reasoning_details":[{"type":"reasoning.text","text":"Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" exact","reasoning_details":[{"type":"reasoning.text","text":" exact","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" value","reasoning_details":[{"type":"reasoning.text","text":" value","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provided","reasoning_details":[{"type":"reasoning.text","text":" provided","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" by","reasoning_details":[{"type":"reasoning.text","text":" by","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.text","text":" parameter","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"'ll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":".\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_41f85dbc4f6043e4998c612a","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324043-x0rKWKEIG9euQGgS9Q64","object":"chat.completion.chunk","created":1773324043,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[],"usage":{"prompt_tokens":178,"completion_tokens":87,"total_tokens":265,"cost":0.00021147,"is_byok":false,"prompt_tokens_details":{"cached_tokens":177,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00021147,"upstream_inference_prompt_cost":0.00002007,"upstream_inference_completions_cost":0.0001914},"completion_tokens_details":{"reasoning_tokens":56,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 3.156603917s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1202 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.\n","tool_calls":[{"id":"call_41f85dbc4f6043e4998c612a","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user is asking for the weather in Florence, Italy. I have access to a weather function that requires a location parameter. The user has provided \"Florence,Italy\" as the location. I should use this exact value as provided by the user for the location parameter.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_41f85dbc4f6043e4998c612a","role":"tool"}],"model":"z-ai/glm-4.5","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.text","text":" returned","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.text","text":"40","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" C","reasoning_details":[{"type":"reasoning.text","text":" C","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" which","reasoning_details":[{"type":"reasoning.text","text":" which","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" means","reasoning_details":[{"type":"reasoning.text","text":" means","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.text","text":" it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s","reasoning_details":[{"type":"reasoning.text","text":"'s","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.text","text":"40","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" degrees","reasoning_details":[{"type":"reasoning.text","text":" degrees","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Celsius","reasoning_details":[{"type":"reasoning.text","text":" Celsius","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This","reasoning_details":[{"type":"reasoning.text","text":" This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" quite","reasoning_details":[{"type":"reasoning.text","text":" quite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hot","reasoning_details":[{"type":"reasoning.text","text":" hot","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.text","text":"!","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.text","text":" provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clear","reasoning_details":[{"type":"reasoning.text","text":" clear","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.text","text":" helpful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" way","reasoning_details":[{"type":"reasoning.text","text":" way","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":").","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"'s","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" day","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" Make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" sure","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" hydrated","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" seek","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" shade","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" if","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"'re","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" out","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" about","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324046-3H5BZM5C70ATNICGsa3W","object":"chat.completion.chunk","created":1773324046,"model":"z-ai/glm-4.5","provider":"Z.AI","choices":[],"usage":{"prompt_tokens":273,"completion_tokens":83,"total_tokens":356,"cost":0.00032533,"is_byok":false,"prompt_tokens_details":{"cached_tokens":43,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00032533,"upstream_inference_prompt_cost":0.00014273,"upstream_inference_completions_cost":0.0001826},"completion_tokens_details":{"reasoning_tokens":42,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 4.408586333s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool.yaml deleted file mode 100644 index bb07099fd5286df3a47ec54e5f6fc0ccccfacc10..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 842 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"z-ai/glm-4.6","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324161-yjtNTefaJWjsI5zgag7U\",\"object\":\"chat.completion\",\"created\":1773324161,\"model\":\"z-ai/glm-4.6\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll add and multiply the numbers 2 and 3 for you.\",\"refusal\":null,\"reasoning\":\"The user wants me to add and multiply the numbers 2 and 3. I have two functions available: add and multiply. I need to use both functions with the parameters a=2 and b=3 for each function.\\n\\nLet me call both functions:\\n- add(2, 3)\\n- multiply(2, 3)\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_3eff2456fc494463924f094a\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_40575b9277094086b33d1d42\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user wants me to add and multiply the numbers 2 and 3. I have two functions available: add and multiply. I need to use both functions with the parameters a=2 and b=3 for each function.\\n\\nLet me call both functions:\\n- add(2, 3)\\n- multiply(2, 3)\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":279,\"completion_tokens\":115,\"total_tokens\":394,\"cost\":0.00038797,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":42,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00038797,\"upstream_inference_prompt_cost\":0.00013497,\"upstream_inference_completions_cost\":0.000253},\"completion_tokens_details\":{\"reasoning_tokens\":68,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.011245708s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1667 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"call_3eff2456fc494463924f094a","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_40575b9277094086b33d1d42","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user wants me to add and multiply the numbers 2 and 3. I have two functions available: add and multiply. I need to use both functions with the parameters a=2 and b=3 for each function.\n\nLet me call both functions:\n- add(2, 3)\n- multiply(2, 3)","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_3eff2456fc494463924f094a","role":"tool"},{"content":"6","tool_call_id":"call_40575b9277094086b33d1d42","role":"tool"}],"model":"z-ai/glm-4.6","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324165-M23dnD2Z2GRyI2JcJIDj\",\"object\":\"chat.completion\",\"created\":1773324165,\"model\":\"z-ai/glm-4.6\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Here are the results for the numbers 2 and 3:\\n\\n- **Addition**: 2 + 3 = 5\\n- **Multiplication**: 2 × 3 = 6\",\"refusal\":null,\"reasoning\":\"The results are:\\n- Addition: 2 + 3 = 5\\n- Multiplication: 2 × 3 = 6\\n\\nI should provide a clear summary to the user of both results.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The results are:\\n- Addition: 2 + 3 = 5\\n- Multiplication: 2 × 3 = 6\\n\\nI should provide a clear summary to the user of both results.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":402,\"completion_tokens\":84,\"total_tokens\":486,\"cost\":0.00023342,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":392,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00023342,\"upstream_inference_prompt_cost\":0.00004862,\"upstream_inference_completions_cost\":0.0001848},\"completion_tokens_details\":{\"reasoning_tokens\":42,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 3.195246417s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool_streaming.yaml deleted file mode 100644 index 21407bc70864b511f5fb3a7b9ceaf413e9949c68..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.6/multi_tool_streaming.yaml +++ /dev/null @@ -1,361 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 879 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"z-ai/glm-4.6","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wants","reasoning_details":[{"type":"reasoning.text","text":" wants","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me","reasoning_details":[{"type":"reasoning.text","text":" me","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" numbers","reasoning_details":[{"type":"reasoning.text","text":" numbers","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.text","text":" have","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" functions","reasoning_details":[{"type":"reasoning.text","text":" functions","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" available","reasoning_details":[{"type":"reasoning.text","text":" available","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" instructions","reasoning_details":[{"type":"reasoning.text","text":" instructions","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say","reasoning_details":[{"type":"reasoning.text","text":" say","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" always","reasoning_details":[{"type":"reasoning.text","text":" always","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" at","reasoning_details":[{"type":"reasoning.text","text":" at","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.text","text":" same","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time","reasoning_details":[{"type":"reasoning.text","text":" time","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" So","reasoning_details":[{"type":"reasoning.text","text":" So","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.text","text":" need","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.text","text":" call","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" functions","reasoning_details":[{"type":"reasoning.text","text":" functions","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameters","reasoning_details":[{"type":"reasoning.text","text":" parameters","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"=","reasoning_details":[{"type":"reasoning.text","text":"=","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" b","reasoning_details":[{"type":"reasoning.text","text":" b","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"=","reasoning_details":[{"type":"reasoning.text","text":"=","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"'ll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" multiply","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" numbers","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_c02817b0e63e4f9db2208d62","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_0e54f1f590bd45b4a7972f5f","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324169-R35AraloGop4RPqk2TgM","object":"chat.completion.chunk","created":1773324169,"model":"z-ai/glm-4.6","provider":"Novita","choices":[],"usage":{"prompt_tokens":275,"completion_tokens":107,"total_tokens":382,"cost":0.00027665,"is_byok":false,"prompt_tokens_details":{"cached_tokens":250,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00027665,"upstream_inference_prompt_cost":0.00004125,"upstream_inference_completions_cost":0.0002354},"completion_tokens_details":{"reasoning_tokens":60,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.016894958s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1708 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"call_c02817b0e63e4f9db2208d62","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_0e54f1f590bd45b4a7972f5f","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user wants me to add and multiply the numbers 2 and 3. I have both the add and multiply functions available, and the instructions say to always use both add and multiply at the same time. So I need to call both functions with the parameters a=2 and b=3.","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_c02817b0e63e4f9db2208d62","role":"tool"},{"content":"6","tool_call_id":"call_0e54f1f590bd45b4a7972f5f","role":"tool"}],"model":"z-ai/glm-4.6","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.text","text":" returned","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"5","reasoning_details":[{"type":"reasoning.text","text":"5","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" +","reasoning_details":[{"type":"reasoning.text","text":" +","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"5","reasoning_details":[{"type":"reasoning.text","text":"5","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":")","reasoning_details":[{"type":"reasoning.text","text":")","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.text","text":" returned","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"6","reasoning_details":[{"type":"reasoning.text","text":"6","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ×","reasoning_details":[{"type":"reasoning.text","text":" ×","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"6","reasoning_details":[{"type":"reasoning.text","text":"6","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":").","reasoning_details":[{"type":"reasoning.text","text":").","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Both","reasoning_details":[{"type":"reasoning.text","text":" Both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calculations","reasoning_details":[{"type":"reasoning.text","text":" calculations","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" correct","reasoning_details":[{"type":"reasoning.text","text":" correct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" results","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":":\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"Add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"Multiply","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ×","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324172-Qio6Nbp2y2zBzBcW6fRM","object":"chat.completion.chunk","created":1773324172,"model":"z-ai/glm-4.6","provider":"Novita","choices":[],"usage":{"prompt_tokens":389,"completion_tokens":67,"total_tokens":456,"cost":0.00024079,"is_byok":false,"prompt_tokens_details":{"cached_tokens":274,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00024079,"upstream_inference_prompt_cost":0.00009339,"upstream_inference_completions_cost":0.0001474},"completion_tokens_details":{"reasoning_tokens":36,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 963.181708ms diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.6/simple.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.6/simple.yaml deleted file mode 100644 index 3f7be0ebe1dfa5953d3b27917695d4f8e389a0e9..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.6/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 187 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"z-ai/glm-4.6","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324064-bCxdmtgLzZ9hRfv3kUJn\",\"object\":\"chat.completion\",\"created\":1773324064,\"model\":\"z-ai/glm-4.6\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi!\",\"refusal\":null,\"reasoning\":\"1. **Identify the user's request:** The user wants me to say \\\"hi\\\" in Portuguese.\\n\\n2. **Retrieve knowledge about Portuguese greetings:**\\n * \\\"Olá\\\" is the standard, slightly formal but versatile greeting (equivalent to \\\"Hello\\\").\\n * \\\"Oi\\\" is the informal, common greeting (equivalent to \\\"Hi\\\").\\n * \\\"Oi, tudo bem?\\\" (Hi, how are you?) is also very common.\\n\\n3. **Select the best response:** Since the user specifically asked to \\\"say hi\\\", \\\"Oi\\\" is the most direct translation. However, providing \\\"Olá\\\" as well adds value and covers different contexts.\\n\\n4. **Draft the response:**\\n * Option 1: \\\"Oi!\\\"\\n * Option 2: \\\"Olá!\\\"\\n * Option 3: \\\"Oi! or Olá!\\\"\\n\\n5. **Final Polish:** A simple, direct answer is usually best for this type of query.\\n\\n * \\\"Oi!\\\"\\n\\n (I could also add \\\"Olá\\\" for completeness).\\n\\n6. **Final Output Generation:** \\\"Oi!\\\" or \\\"Olá!\\\" are both correct. I will provide the most common informal one first, or just the standard one. Let's go with \\\"Oi!\\\" as it matches \\\"hi\\\" well, but maybe list both.\\n\\n * *Result:* \\\"Oi!\\\" (or \\\"Olá!\\\")\\n\\n Let's just give the most direct translation.\\n\\n \\\"Oi!\\\"\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"1. **Identify the user's request:** The user wants me to say \\\"hi\\\" in Portuguese.\\n\\n2. **Retrieve knowledge about Portuguese greetings:**\\n * \\\"Olá\\\" is the standard, slightly formal but versatile greeting (equivalent to \\\"Hello\\\").\\n * \\\"Oi\\\" is the informal, common greeting (equivalent to \\\"Hi\\\").\\n * \\\"Oi, tudo bem?\\\" (Hi, how are you?) is also very common.\\n\\n3. **Select the best response:** Since the user specifically asked to \\\"say hi\\\", \\\"Oi\\\" is the most direct translation. However, providing \\\"Olá\\\" as well adds value and covers different contexts.\\n\\n4. **Draft the response:**\\n * Option 1: \\\"Oi!\\\"\\n * Option 2: \\\"Olá!\\\"\\n * Option 3: \\\"Oi! or Olá!\\\"\\n\\n5. **Final Polish:** A simple, direct answer is usually best for this type of query.\\n\\n * \\\"Oi!\\\"\\n\\n (I could also add \\\"Olá\\\" for completeness).\\n\\n6. **Final Output Generation:** \\\"Oi!\\\" or \\\"Olá!\\\" are both correct. I will provide the most common informal one first, or just the standard one. Let's go with \\\"Oi!\\\" as it matches \\\"hi\\\" well, but maybe list both.\\n\\n * *Result:* \\\"Oi!\\\" (or \\\"Olá!\\\")\\n\\n Let's just give the most direct translation.\\n\\n \\\"Oi!\\\"\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":15,\"completion_tokens\":314,\"total_tokens\":329,\"cost\":0.00055296,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":4,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00055296,\"upstream_inference_prompt_cost\":0.0000066,\"upstream_inference_completions_cost\":0.00054636},\"completion_tokens_details\":{\"reasoning_tokens\":310,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.620134375s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.6/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.6/simple_streaming.yaml deleted file mode 100644 index c59ef6630686969a66e2a79af292e6b6c5cac33f..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.6/simple_streaming.yaml +++ /dev/null @@ -1,1388 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 241 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"z-ai/glm-4.6","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"1","reasoning_details":[{"type":"reasoning.text","text":"1","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". ","reasoning_details":[{"type":"reasoning.text","text":". ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **An","reasoning_details":[{"type":"reasoning.text","text":" **An","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"alyze the","reasoning_details":[{"type":"reasoning.text","text":"alyze the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s request","reasoning_details":[{"type":"reasoning.text","text":"'s request","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":** The","reasoning_details":[{"type":"reasoning.text","text":":** The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user wants","reasoning_details":[{"type":"reasoning.text","text":" user wants","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to know","reasoning_details":[{"type":"reasoning.text","text":" to know","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" how to","reasoning_details":[{"type":"reasoning.text","text":" how to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say \"","reasoning_details":[{"type":"reasoning.text","text":" say \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi\"","reasoning_details":[{"type":"reasoning.text","text":"hi\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in Portuguese","reasoning_details":[{"type":"reasoning.text","text":" in Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". This","reasoning_details":[{"type":"reasoning.text","text":". This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is a","reasoning_details":[{"type":"reasoning.text","text":" is a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very simple","reasoning_details":[{"type":"reasoning.text","text":" very simple","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", direct","reasoning_details":[{"type":"reasoning.text","text":", direct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" translation request","reasoning_details":[{"type":"reasoning.text","text":" translation request","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n2","reasoning_details":[{"type":"reasoning.text","text":".\n\n2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". ","reasoning_details":[{"type":"reasoning.text","text":". ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **Ident","reasoning_details":[{"type":"reasoning.text","text":" **Ident","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ify the","reasoning_details":[{"type":"reasoning.text","text":"ify the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" core task","reasoning_details":[{"type":"reasoning.text","text":" core task","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":** Provide","reasoning_details":[{"type":"reasoning.text","text":":** Provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the Portuguese","reasoning_details":[{"type":"reasoning.text","text":" the Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" equivalent","reasoning_details":[{"type":"reasoning.text","text":" equivalent","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of \"","reasoning_details":[{"type":"reasoning.text","text":" of \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi\".\n\n","reasoning_details":[{"type":"reasoning.text","text":"hi\".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3.","reasoning_details":[{"type":"reasoning.text","text":"3.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Brainstorm","reasoning_details":[{"type":"reasoning.text","text":"Brainstorm","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" greetings","reasoning_details":[{"type":"reasoning.text","text":" greetings","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n ","reasoning_details":[{"type":"reasoning.text","text":"**\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Ol","reasoning_details":[{"type":"reasoning.text","text":" \"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á\"","reasoning_details":[{"type":"reasoning.text","text":"á\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - This","reasoning_details":[{"type":"reasoning.text","text":" - This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is the","reasoning_details":[{"type":"reasoning.text","text":" is the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most direct","reasoning_details":[{"type":"reasoning.text","text":" most direct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and common","reasoning_details":[{"type":"reasoning.text","text":" and common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" translation of","reasoning_details":[{"type":"reasoning.text","text":" translation of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"hello","reasoning_details":[{"type":"reasoning.text","text":" \"hello","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\" or","reasoning_details":[{"type":"reasoning.text","text":"\" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"hi","reasoning_details":[{"type":"reasoning.text","text":" \"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\". It","reasoning_details":[{"type":"reasoning.text","text":"\". It","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s universally","reasoning_details":[{"type":"reasoning.text","text":"'s universally","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" understood in","reasoning_details":[{"type":"reasoning.text","text":" understood in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portugal and","reasoning_details":[{"type":"reasoning.text","text":" Portugal and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazil.","reasoning_details":[{"type":"reasoning.text","text":" Brazil.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" It's","reasoning_details":[{"type":"reasoning.text","text":" It's","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" neutral in","reasoning_details":[{"type":"reasoning.text","text":" neutral in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" form","reasoning_details":[{"type":"reasoning.text","text":" form","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ality.\n","reasoning_details":[{"type":"reasoning.text","text":"ality.\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi\"","reasoning_details":[{"type":"reasoning.text","text":"Oi\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - This","reasoning_details":[{"type":"reasoning.text","text":" - This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is very","reasoning_details":[{"type":"reasoning.text","text":" is very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common,","reasoning_details":[{"type":"reasoning.text","text":" common,","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" especially in","reasoning_details":[{"type":"reasoning.text","text":" especially in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazil.","reasoning_details":[{"type":"reasoning.text","text":" Brazil.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" It's","reasoning_details":[{"type":"reasoning.text","text":" It's","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" informal","reasoning_details":[{"type":"reasoning.text","text":" informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" like a","reasoning_details":[{"type":"reasoning.text","text":" like a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" friendly","reasoning_details":[{"type":"reasoning.text","text":" friendly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"hi","reasoning_details":[{"type":"reasoning.text","text":" \"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\" or","reasoning_details":[{"type":"reasoning.text","text":"\" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"hey","reasoning_details":[{"type":"reasoning.text","text":" \"hey","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\". It","reasoning_details":[{"type":"reasoning.text","text":"\". It","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s less","reasoning_details":[{"type":"reasoning.text","text":"'s less","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common in","reasoning_details":[{"type":"reasoning.text","text":" common in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portugal,","reasoning_details":[{"type":"reasoning.text","text":" Portugal,","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" where it","reasoning_details":[{"type":"reasoning.text","text":" where it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" can sometimes","reasoning_details":[{"type":"reasoning.text","text":" can sometimes","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" sound a","reasoning_details":[{"type":"reasoning.text","text":" sound a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" bit too","reasoning_details":[{"type":"reasoning.text","text":" bit too","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" informal or","reasoning_details":[{"type":"reasoning.text","text":" informal or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" even slightly","reasoning_details":[{"type":"reasoning.text","text":" even slightly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" dismissive","reasoning_details":[{"type":"reasoning.text","text":" dismissive","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" depending on","reasoning_details":[{"type":"reasoning.text","text":" depending on","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the context","reasoning_details":[{"type":"reasoning.text","text":" the context","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", but","reasoning_details":[{"type":"reasoning.text","text":", but","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it's","reasoning_details":[{"type":"reasoning.text","text":" it's","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" still understood","reasoning_details":[{"type":"reasoning.text","text":" still understood","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"B","reasoning_details":[{"type":"reasoning.text","text":" \"B","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"om dia","reasoning_details":[{"type":"reasoning.text","text":"om dia","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\" -","reasoning_details":[{"type":"reasoning.text","text":"\" -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Good","reasoning_details":[{"type":"reasoning.text","text":" \"Good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" morning\".","reasoning_details":[{"type":"reasoning.text","text":" morning\".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Used","reasoning_details":[{"type":"reasoning.text","text":" Used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" until","reasoning_details":[{"type":"reasoning.text","text":" until","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" noon.\n","reasoning_details":[{"type":"reasoning.text","text":" noon.\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Boa","reasoning_details":[{"type":"reasoning.text","text":"Boa","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tarde\"","reasoning_details":[{"type":"reasoning.text","text":" tarde\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - \"","reasoning_details":[{"type":"reasoning.text","text":" - \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Good afternoon","reasoning_details":[{"type":"reasoning.text","text":"Good afternoon","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\". Used","reasoning_details":[{"type":"reasoning.text","text":"\". Used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" from noon","reasoning_details":[{"type":"reasoning.text","text":" from noon","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" until sunset","reasoning_details":[{"type":"reasoning.text","text":" until sunset","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"/d","reasoning_details":[{"type":"reasoning.text","text":"/d","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ark","reasoning_details":[{"type":"reasoning.text","text":"ark","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Bo","reasoning_details":[{"type":"reasoning.text","text":" \"Bo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"a noite","reasoning_details":[{"type":"reasoning.text","text":"a noite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\" -","reasoning_details":[{"type":"reasoning.text","text":"\" -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Good","reasoning_details":[{"type":"reasoning.text","text":" \"Good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" evening\"","reasoning_details":[{"type":"reasoning.text","text":" evening\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or \"","reasoning_details":[{"type":"reasoning.text","text":" or \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Good night","reasoning_details":[{"type":"reasoning.text","text":"Good night","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\". Used","reasoning_details":[{"type":"reasoning.text","text":"\". Used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" after dark","reasoning_details":[{"type":"reasoning.text","text":" after dark","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". Can","reasoning_details":[{"type":"reasoning.text","text":". Can","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be used","reasoning_details":[{"type":"reasoning.text","text":" be used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both as","reasoning_details":[{"type":"reasoning.text","text":" both as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a greeting","reasoning_details":[{"type":"reasoning.text","text":" a greeting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and a","reasoning_details":[{"type":"reasoning.text","text":" and a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" farewell.\n","reasoning_details":[{"type":"reasoning.text","text":" farewell.\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"E a","reasoning_details":[{"type":"reasoning.text","text":"E a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"í?\"","reasoning_details":[{"type":"reasoning.text","text":"í?\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" / \"","reasoning_details":[{"type":"reasoning.text","text":" / \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"E ai","reasoning_details":[{"type":"reasoning.text","text":"E ai","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"","reasoning_details":[{"type":"reasoning.text","text":"?\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - \"","reasoning_details":[{"type":"reasoning.text","text":" - \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.text","text":"What's","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" up?\"","reasoning_details":[{"type":"reasoning.text","text":" up?\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Very informal","reasoning_details":[{"type":"reasoning.text","text":" Very informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", common","reasoning_details":[{"type":"reasoning.text","text":", common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in Brazil","reasoning_details":[{"type":"reasoning.text","text":" in Brazil","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"T","reasoning_details":[{"type":"reasoning.text","text":" \"T","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"udo bem","reasoning_details":[{"type":"reasoning.text","text":"udo bem","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\" -","reasoning_details":[{"type":"reasoning.text","text":"?\" -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"How","reasoning_details":[{"type":"reasoning.text","text":" \"How","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" you?\"","reasoning_details":[{"type":"reasoning.text","text":" you?\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" / \"","reasoning_details":[{"type":"reasoning.text","text":" / \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Is","reasoning_details":[{"type":"reasoning.text","text":"Is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" everything well","reasoning_details":[{"type":"reasoning.text","text":" everything well","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\" Often","reasoning_details":[{"type":"reasoning.text","text":"?\" Often","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" used as","reasoning_details":[{"type":"reasoning.text","text":" used as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a greeting","reasoning_details":[{"type":"reasoning.text","text":" a greeting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" itself,","reasoning_details":[{"type":"reasoning.text","text":" itself,","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" like","reasoning_details":[{"type":"reasoning.text","text":" like","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Hey","reasoning_details":[{"type":"reasoning.text","text":" \"Hey","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", how","reasoning_details":[{"type":"reasoning.text","text":", how","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s it","reasoning_details":[{"type":"reasoning.text","text":"'s it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" going?\"","reasoning_details":[{"type":"reasoning.text","text":" going?\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n4","reasoning_details":[{"type":"reasoning.text","text":".\n\n4","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". ","reasoning_details":[{"type":"reasoning.text","text":". ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **Structure","reasoning_details":[{"type":"reasoning.text","text":" **Structure","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the answer","reasoning_details":[{"type":"reasoning.text","text":" the answer","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":** I","reasoning_details":[{"type":"reasoning.text","text":":** I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need to","reasoning_details":[{"type":"reasoning.text","text":" need to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide the","reasoning_details":[{"type":"reasoning.text","text":" provide the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most common","reasoning_details":[{"type":"reasoning.text","text":" most common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and useful","reasoning_details":[{"type":"reasoning.text","text":" and useful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" answers","reasoning_details":[{"type":"reasoning.text","text":" answers","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" first,","reasoning_details":[{"type":"reasoning.text","text":" first,","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" then add","reasoning_details":[{"type":"reasoning.text","text":" then add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" context","reasoning_details":[{"type":"reasoning.text","text":" context","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and nu","reasoning_details":[{"type":"reasoning.text","text":" and nu","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ance.","reasoning_details":[{"type":"reasoning.text","text":"ance.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" A good","reasoning_details":[{"type":"reasoning.text","text":" A good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" structure would","reasoning_details":[{"type":"reasoning.text","text":" structure would","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be:\n","reasoning_details":[{"type":"reasoning.text","text":" be:\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Start","reasoning_details":[{"type":"reasoning.text","text":" Start","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with the","reasoning_details":[{"type":"reasoning.text","text":" with the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most direct","reasoning_details":[{"type":"reasoning.text","text":" most direct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and universally","reasoning_details":[{"type":"reasoning.text","text":" and universally","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" understood translation","reasoning_details":[{"type":"reasoning.text","text":" understood translation","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Offer","reasoning_details":[{"type":"reasoning.text","text":" Offer","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", slightly","reasoning_details":[{"type":"reasoning.text","text":", slightly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" more informal","reasoning_details":[{"type":"reasoning.text","text":" more informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" alternative,","reasoning_details":[{"type":"reasoning.text","text":" alternative,","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and explain","reasoning_details":[{"type":"reasoning.text","text":" and explain","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the regional","reasoning_details":[{"type":"reasoning.text","text":" the regional","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" difference (","reasoning_details":[{"type":"reasoning.text","text":" difference (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Brazil vs","reasoning_details":[{"type":"reasoning.text","text":"Brazil vs","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". Portugal","reasoning_details":[{"type":"reasoning.text","text":". Portugal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":").\n ","reasoning_details":[{"type":"reasoning.text","text":").\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Provide the","reasoning_details":[{"type":"reasoning.text","text":" Provide the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time-of","reasoning_details":[{"type":"reasoning.text","text":" time-of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-day greetings","reasoning_details":[{"type":"reasoning.text","text":"-day greetings","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", as","reasoning_details":[{"type":"reasoning.text","text":", as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" they are","reasoning_details":[{"type":"reasoning.text","text":" they are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very","reasoning_details":[{"type":"reasoning.text","text":" very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common and","reasoning_details":[{"type":"reasoning.text","text":" common and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" polite","reasoning_details":[{"type":"reasoning.text","text":" polite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Add a","reasoning_details":[{"type":"reasoning.text","text":" Add a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" few","reasoning_details":[{"type":"reasoning.text","text":" few","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" more","reasoning_details":[{"type":"reasoning.text","text":" more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" informal options","reasoning_details":[{"type":"reasoning.text","text":" informal options","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for a","reasoning_details":[{"type":"reasoning.text","text":" for a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" more","reasoning_details":[{"type":"reasoning.text","text":" more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" complete answer","reasoning_details":[{"type":"reasoning.text","text":" complete answer","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Sum","reasoning_details":[{"type":"reasoning.text","text":" Sum","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"marize","reasoning_details":[{"type":"reasoning.text","text":"marize","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.text","text":" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" give a","reasoning_details":[{"type":"reasoning.text","text":" give a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" concluding tip","reasoning_details":[{"type":"reasoning.text","text":" concluding tip","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n5","reasoning_details":[{"type":"reasoning.text","text":".\n\n5","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". ","reasoning_details":[{"type":"reasoning.text","text":". ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **Draft","reasoning_details":[{"type":"reasoning.text","text":" **Draft","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the response","reasoning_details":[{"type":"reasoning.text","text":" the response","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (inc","reasoning_details":[{"type":"reasoning.text","text":" (inc","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"orporating","reasoning_details":[{"type":"reasoning.text","text":"orporating","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the structure","reasoning_details":[{"type":"reasoning.text","text":" the structure","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"):**\n\n","reasoning_details":[{"type":"reasoning.text","text":"):**\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Start","reasoning_details":[{"type":"reasoning.text","text":"Start","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with the","reasoning_details":[{"type":"reasoning.text","text":" with the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" main one","reasoning_details":[{"type":"reasoning.text","text":" main one","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":** \"","reasoning_details":[{"type":"reasoning.text","text":":** \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Olá","reasoning_details":[{"type":"reasoning.text","text":"Olá","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\" This","reasoning_details":[{"type":"reasoning.text","text":"!\" This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is the","reasoning_details":[{"type":"reasoning.text","text":" is the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" perfect","reasoning_details":[{"type":"reasoning.text","text":" perfect","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" starting point","reasoning_details":[{"type":"reasoning.text","text":" starting point","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". It","reasoning_details":[{"type":"reasoning.text","text":". It","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s the","reasoning_details":[{"type":"reasoning.text","text":"'s the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most","reasoning_details":[{"type":"reasoning.text","text":" most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" direct answer","reasoning_details":[{"type":"reasoning.text","text":" direct answer","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Say","reasoning_details":[{"type":"reasoning.text","text":" \"Say","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hi in","reasoning_details":[{"type":"reasoning.text","text":" hi in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese\".","reasoning_details":[{"type":"reasoning.text","text":" Portuguese\".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I should","reasoning_details":[{"type":"reasoning.text","text":" I should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add a","reasoning_details":[{"type":"reasoning.text","text":" add a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" little note","reasoning_details":[{"type":"reasoning.text","text":" little note","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about its","reasoning_details":[{"type":"reasoning.text","text":" about its","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" pronunciation (","reasoning_details":[{"type":"reasoning.text","text":" pronunciation (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"oh-L","reasoning_details":[{"type":"reasoning.text","text":"oh-L","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"AH)","reasoning_details":[{"type":"reasoning.text","text":"AH)","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to be","reasoning_details":[{"type":"reasoning.text","text":" to be","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" extra helpful","reasoning_details":[{"type":"reasoning.text","text":" extra helpful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n ","reasoning_details":[{"type":"reasoning.text","text":".\n\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **Add","reasoning_details":[{"type":"reasoning.text","text":" **Add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the informal","reasoning_details":[{"type":"reasoning.text","text":" the informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" alternative:**","reasoning_details":[{"type":"reasoning.text","text":" alternative:**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Oi","reasoning_details":[{"type":"reasoning.text","text":" \"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\" is","reasoning_details":[{"type":"reasoning.text","text":"!\" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" next logical","reasoning_details":[{"type":"reasoning.text","text":" next logical","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" step","reasoning_details":[{"type":"reasoning.text","text":" step","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". I","reasoning_details":[{"type":"reasoning.text","text":". I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" must explain","reasoning_details":[{"type":"reasoning.text","text":" must explain","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" its","reasoning_details":[{"type":"reasoning.text","text":" its","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" context","reasoning_details":[{"type":"reasoning.text","text":" context","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". \"","reasoning_details":[{"type":"reasoning.text","text":". \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"This","reasoning_details":[{"type":"reasoning.text","text":"This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is very","reasoning_details":[{"type":"reasoning.text","text":" is very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common in","reasoning_details":[{"type":"reasoning.text","text":" common in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazil and","reasoning_details":[{"type":"reasoning.text","text":" Brazil and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is like","reasoning_details":[{"type":"reasoning.text","text":" is like","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a friendly","reasoning_details":[{"type":"reasoning.text","text":" a friendly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" 'hey","reasoning_details":[{"type":"reasoning.text","text":" 'hey","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'.","reasoning_details":[{"type":"reasoning.text","text":"'.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" It","reasoning_details":[{"type":"reasoning.text","text":" It","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s less","reasoning_details":[{"type":"reasoning.text","text":"'s less","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common in","reasoning_details":[{"type":"reasoning.text","text":" common in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portugal.\"","reasoning_details":[{"type":"reasoning.text","text":" Portugal.\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This is","reasoning_details":[{"type":"reasoning.text","text":" This is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a crucial","reasoning_details":[{"type":"reasoning.text","text":" a crucial","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" piece","reasoning_details":[{"type":"reasoning.text","text":" piece","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of information","reasoning_details":[{"type":"reasoning.text","text":" of information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for a","reasoning_details":[{"type":"reasoning.text","text":" for a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" learner.\n\n","reasoning_details":[{"type":"reasoning.text","text":" learner.\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Introduce","reasoning_details":[{"type":"reasoning.text","text":"Introduce","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time-of","reasoning_details":[{"type":"reasoning.text","text":" time-of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-day greetings","reasoning_details":[{"type":"reasoning.text","text":"-day greetings","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":** These","reasoning_details":[{"type":"reasoning.text","text":":** These","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are essential","reasoning_details":[{"type":"reasoning.text","text":" are essential","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for anyone","reasoning_details":[{"type":"reasoning.text","text":" for anyone","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wanting","reasoning_details":[{"type":"reasoning.text","text":" wanting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to sound","reasoning_details":[{"type":"reasoning.text","text":" to sound","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" natural.","reasoning_details":[{"type":"reasoning.text","text":" natural.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I'll","reasoning_details":[{"type":"reasoning.text","text":" I'll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" list them","reasoning_details":[{"type":"reasoning.text","text":" list them","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with their","reasoning_details":[{"type":"reasoning.text","text":" with their","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" English translations","reasoning_details":[{"type":"reasoning.text","text":" English translations","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and the","reasoning_details":[{"type":"reasoning.text","text":" and the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time they","reasoning_details":[{"type":"reasoning.text","text":" time they","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are used","reasoning_details":[{"type":"reasoning.text","text":" are used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Bom","reasoning_details":[{"type":"reasoning.text","text":"Bom","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" dia**","reasoning_details":[{"type":"reasoning.text","text":" dia**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - Good","reasoning_details":[{"type":"reasoning.text","text":" - Good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" morning (","reasoning_details":[{"type":"reasoning.text","text":" morning (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"used","reasoning_details":[{"type":"reasoning.text","text":"used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" until around","reasoning_details":[{"type":"reasoning.text","text":" until around","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" noon)\n","reasoning_details":[{"type":"reasoning.text","text":" noon)\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Boa","reasoning_details":[{"type":"reasoning.text","text":"Boa","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tarde**","reasoning_details":[{"type":"reasoning.text","text":" tarde**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - Good","reasoning_details":[{"type":"reasoning.text","text":" - Good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" afternoon (","reasoning_details":[{"type":"reasoning.text","text":" afternoon (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"from","reasoning_details":[{"type":"reasoning.text","text":"from","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" noon","reasoning_details":[{"type":"reasoning.text","text":" noon","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" until sunset","reasoning_details":[{"type":"reasoning.text","text":" until sunset","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":")\n ","reasoning_details":[{"type":"reasoning.text","text":")\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **Bo","reasoning_details":[{"type":"reasoning.text","text":" **Bo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"a noite","reasoning_details":[{"type":"reasoning.text","text":"a noite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"** -","reasoning_details":[{"type":"reasoning.text","text":"** -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Good evening","reasoning_details":[{"type":"reasoning.text","text":" Good evening","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" / Good","reasoning_details":[{"type":"reasoning.text","text":" / Good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" night (","reasoning_details":[{"type":"reasoning.text","text":" night (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"used after","reasoning_details":[{"type":"reasoning.text","text":"used after","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" dark)\n\n","reasoning_details":[{"type":"reasoning.text","text":" dark)\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Add more","reasoning_details":[{"type":"reasoning.text","text":"Add more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" informal/","reasoning_details":[{"type":"reasoning.text","text":" informal/","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"collo","reasoning_details":[{"type":"reasoning.text","text":"collo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"quial","reasoning_details":[{"type":"reasoning.text","text":"quial","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" options:**","reasoning_details":[{"type":"reasoning.text","text":" options:**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This shows","reasoning_details":[{"type":"reasoning.text","text":" This shows","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a deeper","reasoning_details":[{"type":"reasoning.text","text":" a deeper","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" understanding and","reasoning_details":[{"type":"reasoning.text","text":" understanding and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" gives the","reasoning_details":[{"type":"reasoning.text","text":" gives the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user more","reasoning_details":[{"type":"reasoning.text","text":" user more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tools.\n","reasoning_details":[{"type":"reasoning.text","text":" tools.\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Tudo","reasoning_details":[{"type":"reasoning.text","text":"Tudo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" bem?","reasoning_details":[{"type":"reasoning.text","text":" bem?","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"** (","reasoning_details":[{"type":"reasoning.text","text":"** (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"too","reasoning_details":[{"type":"reasoning.text","text":"too","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-d","reasoning_details":[{"type":"reasoning.text","text":"-d","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"oo b","reasoning_details":[{"type":"reasoning.text","text":"oo b","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"eng)","reasoning_details":[{"type":"reasoning.text","text":"eng)","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" - \"","reasoning_details":[{"type":"reasoning.text","text":" - \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"How's","reasoning_details":[{"type":"reasoning.text","text":"How's","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it going","reasoning_details":[{"type":"reasoning.text","text":" it going","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\" or","reasoning_details":[{"type":"reasoning.text","text":"?\" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Is","reasoning_details":[{"type":"reasoning.text","text":" \"Is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" everything well","reasoning_details":[{"type":"reasoning.text","text":" everything well","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\" I","reasoning_details":[{"type":"reasoning.text","text":"?\" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should mention","reasoning_details":[{"type":"reasoning.text","text":" should mention","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it's","reasoning_details":[{"type":"reasoning.text","text":" it's","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" often used","reasoning_details":[{"type":"reasoning.text","text":" often used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a greeting","reasoning_details":[{"type":"reasoning.text","text":" a greeting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" itself.\n","reasoning_details":[{"type":"reasoning.text","text":" itself.\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"E a","reasoning_details":[{"type":"reasoning.text","text":"E a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"í?","reasoning_details":[{"type":"reasoning.text","text":"í?","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"** (","reasoning_details":[{"type":"reasoning.text","text":"** (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ee ah","reasoning_details":[{"type":"reasoning.text","text":"ee ah","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-ee","reasoning_details":[{"type":"reasoning.text","text":"-ee","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":") -","reasoning_details":[{"type":"reasoning.text","text":") -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"What","reasoning_details":[{"type":"reasoning.text","text":" \"What","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s up","reasoning_details":[{"type":"reasoning.text","text":"'s up","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\" I","reasoning_details":[{"type":"reasoning.text","text":"?\" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should specify","reasoning_details":[{"type":"reasoning.text","text":" should specify","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this is","reasoning_details":[{"type":"reasoning.text","text":" this is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very informal","reasoning_details":[{"type":"reasoning.text","text":" very informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and mostly","reasoning_details":[{"type":"reasoning.text","text":" and mostly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazilian","reasoning_details":[{"type":"reasoning.text","text":" Brazilian","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n ","reasoning_details":[{"type":"reasoning.text","text":".\n\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **Create","reasoning_details":[{"type":"reasoning.text","text":" **Create","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a summary","reasoning_details":[{"type":"reasoning.text","text":" a summary","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"/recommend","reasoning_details":[{"type":"reasoning.text","text":"/recommend","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ation:**","reasoning_details":[{"type":"reasoning.text","text":"ation:**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" A simple","reasoning_details":[{"type":"reasoning.text","text":" A simple","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" concluding sentence","reasoning_details":[{"type":"reasoning.text","text":" concluding sentence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helps tie","reasoning_details":[{"type":"reasoning.text","text":" helps tie","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it all","reasoning_details":[{"type":"reasoning.text","text":" it all","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" together.","reasoning_details":[{"type":"reasoning.text","text":" together.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Something like","reasoning_details":[{"type":"reasoning.text","text":" Something like","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":": \"","reasoning_details":[{"type":"reasoning.text","text":": \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"For a","reasoning_details":[{"type":"reasoning.text","text":"For a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" simple and","reasoning_details":[{"type":"reasoning.text","text":" simple and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" universally","reasoning_details":[{"type":"reasoning.text","text":" universally","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" understood","reasoning_details":[{"type":"reasoning.text","text":" understood","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" 'hi","reasoning_details":[{"type":"reasoning.text","text":" 'hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"', **","reasoning_details":[{"type":"reasoning.text","text":"', **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á!","reasoning_details":[{"type":"reasoning.text","text":"á!","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"** is","reasoning_details":[{"type":"reasoning.text","text":"** is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" your best","reasoning_details":[{"type":"reasoning.text","text":" your best","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" bet.\"\n\n","reasoning_details":[{"type":"reasoning.text","text":" bet.\"\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"6.","reasoning_details":[{"type":"reasoning.text","text":"6.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Review and","reasoning_details":[{"type":"reasoning.text","text":"Review and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" refine:**","reasoning_details":[{"type":"reasoning.text","text":" refine:**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Read through","reasoning_details":[{"type":"reasoning.text","text":" Read through","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the drafted","reasoning_details":[{"type":"reasoning.text","text":" the drafted","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" response.","reasoning_details":[{"type":"reasoning.text","text":" response.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Is it","reasoning_details":[{"type":"reasoning.text","text":" Is it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clear?","reasoning_details":[{"type":"reasoning.text","text":" clear?","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Is it","reasoning_details":[{"type":"reasoning.text","text":" Is it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" accurate?","reasoning_details":[{"type":"reasoning.text","text":" accurate?","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Is the","reasoning_details":[{"type":"reasoning.text","text":" Is the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" formatting easy","reasoning_details":[{"type":"reasoning.text","text":" formatting easy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to read","reasoning_details":[{"type":"reasoning.text","text":" to read","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\n\n","reasoning_details":[{"type":"reasoning.text","text":"?\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Using","reasoning_details":[{"type":"reasoning.text","text":" Using","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" bold for","reasoning_details":[{"type":"reasoning.text","text":" bold for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the Portuguese","reasoning_details":[{"type":"reasoning.text","text":" the Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" words makes","reasoning_details":[{"type":"reasoning.text","text":" words makes","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" them stand","reasoning_details":[{"type":"reasoning.text","text":" them stand","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" out.\n","reasoning_details":[{"type":"reasoning.text","text":" out.\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Adding","reasoning_details":[{"type":"reasoning.text","text":" Adding","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" simple","reasoning_details":[{"type":"reasoning.text","text":" simple","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" phon","reasoning_details":[{"type":"reasoning.text","text":" phon","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"etic pronunciation","reasoning_details":[{"type":"reasoning.text","text":"etic pronunciation","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in parentheses","reasoning_details":[{"type":"reasoning.text","text":" in parentheses","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is a","reasoning_details":[{"type":"reasoning.text","text":" is a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" great value","reasoning_details":[{"type":"reasoning.text","text":" great value","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-add for","reasoning_details":[{"type":"reasoning.text","text":"-add for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a language","reasoning_details":[{"type":"reasoning.text","text":" a language","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" question","reasoning_details":[{"type":"reasoning.text","text":" question","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n ","reasoning_details":[{"type":"reasoning.text","text":".\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" * ","reasoning_details":[{"type":"reasoning.text","text":" * ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The explanations","reasoning_details":[{"type":"reasoning.text","text":" The explanations","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of","reasoning_details":[{"type":"reasoning.text","text":" of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" regional differences","reasoning_details":[{"type":"reasoning.text","text":" regional differences","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (Brazil","reasoning_details":[{"type":"reasoning.text","text":" (Brazil","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" vs.","reasoning_details":[{"type":"reasoning.text","text":" vs.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portugal)","reasoning_details":[{"type":"reasoning.text","text":" Portugal)","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and form","reasoning_details":[{"type":"reasoning.text","text":" and form","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ality levels","reasoning_details":[{"type":"reasoning.text","text":"ality levels","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are key","reasoning_details":[{"type":"reasoning.text","text":" are key","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.text","text":".\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" structure flows","reasoning_details":[{"type":"reasoning.text","text":" structure flows","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" logically from","reasoning_details":[{"type":"reasoning.text","text":" logically from","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the most","reasoning_details":[{"type":"reasoning.text","text":" the most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" direct answer","reasoning_details":[{"type":"reasoning.text","text":" direct answer","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to more","reasoning_details":[{"type":"reasoning.text","text":" to more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" nuanced options","reasoning_details":[{"type":"reasoning.text","text":" nuanced options","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n ","reasoning_details":[{"type":"reasoning.text","text":".\n\n ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The draft","reasoning_details":[{"type":"reasoning.text","text":" The draft","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" looks good","reasoning_details":[{"type":"reasoning.text","text":" looks good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". It","reasoning_details":[{"type":"reasoning.text","text":". It","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s comprehensive","reasoning_details":[{"type":"reasoning.text","text":"'s comprehensive","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" but not","reasoning_details":[{"type":"reasoning.text","text":" but not","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" overwhelming.","reasoning_details":[{"type":"reasoning.text","text":" overwhelming.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" It answers","reasoning_details":[{"type":"reasoning.text","text":" It answers","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the user","reasoning_details":[{"type":"reasoning.text","text":" the user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s question","reasoning_details":[{"type":"reasoning.text","text":"'s question","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" directly and","reasoning_details":[{"type":"reasoning.text","text":" directly and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provides","reasoning_details":[{"type":"reasoning.text","text":" provides","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.text","text":" helpful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" relevant context","reasoning_details":[{"type":"reasoning.text","text":" relevant context","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":". The","reasoning_details":[{"type":"reasoning.text","text":". The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" final version","reasoning_details":[{"type":"reasoning.text","text":" final version","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ready.","reasoning_details":[{"type":"reasoning.text","text":" ready.","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Olá","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"!\n\nHere","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" are the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" most common","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" ways to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" say \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"hi\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" in Portuguese","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":", depending","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" on the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" situation and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" region:\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"###","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" The Most","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Common &","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Universal\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"* ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"á!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"** (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"oh-L","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"AH)\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" This","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" is the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" most","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" direct translation","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" of \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"hello\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" and is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" used everywhere","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" both Portugal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" and Brazil","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":". It","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"'s safe","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" use in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" any situation","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":", formal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" or informal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":".\n\n###","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Informal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" &","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Friendly","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" (especially","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" in Brazil","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":")\n\n*","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Oi!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"** (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"oy)\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" This","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" is extremely","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" common in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Brazil and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" is like","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" a friendly","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" \"hey","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"\" or","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" \"hi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"\".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" It's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" less","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" common in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Portugal,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" where it","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" can sound","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" a bit","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" too casual","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" or","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" even slightly","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" abrupt","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" depending on","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" the context","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":".\n\n###","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Time-of","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"-Day G","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"reetings (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Very Common","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" &","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Polite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":")\n\nThese","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" are used","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" just","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" like in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" English and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" are a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" great way","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" to greet","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" someone.\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"* ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **B","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"om dia","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"!**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" (b","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"ong DE","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"E-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"ah)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" - Good","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" morning (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"used until","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" around noon","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":")\n*","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Boa","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" tarde!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"** (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"boh","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"ah TAR","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"-d","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"jee)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" - Good","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" afternoon (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"from noon","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" until sunset","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":")\n*","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Boa","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" noite!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"** (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"boh","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"-ah","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" NOY","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"-tche","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"e)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" - Good","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" evening /","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Good night","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" (used","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" after dark","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":")\n\n###","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Other Casual","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" G","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"reetings\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"* ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **T","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"udo bem","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"?**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" (TO","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"O-d","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"oo b","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"eng)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" - Liter","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"ally \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Everything","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" well?\",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" it means","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" \"How","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" you?\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" and is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" very often","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" used as","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" a greeting","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" itself,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" like \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Hey,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" how's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" it going","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"?\"\n*","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"E a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"í?","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"** (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"ee ah","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"-EE","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":") -","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" \"What","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"'s up","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"?\" This","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" is very","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" informal and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" mostly used","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" in Brazil","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":".\n\nSo","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":", for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" a simple","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" and universally","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" understood \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"hi,\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" **Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"á!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"** is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" your best","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" choice","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324074-1zCKPpJMYk9TxRlHdbd9","object":"chat.completion.chunk","created":1773324074,"model":"z-ai/glm-4.6","provider":"DeepInfra","choices":[],"usage":{"prompt_tokens":16,"completion_tokens":1266,"total_tokens":1282,"cost":0.0022069199999944,"is_byok":false,"prompt_tokens_details":{"cached_tokens":8,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0022069199999944,"upstream_inference_prompt_cost":0.0000040799999944,"upstream_inference_completions_cost":0.00220284},"completion_tokens_details":{"reasoning_tokens":986,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 699.561417ms diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.6/tool.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.6/tool.yaml deleted file mode 100644 index eab6d2a8acd960482beacde98b193791cb060f3b..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.6/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 479 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"z-ai/glm-4.6","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324149-N3s8BG5itSvZMPwWEtM6\",\"object\":\"chat.completion\",\"created\":1773324149,\"model\":\"z-ai/glm-4.6\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll check the weather in Florence, Italy for you.\",\"refusal\":null,\"reasoning\":\"The user is asking for the weather in Florence, Italy. I have a weather function available that takes a location parameter. The user specified \\\"Florence, Italy\\\" as the location. I should use this exact value for the location parameter.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_cba78c9d494846b6a2f483e5\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence,Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user is asking for the weather in Florence, Italy. I have a weather function available that takes a location parameter. The user specified \\\"Florence, Italy\\\" as the location. I should use this exact value for the location parameter.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":173,\"completion_tokens\":74,\"total_tokens\":247,\"cost\":0.00023947,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":42,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00023947,\"upstream_inference_prompt_cost\":0.00007667,\"upstream_inference_completions_cost\":0.0001628},\"completion_tokens_details\":{\"reasoning_tokens\":48,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.4189585s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1117 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"call_cba78c9d494846b6a2f483e5","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user is asking for the weather in Florence, Italy. I have a weather function available that takes a location parameter. The user specified \"Florence, Italy\" as the location. I should use this exact value for the location parameter.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_cba78c9d494846b6a2f483e5","role":"tool"}],"model":"z-ai/glm-4.6","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324152-TSI9nG10XvbpmMQcPXCz\",\"object\":\"chat.completion\",\"created\":1773324152,\"model\":\"z-ai/glm-4.6\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is currently 40°C (104°F). That's quite hot! Make sure to stay hydrated and seek shade if you're out and about.\",\"refusal\":null,\"reasoning\":\"The weather function returned a simple result of \\\"40 C\\\" which indicates it's 40 degrees Celsius in Florence, Italy. This is quite hot weather. I should provide this information to the user in a clear and helpful way.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The weather function returned a simple result of \\\"40 C\\\" which indicates it's 40 degrees Celsius in Florence, Italy. This is quite hot weather. I should provide this information to the user in a clear and helpful way.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":253,\"completion_tokens\":83,\"total_tokens\":336,\"cost\":0.00021395,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":245,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00021395,\"upstream_inference_prompt_cost\":0.00003135,\"upstream_inference_completions_cost\":0.0001826},\"completion_tokens_details\":{\"reasoning_tokens\":46,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 3.273252709s diff --git a/providertests/testdata/TestOpenRouterCommon/glm-4.6/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm-4.6/tool_streaming.yaml deleted file mode 100644 index 79fc8568663eac4e1988c031af8689c76a4b3c83..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/glm-4.6/tool_streaming.yaml +++ /dev/null @@ -1,319 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 533 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"z-ai/glm-4.6","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asking","reasoning_details":[{"type":"reasoning.text","text":" asking","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.text","text":" have","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" access","reasoning_details":[{"type":"reasoning.text","text":" access","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.text","text":" that","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" requires","reasoning_details":[{"type":"reasoning.text","text":" requires","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.text","text":" parameter","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" has","reasoning_details":[{"type":"reasoning.text","text":" has","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provided","reasoning_details":[{"type":"reasoning.text","text":" provided","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Flo","reasoning_details":[{"type":"reasoning.text","text":"Flo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"rence","reasoning_details":[{"type":"reasoning.text","text":"rence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Italy","reasoning_details":[{"type":"reasoning.text","text":"Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" exactly","reasoning_details":[{"type":"reasoning.text","text":" exactly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provided","reasoning_details":[{"type":"reasoning.text","text":" provided","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" since","reasoning_details":[{"type":"reasoning.text","text":" since","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.text","text":" it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s","reasoning_details":[{"type":"reasoning.text","text":"'s","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" specific","reasoning_details":[{"type":"reasoning.text","text":" specific","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" city","reasoning_details":[{"type":"reasoning.text","text":" city","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" country","reasoning_details":[{"type":"reasoning.text","text":" country","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" combination","reasoning_details":[{"type":"reasoning.text","text":" combination","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"'ll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_09a987f7a0bc44488027c603","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324156-sWc0TpyxPKNEWgVvpeXq","object":"chat.completion.chunk","created":1773324156,"model":"z-ai/glm-4.6","provider":"Novita","choices":[],"usage":{"prompt_tokens":173,"completion_tokens":82,"total_tokens":255,"cost":0.00020031,"is_byok":false,"prompt_tokens_details":{"cached_tokens":171,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00020031,"upstream_inference_prompt_cost":0.00001991,"upstream_inference_completions_cost":0.0001804},"completion_tokens_details":{"reasoning_tokens":56,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.381694708s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1214 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"call_09a987f7a0bc44488027c603","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user is asking for weather information for Florence, Italy. I have access to a weather function that requires a location parameter. The user has provided \"Florence,Italy\" as the location. I should use this exactly as provided since it''s a specific city and country combination.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_09a987f7a0bc44488027c603","role":"tool"}],"model":"z-ai/glm-4.6","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.text","text":" returned","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" temperature","reasoning_details":[{"type":"reasoning.text","text":" temperature","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of","reasoning_details":[{"type":"reasoning.text","text":" of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.text","text":"40","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"°C","reasoning_details":[{"type":"reasoning.text","text":"°C","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This","reasoning_details":[{"type":"reasoning.text","text":" This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" quite","reasoning_details":[{"type":"reasoning.text","text":" quite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hot","reasoning_details":[{"type":"reasoning.text","text":" hot","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.text","text":"!","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.text","text":" provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.text","text":" helpful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" way","reasoning_details":[{"type":"reasoning.text","text":" way","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"),","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" which","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324159-zugvKZ6ejZK2AjypJXKY","object":"chat.completion.chunk","created":1773324159,"model":"z-ai/glm-4.6","provider":"Novita","choices":[],"usage":{"prompt_tokens":260,"completion_tokens":55,"total_tokens":315,"cost":0.00018832,"is_byok":false,"prompt_tokens_details":{"cached_tokens":172,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00018832,"upstream_inference_prompt_cost":0.00006732,"upstream_inference_completions_cost":0.000121},"completion_tokens_details":{"reasoning_tokens":33,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.741718916s diff --git a/providertests/testdata/TestOpenRouterCommon/glm/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/glm/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..de820af919719235d5f29c30a22fafc105879a29 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/glm/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 846 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945454-bGfSsPA1tWkfUqy0muzm\",\"object\":\"chat.completion\",\"created\":1773945454,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"Sure! Let me add and multiply 2 and 3 for you at the same time.\",\"refusal\":null,\"reasoning\":\"The user wants me to both add and multiply 2 and 3. I'll make both calls simultaneously.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_869844dd6bf44785b9ee4334\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_d6f1cb4244c94fb88e91ae4f\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user wants me to both add and multiply 2 and 3. I'll make both calls simultaneously.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":279,\"completion_tokens\":73,\"total_tokens\":352,\"cost\":0.000469184,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":42,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00058648,\"upstream_inference_prompt_cost\":0.00029448,\"upstream_inference_completions_cost\":0.000292},\"completion_tokens_details\":{\"reasoning_tokens\":22,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.925086125s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1522 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"Sure! Let me add and multiply 2 and 3 for you at the same time.","tool_calls":[{"id":"call_869844dd6bf44785b9ee4334","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_d6f1cb4244c94fb88e91ae4f","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user wants me to both add and multiply 2 and 3. I''ll make both calls simultaneously.","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_869844dd6bf44785b9ee4334","role":"tool"},{"content":"6","tool_call_id":"call_d6f1cb4244c94fb88e91ae4f","role":"tool"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n{\"id\":\"gen-1773945457-O2s9toIHS9WW6qPT3Mjj\",\"object\":\"chat.completion\",\"created\":1773945457,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Here are the results:\\n\\n- **Addition:** 2 + 3 = **5**\\n- **Multiplication:** 2 × 3 = **6**\",\"refusal\":null,\"reasoning\":\"The results are:\\n- Addition: 2 + 3 = 5\\n- Multiplication: 2 × 3 = 6\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The results are:\\n- Addition: 2 + 3 = 5\\n- Multiplication: 2 × 3 = 6\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":360,\"completion_tokens\":63,\"total_tokens\":423,\"cost\":0.000333696,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":278,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00041712,\"upstream_inference_prompt_cost\":0.00016512,\"upstream_inference_completions_cost\":0.000252},\"completion_tokens_details\":{\"reasoning_tokens\":28,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.125586208s diff --git a/providertests/testdata/TestOpenRouterCommon/glm/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc8ed94d7a3398ddead228f21eaad07e8c6715a4 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/glm/multi_tool_streaming.yaml @@ -0,0 +1,171 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 883 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wants","reasoning_details":[{"type":"reasoning.text","text":" wants","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'ll","reasoning_details":[{"type":"reasoning.text","text":"'ll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" make","reasoning_details":[{"type":"reasoning.text","text":" make","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calls","reasoning_details":[{"type":"reasoning.text","text":" calls","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" simultaneously","reasoning_details":[{"type":"reasoning.text","text":" simultaneously","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" since","reasoning_details":[{"type":"reasoning.text","text":" since","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" they","reasoning_details":[{"type":"reasoning.text","text":" they","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" independent","reasoning_details":[{"type":"reasoning.text","text":" independent","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"Sure","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"'ll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" multiply","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" right","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" away","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_01a3b98ceccc42ff83f9cebd","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_0be384879b524949a5cc4d74","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945458-TlowJFBb4TJf4kpdDX08","object":"chat.completion.chunk","created":1773945458,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":275,"completion_tokens":73,"total_tokens":348,"cost":0.0003056,"is_byok":false,"prompt_tokens_details":{"cached_tokens":250,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000382,"upstream_inference_prompt_cost":0.00009,"upstream_inference_completions_cost":0.000292},"completion_tokens_details":{"reasoning_tokens":24,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 3.125579583s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1567 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"Sure! I''ll add and multiply 2 and 3 for you right away.","tool_calls":[{"id":"call_01a3b98ceccc42ff83f9cebd","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_0be384879b524949a5cc4d74","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user wants to add and multiply 2 and 3. I''ll make both calls simultaneously since they are independent.","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_01a3b98ceccc42ff83f9cebd","role":"tool"},{"content":"6","tool_call_id":"call_0be384879b524949a5cc4d74","role":"tool"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: ": OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"Both\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"Both\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" results\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" results\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" are\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" are\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" back\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" back\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\".\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" Let\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" Let\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" me\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" me\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" present\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" present\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" them\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" them\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" clearly\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" clearly\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\".\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Here\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" are\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" the\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" results\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\":\\n\\n\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"-\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" **\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Add\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"ition\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\":**\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"2\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" +\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"3\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" =\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" **\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"5\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"**\\n\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"-\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" **\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Multip\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"lication\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\":**\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"2\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" ×\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"3\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" =\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" **\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"6\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"**\\n\\n\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Let\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" me\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" know\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" if\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" you\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" need\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" anything\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" else\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"!\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\U0001F60A\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":null},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}]}\n\ndata: {\"id\":\"gen-1773945462-2exYsbLv51W0ljqdQ8g9\",\"object\":\"chat.completion.chunk\",\"created\":1773945462,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":355,\"completion_tokens\":57,\"total_tokens\":412,\"cost\":0.000312768,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":274,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00039096,\"upstream_inference_prompt_cost\":0.00016296,\"upstream_inference_completions_cost\":0.000228},\"completion_tokens_details\":{\"reasoning_tokens\":11,\"image_tokens\":0,\"audio_tokens\":0}}}\n\ndata: [DONE]\n\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.430991958s diff --git a/providertests/testdata/TestOpenRouterCommon/glm/simple.yaml b/providertests/testdata/TestOpenRouterCommon/glm/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b8d89f626e3516e2e77e08019d33e1293783fe01 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/glm/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 191 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945441-rmYxEaMamyQYZcvTx0FA\",\"object\":\"chat.completion\",\"created\":1773945441,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi!\",\"refusal\":null,\"reasoning\":\"1. **Identify the language**: Portuguese.\\n2. **Identify the intent**: Say \\\"hi\\\".\\n3. **Translate \\\"hi\\\" to Portuguese**: \\\"Oi\\\" is the most common and direct translation for \\\"hi\\\". \\\"Olá\\\" is also very common and translates to \\\"hello\\\".\\n4. **Select the best option**: \\\"Oi\\\" fits the casualness of \\\"hi\\\" perfectly.\\n5. **Output the result**: Oi!\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"1. **Identify the language**: Portuguese.\\n2. **Identify the intent**: Say \\\"hi\\\".\\n3. **Translate \\\"hi\\\" to Portuguese**: \\\"Oi\\\" is the most common and direct translation for \\\"hi\\\". \\\"Olá\\\" is also very common and translates to \\\"hello\\\".\\n4. **Select the best option**: \\\"Oi\\\" fits the casualness of \\\"hi\\\" perfectly.\\n5. **Output the result**: Oi!\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":15,\"completion_tokens\":100,\"total_tokens\":115,\"cost\":0.000331328,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":4,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00041416,\"upstream_inference_prompt_cost\":0.00001416,\"upstream_inference_completions_cost\":0.0004},\"completion_tokens_details\":{\"reasoning_tokens\":96,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.758985083s diff --git a/providertests/testdata/TestOpenRouterCommon/glm/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b96492b5e0cbcae0bc3512ee312e89f565849b9c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/glm/simple_streaming.yaml @@ -0,0 +1,562 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 245 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"1","reasoning_details":[{"type":"reasoning.text","text":"1","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"An","reasoning_details":[{"type":"reasoning.text","text":"An","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"alyze","reasoning_details":[{"type":"reasoning.text","text":"alyze","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Request","reasoning_details":[{"type":"reasoning.text","text":" Request","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n","reasoning_details":[{"type":"reasoning.text","text":"**\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Task","reasoning_details":[{"type":"reasoning.text","text":" Task","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Say","reasoning_details":[{"type":"reasoning.text","text":" Say","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi","reasoning_details":[{"type":"reasoning.text","text":"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"g","reasoning_details":[{"type":"reasoning.text","text":"g","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"reet","reasoning_details":[{"type":"reasoning.text","text":"reet","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":").\n","reasoning_details":[{"type":"reasoning.text","text":").\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Language","reasoning_details":[{"type":"reasoning.text","text":" Language","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n","reasoning_details":[{"type":"reasoning.text","text":".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"D","reasoning_details":[{"type":"reasoning.text","text":"D","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"etermine","reasoning_details":[{"type":"reasoning.text","text":"etermine","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" appropriate","reasoning_details":[{"type":"reasoning.text","text":" appropriate","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" translation","reasoning_details":[{"type":"reasoning.text","text":" translation","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n","reasoning_details":[{"type":"reasoning.text","text":"**\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Hi","reasoning_details":[{"type":"reasoning.text","text":"Hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" translates","reasoning_details":[{"type":"reasoning.text","text":" translates","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.text","text":".\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Hello","reasoning_details":[{"type":"reasoning.text","text":"Hello","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" translates","reasoning_details":[{"type":"reasoning.text","text":" translates","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.text","text":".\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Both","reasoning_details":[{"type":"reasoning.text","text":" Both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very","reasoning_details":[{"type":"reasoning.text","text":" very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" correct","reasoning_details":[{"type":"reasoning.text","text":" correct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most","reasoning_details":[{"type":"reasoning.text","text":" most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" direct","reasoning_details":[{"type":"reasoning.text","text":" direct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" equivalent","reasoning_details":[{"type":"reasoning.text","text":" equivalent","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of","reasoning_details":[{"type":"reasoning.text","text":" of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" casual","reasoning_details":[{"type":"reasoning.text","text":" casual","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi","reasoning_details":[{"type":"reasoning.text","text":"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".\n\n","reasoning_details":[{"type":"reasoning.text","text":"\".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Form","reasoning_details":[{"type":"reasoning.text","text":"Form","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ulate","reasoning_details":[{"type":"reasoning.text","text":"ulate","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" response","reasoning_details":[{"type":"reasoning.text","text":" response","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n","reasoning_details":[{"type":"reasoning.text","text":"**\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Provide","reasoning_details":[{"type":"reasoning.text","text":" Provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" direct","reasoning_details":[{"type":"reasoning.text","text":" direct","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" translation","reasoning_details":[{"type":"reasoning.text","text":" translation","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (\"","reasoning_details":[{"type":"reasoning.text","text":" (\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.text","text":" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\").\n","reasoning_details":[{"type":"reasoning.text","text":"\").\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Optional","reasoning_details":[{"type":"reasoning.text","text":"Optional","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" but","reasoning_details":[{"type":"reasoning.text","text":" but","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.text","text":" helpful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":")","reasoning_details":[{"type":"reasoning.text","text":")","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Add","reasoning_details":[{"type":"reasoning.text","text":" Add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" brief","reasoning_details":[{"type":"reasoning.text","text":" brief","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" explanation","reasoning_details":[{"type":"reasoning.text","text":" explanation","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.text","text":" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" alternative","reasoning_details":[{"type":"reasoning.text","text":" alternative","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be","reasoning_details":[{"type":"reasoning.text","text":" be","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" extra","reasoning_details":[{"type":"reasoning.text","text":" extra","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" polite","reasoning_details":[{"type":"reasoning.text","text":" polite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"/help","reasoning_details":[{"type":"reasoning.text","text":"/help","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ful","reasoning_details":[{"type":"reasoning.text","text":"ful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n","reasoning_details":[{"type":"reasoning.text","text":".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"4","reasoning_details":[{"type":"reasoning.text","text":"4","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Draft","reasoning_details":[{"type":"reasoning.text","text":"Draft","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ing","reasoning_details":[{"type":"reasoning.text","text":"ing","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" response","reasoning_details":[{"type":"reasoning.text","text":" response","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.text","text":":","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n","reasoning_details":[{"type":"reasoning.text","text":"**\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\"","reasoning_details":[{"type":"reasoning.text","text":"!\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Simple","reasoning_details":[{"type":"reasoning.text","text":"Simple","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"st","reasoning_details":[{"type":"reasoning.text","text":"st","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most","reasoning_details":[{"type":"reasoning.text","text":" most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" accurate","reasoning_details":[{"type":"reasoning.text","text":" accurate","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi","reasoning_details":[{"type":"reasoning.text","text":"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\")\n","reasoning_details":[{"type":"reasoning.text","text":"\")\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\"","reasoning_details":[{"type":"reasoning.text","text":"!\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Also","reasoning_details":[{"type":"reasoning.text","text":"Also","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very","reasoning_details":[{"type":"reasoning.text","text":" very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" good","reasoning_details":[{"type":"reasoning.text","text":" good","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":")\n\n","reasoning_details":[{"type":"reasoning.text","text":")\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"5","reasoning_details":[{"type":"reasoning.text","text":"5","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" **","reasoning_details":[{"type":"reasoning.text","text":" **","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Final","reasoning_details":[{"type":"reasoning.text","text":"Final","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Selection","reasoning_details":[{"type":"reasoning.text","text":" Selection","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":**","reasoning_details":[{"type":"reasoning.text","text":":**","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Just","reasoning_details":[{"type":"reasoning.text","text":" Just","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\"","reasoning_details":[{"type":"reasoning.text","text":"!\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.text","text":" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\"","reasoning_details":[{"type":"reasoning.text","text":"!\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" perfect","reasoning_details":[{"type":"reasoning.text","text":" perfect","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Let","reasoning_details":[{"type":"reasoning.text","text":" Let","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'s","reasoning_details":[{"type":"reasoning.text","text":"'s","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" go","reasoning_details":[{"type":"reasoning.text","text":" go","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\"","reasoning_details":[{"type":"reasoning.text","text":"!\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.text","text":" it","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" perfectly","reasoning_details":[{"type":"reasoning.text","text":" perfectly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" matches","reasoning_details":[{"type":"reasoning.text","text":" matches","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" casual","reasoning_details":[{"type":"reasoning.text","text":" casual","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ness","reasoning_details":[{"type":"reasoning.text","text":"ness","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of","reasoning_details":[{"type":"reasoning.text","text":" of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi","reasoning_details":[{"type":"reasoning.text","text":"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.text","text":"\".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Adding","reasoning_details":[{"type":"reasoning.text","text":" Adding","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!\"","reasoning_details":[{"type":"reasoning.text","text":"!\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" an","reasoning_details":[{"type":"reasoning.text","text":" an","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" alternative","reasoning_details":[{"type":"reasoning.text","text":" alternative","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" nice","reasoning_details":[{"type":"reasoning.text","text":" nice","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" touch","reasoning_details":[{"type":"reasoning.text","text":" touch","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n","reasoning_details":[{"type":"reasoning.text","text":".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" *","reasoning_details":[{"type":"reasoning.text","text":" *","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Draft","reasoning_details":[{"type":"reasoning.text","text":"Draft","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":*","reasoning_details":[{"type":"reasoning.text","text":":*","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" O","reasoning_details":[{"type":"reasoning.text","text":" O","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"i","reasoning_details":[{"type":"reasoning.text","text":"i","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.text","text":"!","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"or","reasoning_details":[{"type":"reasoning.text","text":"or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Ol","reasoning_details":[{"type":"reasoning.text","text":" Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!)","reasoning_details":[{"type":"reasoning.text","text":"!)","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"Oi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" \n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"(","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"You","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" can","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" also","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" say","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"á","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"**)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945444-6mrpNQeuPMLMds5JilDa","object":"chat.completion.chunk","created":1773945444,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":15,"completion_tokens":255,"total_tokens":270,"cost":0.000820416,"is_byok":false,"prompt_tokens_details":{"cached_tokens":13,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00102552,"upstream_inference_prompt_cost":0.00000552,"upstream_inference_completions_cost":0.00102},"completion_tokens_details":{"reasoning_tokens":240,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.771724167s diff --git a/providertests/testdata/TestOpenRouterCommon/glm/tool.yaml b/providertests/testdata/TestOpenRouterCommon/glm/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5490c3dbbd91ed7de87e12a53fff8841744709a0 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/glm/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 483 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945449-sZksq50wfVIXe94WMejJ\",\"object\":\"chat.completion\",\"created\":1773945449,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user wants to know the weather in Florence, Italy. Let me call the weather function.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_3f8ba8d964264042b99c0403\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user wants to know the weather in Florence, Italy. Let me call the weather function.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":173,\"completion_tokens\":33,\"total_tokens\":206,\"cost\":0.000239424,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":42,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00029928,\"upstream_inference_prompt_cost\":0.00016728,\"upstream_inference_completions_cost\":0.000132},\"completion_tokens_details\":{\"reasoning_tokens\":19,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 2.0582665s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 910 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_3f8ba8d964264042b99c0403","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user wants to know the weather in Florence, Italy. Let me call the weather function.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_3f8ba8d964264042b99c0403","role":"tool"}],"model":"z-ai/glm-5-turbo","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n{\"id\":\"gen-1773945451-gwPNpv4Y8nMTdoaUTRjx\",\"object\":\"chat.completion\",\"created\":1773945451,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in **Florence, Italy** is quite scorching at **40°C (104°F)**! \U0001F321️\\n\\nIt's extremely hot, so if you're planning to be outdoors, be sure to:\\n\\n- \U0001F4A7 Stay hydrated\\n- \U0001F9F4 Wear sunscreen\\n- \U0001F9E2 Wear a hat and light clothing\\n- \U0001F333 Seek shade when possible\\n\\nWould you like to know the weather for any other locations?\",\"refusal\":null,\"reasoning\":\"The weather function returned 40°C for Florence, Italy. That's quite hot! Let me present this to the user.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The weather function returned 40°C for Florence, Italy. That's quite hot! Let me present this to the user.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":212,\"completion_tokens\":119,\"total_tokens\":331,\"cost\":0.000452224,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":172,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00056528,\"upstream_inference_prompt_cost\":0.00008928,\"upstream_inference_completions_cost\":0.000476},\"completion_tokens_details\":{\"reasoning_tokens\":25,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.225640375s diff --git a/providertests/testdata/TestOpenRouterCommon/glm/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/glm/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..06edc8ebe6b4b5ed61f00ecce71a0e7037403a5c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/glm/tool_streaming.yaml @@ -0,0 +1,133 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 537 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"z-ai/glm-5-turbo","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wants","reasoning_details":[{"type":"reasoning.text","text":" wants","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" know","reasoning_details":[{"type":"reasoning.text","text":" know","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'ll","reasoning_details":[{"type":"reasoning.text","text":"'ll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.text","text":" call","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Flo","reasoning_details":[{"type":"reasoning.text","text":"Flo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"rence","reasoning_details":[{"type":"reasoning.text","text":"rence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Italy","reasoning_details":[{"type":"reasoning.text","text":"Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_4869f96c06ba414abebb0105","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945452-uLccYSGzmmmuJbJ2PehO","object":"chat.completion.chunk","created":1773945452,"model":"z-ai/glm-5-turbo-20260315","provider":"Z.AI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":173,"completion_tokens":43,"total_tokens":216,"cost":0.000172352,"is_byok":false,"prompt_tokens_details":{"cached_tokens":171,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00021544,"upstream_inference_prompt_cost":0.00004344,"upstream_inference_completions_cost":0.000172},"completion_tokens_details":{"reasoning_tokens":29,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 889.738542ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 998 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_4869f96c06ba414abebb0105","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user wants to know the weather in Florence, Italy. I''ll call the weather function with \"Florence,Italy\" as the location.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_4869f96c06ba414abebb0105","role":"tool"}],"model":"z-ai/glm-5-turbo","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: ": OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"The\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" function\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" function\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" returned\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" returned\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" \\\"\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" \\\"\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"40\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"40\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" C\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" C\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"\\\"\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"\\\"\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" which\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" which\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" is\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" is\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" \",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" \",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"40\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"40\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" degrees\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" degrees\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" Celsius\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" Celsius\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\".\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" That\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" That\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"'s\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"'s\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" very\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" very\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" hot\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" hot\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"!\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"!\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" Let\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" Let\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" me\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" me\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" present\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" present\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" this\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" this\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" to\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" to\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" the\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" the\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" user\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\" user\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\".\",\"format\":\"unknown\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"The\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" current\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" weather\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" in\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" **\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Flo\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"rence\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\",\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" Italy\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"**\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" is\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" **\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"40\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"°C\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"**\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" (\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"104\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"°F\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\").\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" That\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"'s\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" extremely\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" hot\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"!\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"☀\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"️\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\U0001F975\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \\n\\n\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Be\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" sure\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" to\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" stay\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" hydrated\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\",\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" wear\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" sunscreen\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\",\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" and\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" try\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" to\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" avoid\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" prolonged\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" exposure\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" to\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" the\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" sun\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" if\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" you\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"'re\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" out\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" and\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" about\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\".\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" Let\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" me\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" know\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" if\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" you\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" need\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" anything\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" else\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"!\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":null},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}]}\n\ndata: {\"id\":\"gen-1773945453-TTSSGd9gQD8dfgFRRTQN\",\"object\":\"chat.completion.chunk\",\"created\":1773945453,\"model\":\"z-ai/glm-5-turbo-20260315\",\"provider\":\"Z.AI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":221,\"completion_tokens\":94,\"total_tokens\":315,\"cost\":0.000380864,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":172,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00047608,\"upstream_inference_prompt_cost\":0.00010008,\"upstream_inference_completions_cost\":0.000376},\"completion_tokens_details\":{\"reasoning_tokens\":27,\"image_tokens\":0,\"audio_tokens\":0}}}\n\ndata: [DONE]\n\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.377012959s diff --git a/providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool.yaml deleted file mode 100644 index 5baa4f2cde82995e7305b4d9a4951d217f46af62..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 853 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323924-57QbnghbXm2GvzEpqDiv\",\"object\":\"chat.completion\",\"created\":1773323924,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Calculating sum and product**\\n\\nI need to respond to the user's request to add and multiply the numbers 2 and 3. The instructions clearly state that I should use both operations simultaneously, so I’ll utilize the multi_tool_use.parallel function. I’ll run the add tool with parameters {a: 2, b: 3} and the multiply tool with the same parameters. Once I get the results, I can present them concisely, saying “Sum: 5; Product: 6.”**Using parallel functions**\\n\\nI need to follow the instruction to always use both addition and multiplication at the same time. So, I'll use the parallel tool to ensure I'm running both operations together. It’s essential to stick to this guideline to provide what’s needed efficiently. Let me get that working correctly right away! This way, I can deliver the accurate results for the user's request seamlessly.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_hxZ5lngdot9y8AfQa3spor2J\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_FfAnNULynr6w23E2ptBJNI0F\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Calculating sum and product**\\n\\nI need to respond to the user's request to add and multiply the numbers 2 and 3. The instructions clearly state that I should use both operations simultaneously, so I’ll utilize the multi_tool_use.parallel function. I’ll run the add tool with parameters {a: 2, b: 3} and the multiply tool with the same parameters. Once I get the results, I can present them concisely, saying “Sum: 5; Product: 6.”**Using parallel functions**\\n\\nI need to follow the instruction to always use both addition and multiplication at the same time. So, I'll use the parallel tool to ensure I'm running both operations together. It’s essential to stick to this guideline to provide what’s needed efficiently. Let me get that working correctly right away! This way, I can deliver the accurate results for the user's request seamlessly.\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpssagkg5555BU8eWgG1B8tAi6UUzyAFkqDnJ-cnFqHhRmc2bzWuxec_8gFNw9WN3zAMM3jh1X_2iQgKVJ0JT1DMhGpYN31kr_kyzX6dAWM6OPkg4vLu2c_6j949t0KIvhMbt1ZWLp0Ny9rm8Fh4YZ-H3b38WK-Q_F5NITjM4TyaOA-JJWoWmYboD_kC4jmeyh47liqSK5eqomZEnuqlsr-pP4OSnuzotBO5mwD0odd1W7fc7iYvFBfXhCu1jirCoipPRXHX-aTXpH5jy8B7SAekt3qTcvgXZUGjotrYFcP971vV1BQRgGbdgN6yM83qcpAHJQO8tdLu6EkZvXfnukmTPw52JTRihsRnHPkUxFMsl742P7xs8A73lhCFq-XUOZzxZmTiMmAq0PS3EZuePAEYGq3rq0fJap9jIQB2KKcNxUNP-TT2yylBlByi1Ac1oSGdwD7dIwtX9C3Z0XHGeNv3cnYwcBzQHy2ko0uPmeD6p11rSZloZvxL-JzI7BYcGdFD_h946Dfwsfx2GLLRI3jzfF5n1NTzrUKulUyTusiESH0l6Gzu45xnKfa4PGBMV-kHEikv54yFl1CYUcciiva03E3IhsuLg0hWuT9mqXOJw30LU5E89B4KE1_n6n93eFo24gy3Y0Az90J3BLgXmlkwOsKlfSFrXwcODKEwoGTRVKS6qsLlBq7HvM-kDvfrJP64T2cUaPPD-5JOaOTeCChXTWDhOLWurvEcA3LIhL0ltZtaCW7OQwdCrBt1cSkvRqytAmN6QsAQYnrgrXaN-vm3ElKQPgLDcar03GBJhG1dL1-kLXp6INGfpDXsyMVV8hj0wYEEcQdOOQ4qAWRAA1c535WZNwx2EYCMKXX3Mx-H-xh6PEdnyAXgNMpWfUT0QHbEsUAd18CtkDsvz54kUyIps-msInHxQca0BwFN5ly8i0NCO51BlgMffx-LHbgfVkUvNF36kHiB0ueu-16KcP1d4u0aXH3IPJOBlI2A6s0EpUXO3zUFqDPd4T5j0X6j_cO4qopFWUd4KOZQyHoqQUcc0n1HuTIpP_kg0IqSt4WKagevkrFA0_kA3hWSnkgeWsurV412o6pUUffPR6fQ1GnvD1ZzNWARwZViWkzxahrfNIxfbwWnjVn27j3PLuqgExNGn9zfTNF1o3veIR_9OlUGet5f7sHBHRrw9Erw9GZtSoUs6OzlAYjOe6F03FxbNSz858FhjuChK8Qfhicy2jBmqTQ864bofMqLjMKd49tM19rLffSZkYSuP4sO_RNX1y5sah3ln09UkHucyu06UXI7sA3qcIobBQ_QgEBKn-_Z84tDH2F6K8lUOl49eV1C3Y3kquOI1jpD9SICXB4dhWsDSyNeMC24uiOOrf6de7zIBIRxw8H_Z8S9TrWJu8H7bc-ndkJHpMIc9Ywjz14HRjP-gBLyRnQxoawVZ68WWiL1Gj_6I_XLNw4BPvUYa2gBD0uToOwFCef3j_bWaZ6PMHo1qtIflQnxbws1UX4_mUh54CBq1damKvymlWJkqzmQggoD7JH-ym8fPoDCdDei8YfN4JVvLW16IuWJz_x_mAP5NcgPM8-P8caClDxQB1WHs4tKSURliL7-n6QKew_yAeOrav2PkscUHIOS0L8LEswSDtd2n92RfGbe9rSh7ct6s4bi9u1O2H5M3X0foTNtiamkFGii4N4jnQUxwF0-7xtdFUXQXOoiq-PVh3DFTy2BF75c6RjUeO1vBsZ6HE-HE_jQVnK7cefq6vw--ot4c0-QTY239_CUm5nSMZfzQHuaWs6NqCtkx9fWzstpFrZSr-hxHMUiaK7jlT9fO0GN-y6FuXL8D2SINANFs1ViSioYVskb5jgCOF_rvjHwRAx4uaJNP0ZevLdTCOzYIKVu67U2paHm7yEc6_YSVEGPmCErbDNnHU66PHoGc9uCPjpZgmNlwKVDS-tWQDcdfxpECy_bNmI2djLM6sanc2Xh-7S9fuP_jI9ShpGQLILIGIqItlIBxJLXn2Qm8IZpaMKQYdFLbA9D6NlGKSlIy4sxu073LcXrUVmIxTlfliUAuGP0E9I4xPXfmG8uK9628ysvvEMZzZIkyNPtCMsvbFWbmCjB5HAHgHCCsgP0NJaei44uFhmyYRhEvogsODUgv0eYS1N57bXKhVe0Gi6XATtk8XFGPmGJUNDS0yJ60VNV_xUr3vSdT5_Hl5DQCizA3WtVXIVs3gYJIA1CJQEfP8nvlN2JrODCOz\",\"format\":\"openai-responses-v1\",\"id\":\"rs_06113a4c35b40b110169b2c694f7608195bbc8eb5427d84429\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":113,\"completion_tokens\":286,\"total_tokens\":399,\"cost\":0.00300125,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00300125,\"upstream_inference_prompt_cost\":0.00014125,\"upstream_inference_completions_cost\":0.00286},\"completion_tokens_details\":{\"reasoning_tokens\":192,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 525.318167ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 3695 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_hxZ5lngdot9y8AfQa3spor2J","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_FfAnNULynr6w23E2ptBJNI0F","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"gAAAAABpssagkg5555BU8eWgG1B8tAi6UUzyAFkqDnJ-cnFqHhRmc2bzWuxec_8gFNw9WN3zAMM3jh1X_2iQgKVJ0JT1DMhGpYN31kr_kyzX6dAWM6OPkg4vLu2c_6j949t0KIvhMbt1ZWLp0Ny9rm8Fh4YZ-H3b38WK-Q_F5NITjM4TyaOA-JJWoWmYboD_kC4jmeyh47liqSK5eqomZEnuqlsr-pP4OSnuzotBO5mwD0odd1W7fc7iYvFBfXhCu1jirCoipPRXHX-aTXpH5jy8B7SAekt3qTcvgXZUGjotrYFcP971vV1BQRgGbdgN6yM83qcpAHJQO8tdLu6EkZvXfnukmTPw52JTRihsRnHPkUxFMsl742P7xs8A73lhCFq-XUOZzxZmTiMmAq0PS3EZuePAEYGq3rq0fJap9jIQB2KKcNxUNP-TT2yylBlByi1Ac1oSGdwD7dIwtX9C3Z0XHGeNv3cnYwcBzQHy2ko0uPmeD6p11rSZloZvxL-JzI7BYcGdFD_h946Dfwsfx2GLLRI3jzfF5n1NTzrUKulUyTusiESH0l6Gzu45xnKfa4PGBMV-kHEikv54yFl1CYUcciiva03E3IhsuLg0hWuT9mqXOJw30LU5E89B4KE1_n6n93eFo24gy3Y0Az90J3BLgXmlkwOsKlfSFrXwcODKEwoGTRVKS6qsLlBq7HvM-kDvfrJP64T2cUaPPD-5JOaOTeCChXTWDhOLWurvEcA3LIhL0ltZtaCW7OQwdCrBt1cSkvRqytAmN6QsAQYnrgrXaN-vm3ElKQPgLDcar03GBJhG1dL1-kLXp6INGfpDXsyMVV8hj0wYEEcQdOOQ4qAWRAA1c535WZNwx2EYCMKXX3Mx-H-xh6PEdnyAXgNMpWfUT0QHbEsUAd18CtkDsvz54kUyIps-msInHxQca0BwFN5ly8i0NCO51BlgMffx-LHbgfVkUvNF36kHiB0ueu-16KcP1d4u0aXH3IPJOBlI2A6s0EpUXO3zUFqDPd4T5j0X6j_cO4qopFWUd4KOZQyHoqQUcc0n1HuTIpP_kg0IqSt4WKagevkrFA0_kA3hWSnkgeWsurV412o6pUUffPR6fQ1GnvD1ZzNWARwZViWkzxahrfNIxfbwWnjVn27j3PLuqgExNGn9zfTNF1o3veIR_9OlUGet5f7sHBHRrw9Erw9GZtSoUs6OzlAYjOe6F03FxbNSz858FhjuChK8Qfhicy2jBmqTQ864bofMqLjMKd49tM19rLffSZkYSuP4sO_RNX1y5sah3ln09UkHucyu06UXI7sA3qcIobBQ_QgEBKn-_Z84tDH2F6K8lUOl49eV1C3Y3kquOI1jpD9SICXB4dhWsDSyNeMC24uiOOrf6de7zIBIRxw8H_Z8S9TrWJu8H7bc-ndkJHpMIc9Ywjz14HRjP-gBLyRnQxoawVZ68WWiL1Gj_6I_XLNw4BPvUYa2gBD0uToOwFCef3j_bWaZ6PMHo1qtIflQnxbws1UX4_mUh54CBq1damKvymlWJkqzmQggoD7JH-ym8fPoDCdDei8YfN4JVvLW16IuWJz_x_mAP5NcgPM8-P8caClDxQB1WHs4tKSURliL7-n6QKew_yAeOrav2PkscUHIOS0L8LEswSDtd2n92RfGbe9rSh7ct6s4bi9u1O2H5M3X0foTNtiamkFGii4N4jnQUxwF0-7xtdFUXQXOoiq-PVh3DFTy2BF75c6RjUeO1vBsZ6HE-HE_jQVnK7cefq6vw--ot4c0-QTY239_CUm5nSMZfzQHuaWs6NqCtkx9fWzstpFrZSr-hxHMUiaK7jlT9fO0GN-y6FuXL8D2SINANFs1ViSioYVskb5jgCOF_rvjHwRAx4uaJNP0ZevLdTCOzYIKVu67U2paHm7yEc6_YSVEGPmCErbDNnHU66PHoGc9uCPjpZgmNlwKVDS-tWQDcdfxpECy_bNmI2djLM6sanc2Xh-7S9fuP_jI9ShpGQLILIGIqItlIBxJLXn2Qm8IZpaMKQYdFLbA9D6NlGKSlIy4sxu073LcXrUVmIxTlfliUAuGP0E9I4xPXfmG8uK9628ysvvEMZzZIkyNPtCMsvbFWbmCjB5HAHgHCCsgP0NJaei44uFhmyYRhEvogsODUgv0eYS1N57bXKhVe0Gi6XATtk8XFGPmGJUNDS0yJ60VNV_xUr3vSdT5_Hl5DQCizA3WtVXIVs3gYJIA1CJQEfP8nvlN2JrODCOz","format":"openai-responses-v1","id":"rs_06113a4c35b40b110169b2c694f7608195bbc8eb5427d84429","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"call_hxZ5lngdot9y8AfQa3spor2J","role":"tool"},{"content":"6","tool_call_id":"call_FfAnNULynr6w23E2ptBJNI0F","role":"tool"}],"model":"openai/gpt-5","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n{\"id\":\"gen-1773323936-i11BOHKBlXfxaR0ey9BE\",\"object\":\"chat.completion\",\"created\":1773323936,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Sum: 5\\nProduct: 6\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":403,\"completion_tokens\":13,\"total_tokens\":416,\"cost\":0.00063375,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00063375,\"upstream_inference_prompt_cost\":0.00050375,\"upstream_inference_completions_cost\":0.00013},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 445.651292ms diff --git a/providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool_streaming.yaml deleted file mode 100644 index 71136e8a0fbd780dba1fbf8835f306372ff37293..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gpt-5/multi_tool_streaming.yaml +++ /dev/null @@ -1,261 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 890 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"I'm","reasoning_details":[{"type":"reasoning.summary","summary":"I'm","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" thinking","reasoning_details":[{"type":"reasoning.summary","summary":" thinking","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.summary","summary":" that","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.summary","summary":" need","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.summary","summary":" provide","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.summary","summary":" both","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calls","reasoning_details":[{"type":"reasoning.summary","summary":" calls","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" structured","reasoning_details":[{"type":"reasoning.summary","summary":" structured","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" manner","reasoning_details":[{"type":"reasoning.summary","summary":" manner","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.summary","summary":" should","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" '","reasoning_details":[{"type":"reasoning.summary","summary":" '","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"comment","reasoning_details":[{"type":"reasoning.summary","summary":"comment","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ary","reasoning_details":[{"type":"reasoning.summary","summary":"ary","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"'","reasoning_details":[{"type":"reasoning.summary","summary":"'","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" channel","reasoning_details":[{"type":"reasoning.summary","summary":" channel","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calls","reasoning_details":[{"type":"reasoning.summary","summary":" calls","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" making","reasoning_details":[{"type":"reasoning.summary","summary":" making","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" sure","reasoning_details":[{"type":"reasoning.summary","summary":" sure","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" keep","reasoning_details":[{"type":"reasoning.summary","summary":" keep","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" everything","reasoning_details":[{"type":"reasoning.summary","summary":" everything","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clear","reasoning_details":[{"type":"reasoning.summary","summary":" clear","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" organized","reasoning_details":[{"type":"reasoning.summary","summary":" organized","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" After","reasoning_details":[{"type":"reasoning.summary","summary":" After","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" receive","reasoning_details":[{"type":"reasoning.summary","summary":" receive","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" responses","reasoning_details":[{"type":"reasoning.summary","summary":" responses","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I'll","reasoning_details":[{"type":"reasoning.summary","summary":" I'll","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" proceed","reasoning_details":[{"type":"reasoning.summary","summary":" proceed","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" give","reasoning_details":[{"type":"reasoning.summary","summary":" give","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" final","reasoning_details":[{"type":"reasoning.summary","summary":" final","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" output","reasoning_details":[{"type":"reasoning.summary","summary":" output","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" based","reasoning_details":[{"type":"reasoning.summary","summary":" based","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" on","reasoning_details":[{"type":"reasoning.summary","summary":" on","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.summary","summary":" that","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.summary","summary":" information","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" It","reasoning_details":[{"type":"reasoning.summary","summary":" It","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" seems","reasoning_details":[{"type":"reasoning.summary","summary":" seems","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" straightforward","reasoning_details":[{"type":"reasoning.summary","summary":" straightforward","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" but","reasoning_details":[{"type":"reasoning.summary","summary":" but","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" want","reasoning_details":[{"type":"reasoning.summary","summary":" want","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ensure","reasoning_details":[{"type":"reasoning.summary","summary":" ensure","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I'm","reasoning_details":[{"type":"reasoning.summary","summary":" I'm","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" being","reasoning_details":[{"type":"reasoning.summary","summary":" being","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" thorough","reasoning_details":[{"type":"reasoning.summary","summary":" thorough","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" accurate","reasoning_details":[{"type":"reasoning.summary","summary":" accurate","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" throughout","reasoning_details":[{"type":"reasoning.summary","summary":" throughout","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" process","reasoning_details":[{"type":"reasoning.summary","summary":" process","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.summary","summary":"!","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Let's","reasoning_details":[{"type":"reasoning.summary","summary":" Let's","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" move","reasoning_details":[{"type":"reasoning.summary","summary":" move","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" forward","reasoning_details":[{"type":"reasoning.summary","summary":" forward","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.summary","summary":"!","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABpssaoFNIlKEiZyENgHTOHPXHq383nE0KXHYhMv4F2lpE6JPq0EpU1UjvxSzZSKN8P4F4pOdkHxMuaarDe8eJ_6yeYfFdLq91dF5YCLVloeBfNHmc7OAvWyW2HdtiiXBKpLMIXG3mykfd2U4HsWrNgwm_Eze4Uv56CBCJjv1JX_ghxrWcqgzf_l2PxApxdqouxqiE0kM1ecEmyOe3dqjcYll2VJ6YnHDKd8ZtLvoFQhk_jJJ5mzHRdJcqKq8MXlSwxZgE08FHOrp8zX8l95WYqhhcsHhr43TlRrY3UlXpy1COfSzK2vtcw3OOpSvODqIsefwNhh_bEmaoVH2gEkGI4sy40WeFGAGI6LmDrhV1sdBNHcK4CO9LHuU6Fs1ikFzHpy__SrG5LGPEQNpeCV94HQQNyFrF1I6FnHm9Bs8yyFnyhUUAU6f-o25ndeE0ac8HL5qnbUc4kOAsLWqAwJrOJGn7IH1zy6bETbAFod6nLDlRmfvVRtJ4kkBdSMB8wTD7ypaD_f-G2OXnoSOpWh5FEUZuq7PgmawI9ZfAFPqCc737lCVVylyMsqmQswolV65_7qZeCYzSTAoJd60-6B3BqHQKSTocIzf-gsiLqBKCcAYImtgfivmu72l_22hvYMQygfdoJ_tDqWo1VNAPSUfOOPsR4O4V1KRUJA7R9H90xye9hONhVcdY1llUU45jmkjjR0jwBSk-s3B--ydlpesOMP5hGctDtTNvtkNeTM_0frrwbCmaSSPXMbRFv0kLsk_iePAVmoS2GOPktA2n0wQ6tcQ62rl29YZa7aRIFErUOnqBYpgZOum1xH_3tVKpG0lqBWrkVr7Zv1VsZohxQyltTwKWZrJ-2gMiYOOCRRYNO_d5KMNqOrRoyiw7_nnZDVeZoT7LKI6GnhjIbjRCMj0KCCQtApwirVulPaZCWynUxzP_Kef3-Jo0IQNoaiL5UXYkv6qcYYBScZlhS5FdKsTuyHlEjzITHVnqVbG1Zgmc7hsHCH0QwS2vkHlCkUM8dB0SvqAb-im0jN9jSsMT2hBXKQ9oZb5YK1paxN2b6Iz8lmRb5x8ZJQCQvu68b4q-jos-BiOqOqMRJIEP0t8joJTvFyM0ay4rPu2c3scKTDxk0tDRFMVpI9FLf7v-fBZdma8vy5uhXI3xzRpv5LwKbbyRycsFHbh-mebe0bZhxke1sMx4vpffFot-uiQKn1WUoGQiDcXviOqloTq07MpjOh8waCJCFdKd-t-1N1pDECCVirElSvGX2-ZzRHlvbX-yS0F6pqdOkcC-SMCi-YdiEA0VwM0wZnNYzoAWQFH37BB_cR6_J-Za1QQP5bh0dj2ljAOeCE06y3d8YS0peEeC2wAdIK4NfUz4xmGmJX3soxcMfLAUb0BDuXJuaLq-MxKfzp28NZZ2wDHMWTGJ_dbe3Rhrlf9tDCnQgiiHuGhDa01JfNJt2PNdzhxD4bsvjGxkeQZoLDSDZ2CE7HBsc_XuNHvg_dhQJr1Zh13oPpNKc_I_yD6-2A6dY-TPDcZFHusHnrMqeWB0BVEIJDyNf6XD_ETO-BEqIQZuTVETJPp5g-HEhW-5IgZJmsRBs4e6UhjA7lvfrr7GoGQFnkYoM84Ryo8fBKNVF3MGGDxhmonVRXbwiBGiB2v8k1BrLagjO-HXFL3vGRAwBVYB0FnytVNnKnTyWe7FsArPsNjh2pExVvrwrYQuwatiKDk6rVFUhZGsgUUjVl4IA5TIw5NXxJb7E107zgHPv4hKvK4I2EeA7ZzsKle7EoS4Dmnj0-H-TNWfZ_r-oHziY2J1U5XiGRCXq1NJ_al7ZNcUe1zwnFFhGXg4qLz78bSuOenjAoFZfG03SLX2dFNEzgW4fMTLbyy7161wxAjiEf01wqL2KfKLD33ql33BeAGdV0U5pjrNmayuwJez6FmJcdxEnkusL5DDMSuBe4PSRicTRWW4RK5ig3nFlziIL5Lcar_Xv_AVMt-xlbosiB7aCzo29-6nNTfUIVgayQYL-x6PBugqtsaM2mn46QS73kaXamrbEkHI9FTL-Tlv-UFAYUkefrwHMEwy8V6RzBJdPC4cGL9YwonBSRRsMQWMOlhLYE1WjNDeaZYLtMJEJXhHGmELamUf-cwOtvWJi715RdWrdJXoXMt6ZhhoGlM7JtURZK5ccLFmk7PswQ0yy2uX-iKYgM9P4XfuYba0ntNhfYJ-Pdj9gxnh0sK7z1JlhEHy-b6E08R3gkse4e0njgXGkX4kpW-cwPkDpFnzaYOUQnkbJywlaoXgeea7vOWj9enGrbxX6K6tdemckUBuu9HTKNQfAXxEAMoM3Yi3l6aRi6w==","format":"openai-responses-v1","id":"rs_0dc8a771bc4d29200169b2c6a26a248195aafcaec10e972cd4","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_FS6r3jejWrnsF9udNRMPiyfM","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_Rlgo1THqC0e9mGnzP18pESCO","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323937-Uf9ExvZNih6kX1J3x2jT","object":"chat.completion.chunk","created":1773323937,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":109,"completion_tokens":306,"total_tokens":415,"cost":0.00319625,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00319625,"upstream_inference_prompt_cost":0.00013625,"upstream_inference_completions_cost":0.00306},"completion_tokens_details":{"reasoning_tokens":192,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 417.723833ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 4305 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_FS6r3jejWrnsF9udNRMPiyfM","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_Rlgo1THqC0e9mGnzP18pESCO","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"openai-responses-v1","index":0,"summary":"I''m thinking that I need to provide both calls in a structured manner. I should use the ''commentary'' channel for the tool calls, making sure to keep everything clear and organized. After I receive the tool responses, I''ll proceed to give a final output based on that information. It seems straightforward, but I want to ensure I''m being thorough and accurate throughout the process! Let''s move forward!","type":"reasoning.summary"},{"data":"gAAAAABpssaoFNIlKEiZyENgHTOHPXHq383nE0KXHYhMv4F2lpE6JPq0EpU1UjvxSzZSKN8P4F4pOdkHxMuaarDe8eJ_6yeYfFdLq91dF5YCLVloeBfNHmc7OAvWyW2HdtiiXBKpLMIXG3mykfd2U4HsWrNgwm_Eze4Uv56CBCJjv1JX_ghxrWcqgzf_l2PxApxdqouxqiE0kM1ecEmyOe3dqjcYll2VJ6YnHDKd8ZtLvoFQhk_jJJ5mzHRdJcqKq8MXlSwxZgE08FHOrp8zX8l95WYqhhcsHhr43TlRrY3UlXpy1COfSzK2vtcw3OOpSvODqIsefwNhh_bEmaoVH2gEkGI4sy40WeFGAGI6LmDrhV1sdBNHcK4CO9LHuU6Fs1ikFzHpy__SrG5LGPEQNpeCV94HQQNyFrF1I6FnHm9Bs8yyFnyhUUAU6f-o25ndeE0ac8HL5qnbUc4kOAsLWqAwJrOJGn7IH1zy6bETbAFod6nLDlRmfvVRtJ4kkBdSMB8wTD7ypaD_f-G2OXnoSOpWh5FEUZuq7PgmawI9ZfAFPqCc737lCVVylyMsqmQswolV65_7qZeCYzSTAoJd60-6B3BqHQKSTocIzf-gsiLqBKCcAYImtgfivmu72l_22hvYMQygfdoJ_tDqWo1VNAPSUfOOPsR4O4V1KRUJA7R9H90xye9hONhVcdY1llUU45jmkjjR0jwBSk-s3B--ydlpesOMP5hGctDtTNvtkNeTM_0frrwbCmaSSPXMbRFv0kLsk_iePAVmoS2GOPktA2n0wQ6tcQ62rl29YZa7aRIFErUOnqBYpgZOum1xH_3tVKpG0lqBWrkVr7Zv1VsZohxQyltTwKWZrJ-2gMiYOOCRRYNO_d5KMNqOrRoyiw7_nnZDVeZoT7LKI6GnhjIbjRCMj0KCCQtApwirVulPaZCWynUxzP_Kef3-Jo0IQNoaiL5UXYkv6qcYYBScZlhS5FdKsTuyHlEjzITHVnqVbG1Zgmc7hsHCH0QwS2vkHlCkUM8dB0SvqAb-im0jN9jSsMT2hBXKQ9oZb5YK1paxN2b6Iz8lmRb5x8ZJQCQvu68b4q-jos-BiOqOqMRJIEP0t8joJTvFyM0ay4rPu2c3scKTDxk0tDRFMVpI9FLf7v-fBZdma8vy5uhXI3xzRpv5LwKbbyRycsFHbh-mebe0bZhxke1sMx4vpffFot-uiQKn1WUoGQiDcXviOqloTq07MpjOh8waCJCFdKd-t-1N1pDECCVirElSvGX2-ZzRHlvbX-yS0F6pqdOkcC-SMCi-YdiEA0VwM0wZnNYzoAWQFH37BB_cR6_J-Za1QQP5bh0dj2ljAOeCE06y3d8YS0peEeC2wAdIK4NfUz4xmGmJX3soxcMfLAUb0BDuXJuaLq-MxKfzp28NZZ2wDHMWTGJ_dbe3Rhrlf9tDCnQgiiHuGhDa01JfNJt2PNdzhxD4bsvjGxkeQZoLDSDZ2CE7HBsc_XuNHvg_dhQJr1Zh13oPpNKc_I_yD6-2A6dY-TPDcZFHusHnrMqeWB0BVEIJDyNf6XD_ETO-BEqIQZuTVETJPp5g-HEhW-5IgZJmsRBs4e6UhjA7lvfrr7GoGQFnkYoM84Ryo8fBKNVF3MGGDxhmonVRXbwiBGiB2v8k1BrLagjO-HXFL3vGRAwBVYB0FnytVNnKnTyWe7FsArPsNjh2pExVvrwrYQuwatiKDk6rVFUhZGsgUUjVl4IA5TIw5NXxJb7E107zgHPv4hKvK4I2EeA7ZzsKle7EoS4Dmnj0-H-TNWfZ_r-oHziY2J1U5XiGRCXq1NJ_al7ZNcUe1zwnFFhGXg4qLz78bSuOenjAoFZfG03SLX2dFNEzgW4fMTLbyy7161wxAjiEf01wqL2KfKLD33ql33BeAGdV0U5pjrNmayuwJez6FmJcdxEnkusL5DDMSuBe4PSRicTRWW4RK5ig3nFlziIL5Lcar_Xv_AVMt-xlbosiB7aCzo29-6nNTfUIVgayQYL-x6PBugqtsaM2mn46QS73kaXamrbEkHI9FTL-Tlv-UFAYUkefrwHMEwy8V6RzBJdPC4cGL9YwonBSRRsMQWMOlhLYE1WjNDeaZYLtMJEJXhHGmELamUf-cwOtvWJi715RdWrdJXoXMt6ZhhoGlM7JtURZK5ccLFmk7PswQ0yy2uX-iKYgM9P4XfuYba0ntNhfYJ-Pdj9gxnh0sK7z1JlhEHy-b6E08R3gkse4e0njgXGkX4kpW-cwPkDpFnzaYOUQnkbJywlaoXgeea7vOWj9enGrbxX6K6tdemckUBuu9HTKNQfAXxEAMoM3Yi3l6aRi6w==","format":"openai-responses-v1","id":"rs_0dc8a771bc4d29200169b2c6a26a248195aafcaec10e972cd4","index":0,"type":"reasoning.encrypted"}]},{"content":"5","tool_call_id":"call_FS6r3jejWrnsF9udNRMPiyfM","role":"tool"},{"content":"6","tool_call_id":"call_Rlgo1THqC0e9mGnzP18pESCO","role":"tool"}],"model":"openai/gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"Sum","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":":","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"Product","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":":","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323944-nayzP6jtcNruMtsoftEW","object":"chat.completion.chunk","created":1773323944,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":419,"completion_tokens":13,"total_tokens":432,"cost":0.00065375,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00065375,"upstream_inference_prompt_cost":0.00052375,"upstream_inference_completions_cost":0.00013},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 461.073125ms diff --git a/providertests/testdata/TestOpenRouterCommon/gpt-5/simple.yaml b/providertests/testdata/TestOpenRouterCommon/gpt-5/simple.yaml deleted file mode 100644 index 7d8847ba499487adc677d6235d76220d51c276c9..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gpt-5/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 198 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323600-awq6lubEG3tK29VIkL3s\",\"object\":\"chat.completion\",\"created\":1773323600,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá!\",\"refusal\":null,\"reasoning\":\"**Responding in Portuguese**\\n\\nThe user simply asked me to say hi in Portuguese, so I think the best response is \\\"Olá!\\\" I could also add \\\"Oi!\\\" as a more informal option, but since the request was straightforward, I'll stick to \\\"Olá!\\\" to keep it concise. I want to make sure there's no heavy formatting, just a simple greeting. So, I’ll go with \\\"Olá!\\\" as my final answer.\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Responding in Portuguese**\\n\\nThe user simply asked me to say hi in Portuguese, so I think the best response is \\\"Olá!\\\" I could also add \\\"Oi!\\\" as a more informal option, but since the request was straightforward, I'll stick to \\\"Olá!\\\" to keep it concise. I want to make sure there's no heavy formatting, just a simple greeting. So, I’ll go with \\\"Olá!\\\" as my final answer.\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpssVT43b81-E6eaCubaAeFehL0rKD79C0SUicenKmTFXsOxNtLHayLnxEKx9nE8JigUY10ihErZBmdf__vn9qI6RCP2kFdA27XXX6UTeWrYUiiDdcPOkL21sblG0HUCYS9nObSELuhv4GBTG0kYqIyP66nLFlu4EDcWGj5vUIPs9pbss6elkOBW-rwpNpyAN_cBQbWHkbJrOdZF_gtEYUaVfUR9I9w4PofBZoHYGu0kVi7H0oY5PCRN_9u_FgzhLZdBn49UXEtMeeT3AsYEZRpTl-05sYzJlWmSTZoTYYu-Xs8YzAnlz2cAscU_B0ZHrkH18qiQRs57kUAnwDxCIQ6dmpqwDjuK5cytdAZDmuYGt_lYJZ_Pf3jkWqbts1fcF17u0R-Bb6cGuwp5f38BfNkkv227CDWTMxrXCN4IBI8o2QFXF7GUXnFSePSMKXbufi9CBBAoMADf9uvO7xYLkFGRlKlyE-AotC1iis9AX7zwIlQYbdPenks0Pv-fhfTCsQE1BodXmnzdBVqpdnCBaLj19KavUZT2PO3PFsSvsNpLhxPKz4LtmRBh62pkD3A6co8-c70498DEv4nPihCqns48O-OPks0Xii0-gH87njjAT47J6jbZ7WOOcbruzetE1h_3jSI_6Okc6oDx3RFW2oi1lm11m8CF2uKxGCmUFBRgDjiDYlbtU2WexopkvTUe32zn97ThJALdZfPjLMUGobGm1ZrXO68i1-1CrG6U9XITNu6xjgJax_XbRZYXpd3qz1cTqpLjm05QzU0u0KM82vcIMFx02Ea23mlqx9VcHxz5TYDJMY005Nn6Zg_sd1x0lxobW-3bJixpEWlii-eUrl3OU_BDzVFR8bAdZYJj6tlVDRqr4F9jC2jFo1R9dTGbx5meBqjGSM2yZ_A11-ENw1rTx1OAhlGOBeixOcjDQB30Gzk4MmjbaeFnv77U_NpYCA7-o18Ydoq3g245WT75CbB-do5tB4D7nOOPkHhvH_a3kNfrkYtYyjzea-bohVq702Xxwc6thK7ws5x6IW5tMzX42Fl56vaAr6qsTD44ckxAt3QJC7glEOge4jO9e5A-a1pvBBjjNIA2-YRVf-KhKeYKmGrtz22j4tvlKy9ldkmL9Rtkjtcv21QjcfoD_HguymTtmuxxLL7R-BYUIwRz8OUeDpnrrCq0J1ojE_wJBAyxOB3Ngmoo4SMrpqpndUysRgi5TDf9AZeni6vT7fKyHE_d4M2aacnqVdyc2RDxR1ODIKgna0Yo7p2jd_eglWoITN3X2Jx6AGvdZFz_XiK3VKQLVQxuvJyIBk2mPdJQ9UoWe-w3g56LOnFjCnKonMQhNSx4ZDaTLly6benk6ia13ef7e7dw==\",\"format\":\"openai-responses-v1\",\"id\":\"rs_096cf456662aacbc0169b2c5508b80819394f5df5d3da98e69\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":19,\"completion_tokens\":104,\"total_tokens\":123,\"cost\":0.00106375,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00106375,\"upstream_inference_prompt_cost\":0.00002375,\"upstream_inference_completions_cost\":0.00104},\"completion_tokens_details\":{\"reasoning_tokens\":64,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 490.3535ms diff --git a/providertests/testdata/TestOpenRouterCommon/gpt-5/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gpt-5/simple_streaming.yaml deleted file mode 100644 index e885dc038f64f244769e3ba236590c58f60b5a7c..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gpt-5/simple_streaming.yaml +++ /dev/null @@ -1,192 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 252 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"openai/gpt-5","max_completion_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Respond","reasoning_details":[{"type":"reasoning.summary","summary":"**Respond","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ing","reasoning_details":[{"type":"reasoning.summary","summary":"ing","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.summary","summary":" Portuguese","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n\nThe","reasoning_details":[{"type":"reasoning.summary","summary":"**\n\nThe","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me","reasoning_details":[{"type":"reasoning.summary","summary":" me","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say","reasoning_details":[{"type":"reasoning.summary","summary":" say","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hi","reasoning_details":[{"type":"reasoning.summary","summary":" hi","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.summary","summary":" Portuguese","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" which","reasoning_details":[{"type":"reasoning.summary","summary":" which","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.summary","summary":" is","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" straightforward","reasoning_details":[{"type":"reasoning.summary","summary":" straightforward","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" think","reasoning_details":[{"type":"reasoning.summary","summary":" think","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"’ll","reasoning_details":[{"type":"reasoning.summary","summary":"’ll","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" go","reasoning_details":[{"type":"reasoning.summary","summary":" go","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.summary","summary":" with","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" “","reasoning_details":[{"type":"reasoning.summary","summary":" “","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Olá","reasoning_details":[{"type":"reasoning.summary","summary":"Olá","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!”","reasoning_details":[{"type":"reasoning.summary","summary":"!”","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" maybe","reasoning_details":[{"type":"reasoning.summary","summary":" maybe","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.summary","summary":" add","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" “","reasoning_details":[{"type":"reasoning.summary","summary":" “","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.summary","summary":"Oi","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!”","reasoning_details":[{"type":"reasoning.summary","summary":"!”","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" too","reasoning_details":[{"type":"reasoning.summary","summary":" too","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Both","reasoning_details":[{"type":"reasoning.summary","summary":" Both","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.summary","summary":" are","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.summary","summary":" common","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" greetings","reasoning_details":[{"type":"reasoning.summary","summary":" greetings","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" but","reasoning_details":[{"type":"reasoning.summary","summary":" but","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" want","reasoning_details":[{"type":"reasoning.summary","summary":" want","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" keep","reasoning_details":[{"type":"reasoning.summary","summary":" keep","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" simple","reasoning_details":[{"type":"reasoning.summary","summary":" simple","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" minimal","reasoning_details":[{"type":"reasoning.summary","summary":" minimal","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" without","reasoning_details":[{"type":"reasoning.summary","summary":" without","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" heavy","reasoning_details":[{"type":"reasoning.summary","summary":" heavy","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" formatting","reasoning_details":[{"type":"reasoning.summary","summary":" formatting","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" So","reasoning_details":[{"type":"reasoning.summary","summary":" So","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" my","reasoning_details":[{"type":"reasoning.summary","summary":" my","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" final","reasoning_details":[{"type":"reasoning.summary","summary":" final","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" response","reasoning_details":[{"type":"reasoning.summary","summary":" response","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" will","reasoning_details":[{"type":"reasoning.summary","summary":" will","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" just","reasoning_details":[{"type":"reasoning.summary","summary":" just","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be","reasoning_details":[{"type":"reasoning.summary","summary":" be","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" “","reasoning_details":[{"type":"reasoning.summary","summary":" “","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Olá","reasoning_details":[{"type":"reasoning.summary","summary":"Olá","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.summary","summary":"!","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" O","reasoning_details":[{"type":"reasoning.summary","summary":" O","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"i","reasoning_details":[{"type":"reasoning.summary","summary":"i","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!”","reasoning_details":[{"type":"reasoning.summary","summary":"!”","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" That","reasoning_details":[{"type":"reasoning.summary","summary":" That","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.summary","summary":" should","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" cover","reasoning_details":[{"type":"reasoning.summary","summary":" cover","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" nicely","reasoning_details":[{"type":"reasoning.summary","summary":" nicely","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.summary","summary":"!","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABpssVXjNGXXo9bBuifshsmRhLcI5eDiRiyZPaAkk-UANLXGORCzvCq3E0leoWO1jHfEgPEJf6axo5V8-f53DE6VDzQpI9dfdQtVvk8CBAWtznZq2D_LjkORMSerfX9bM63kVM2ZwG4TkDadN3cMgkk1caMj15cjRAYlis36QPdDVeNtK30LG2l5Gm8KOY3wYShb8a9SHosBkgYP33Z8BY4K71Z4eDmKLoafyxlKMwcv11dNmdDzCry38Coxcn8j5r5FDL2ezybW8OR8ARKXafMtG1PcaO2_9Is86myXqZFVCDZk7cIlgel6lUiuiasfmPkctuNaTJ1oibB-9Pbi3u6fj2w03mNHIPaA-9mPT_PcS8GeJpe0PTD0-pNO6r9kPQIOX_QwTQiZfngq_ywc8l4H9gh53hSroeUHEVVcT8u9OPAq0zShXg5SUem4lqP25jqwa30hoy7QBgSUrNaNnJ3YyTHl0txehzWb150vZ4P5tib41MIWb2vKBy8nHeAQw9IRsi8oi2cipGVs1r1z0GK_giVU44yqAKGQ0Or57EanS_PtOkAIvMc6nafAk59l_WmUj8VSkxXpccBWFxT0EW9lnM5d7f-rgedmPVcmwPO5gdbodDwj_vbD1vAYf7uqDwKya-8w91hbcFrgu-kPNbo3E4D52oW28vPvZoVx0NTfEBL_TTRTy5DCMY37oMZ-Hf353NIHKSr_GVrK4B4pNuaJ3aftLDwh3oDhRHT51QpLdT-J3WWK2YP0ZeHtDfJTlGre95W6fEQrrn042XUIXDvD0PHyMoUvwBovBk7PGUtGWcE8W53cA_liaUJuBBLWJZTYpilth1tWAJu61E_NRJh0vbct9A-46dBas72ZRUPmT4ewIRlG6DZNgOXHrqKQJ-pboiZ11rr7hETBhLGngUJK3-yXC8e97_ShZSdKT_6pwoP2rrE4xhEvL2P3NnfZNMWUywYlQb2a5e3JQeWkvlbNNycVe9gdfMs0V60RjiKElJlfzFQP_WUZEOese_PYtlxtl7wfEVj1nUSDoHVdXJhAfWKyIgRy23AtW6rrDhiOZF7RYAnM8AVign7uY2MZj6miLvFZx9QVLHP2eYHHg08ViUUiY_LQX5YMoLwPLH2oXdfqnWkBe_JaXVg7cvNB6O8oVfz3ond6c039e2SfHvFzAvjWNf86Vb-teJTIkEie37FP9VJ_t4g1FTm358d5d7NGw24HbyLEOILDALK5QtyM1a4miOJ0yPD3WzeoTsgvg-g2LA=","format":"openai-responses-v1","id":"rs_062c1b482d136c820169b2c554b8408190bca80f1fb7b7b1cc","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"Olá","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323604-9IpQobLg7KsFzVKRLFDH","object":"chat.completion.chunk","created":1773323604,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":19,"completion_tokens":83,"total_tokens":102,"cost":0.00085375,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00085375,"upstream_inference_prompt_cost":0.00002375,"upstream_inference_completions_cost":0.00083},"completion_tokens_details":{"reasoning_tokens":64,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 502.063583ms diff --git a/providertests/testdata/TestOpenRouterCommon/gpt-5/tool.yaml b/providertests/testdata/TestOpenRouterCommon/gpt-5/tool.yaml deleted file mode 100644 index e8c5c0ee64521738b992f9998435a83f95d72aa1..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gpt-5/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 490 - host: "" - 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,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324575-QAAZrqJLYWL3AOSJPPiO\",\"object\":\"chat.completion\",\"created\":1773324575,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Gathering weather info**\\n\\nI need to provide the weather information. I have a weather tool at my disposal, which takes a location as an input. Since we only need one tool, I’ll go ahead and call functions.weather. But wait, there might be confusion about which Florence the user means—Italy or South Carolina. Since the user specified Florence, Italy, that's clear! Now, I can proceed to call the tool.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_gFD4BCgLbZibgm4lz6Gaxo9e\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Gathering weather info**\\n\\nI need to provide the weather information. I have a weather tool at my disposal, which takes a location as an input. Since we only need one tool, I’ll go ahead and call functions.weather. But wait, there might be confusion about which Florence the user means—Italy or South Carolina. Since the user specified Florence, Italy, that's clear! Now, I can proceed to call the tool.\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpsskjL6NtLMm2gYf8B_84HgKgn3wMb79fhKZcK4WDqzWel-KZfZasScjM_t8s6P9LlyU7eTbo7GKO4aeMPJalyxZX3a-9E2Ski8Hum4YkjP5fUtZK3HRzxZwFE7jONXKUWZxdSqaFGKGI-3KC4CcQ2c9TXdEHVQHFtEACaan_gfMh4ehk418rI-3fSO_dgMrs6VXglta5TTt3Y9CbWiyOKs3i92avS_jxvWGekuj9adZqI9R17f4X6rBnWCYhQshEmj8Yn_kOVqa2we3tl9P7vQNBjVG8DxyigpGQlAzWI8M1sBobiUg6CzvA2SrkoHJNgPUWNLFry5K8h_1pLRtS_xGGx-UFeaUsg9lH2l4vcgdhkr5ehfbJEd6B06pjIWjHAsTJC0FtO3ELDGOSOYM2NIQvpxkMkVdDH8LKdO2vq7Ws0mvsJ5WEHWb_wbHYIZmh_JjOpoXHTsiV42xXRk21laU0XF4aEK9uVhdJaNuhKBIt4R3A3iRwl0C4YYTxmyO1iIkHFN1osdfUut48jTpK3cZJN8Eh0xEvR6qckKzgfyhHH5LSu3GHCOobJsyAGvIMsgW1M1j0F2-HCWwx00EFc3gjKr8Ij1ts7LFlRTqVKU-xuS8uxOrhZuztB6LZGMcy6RIt1kzGieXF79omc8XPwgQXdCNapaU70Qzof84WuiZb11Z9s9PH0ikG-I0gVi6XNp4AN8rVlYvs-NVEuXGn-eiJkqBZwkv5Vwh3P39CVX0rsTr1mR512yaC45XOQQlGi1T21j9vxD2CvJwOvil519AeqmWSm8xJ-EXR6OSsp4_5YBRUIujv-3HB0WDRVeE7BOXqcc-pbZLLQTVUPtY76X-GOjuVKUB8vQCUiucy-YL_V4q56lv_k3IoD2pJSfydFNfNAE8m33vfbboMrqXwYbDzBifp9w5L3yYziRKp8TI6F0AOMajF2eGmJh9Ouo64TnQQmST1UFBLtr1di-bIM3caYhhGaGuA8HX2rN6ZW7je4128oRP4DbcSujNxPpxxAT_QS6yXyOmKM9eavhbIqKD4qgQkD6BN3ofLeZcfms6qNHZMN78Yq6WlRYibR3P5ycmAakiETbwka5Y8LB0ljXm9mvhlgRCvjylgi-B3djgWVtCUWTkD5hLGRtH0j9217WEaErkaXWKKBVuzmG8CdElz2Ziei6YW59UjzYdr9DVDcz65Sw_64xAhDQ3ddShNi4AtCxmDIj1fZ4YkpKa6JNeluWHPGkxGY4jNhR0dC-lgm-I1umBpwAOAxn6owHQ-g2EbYhVinOje-hqlHeR4bct7kOH-KK85YA0O_EEdVUFAFNjMkN7cKxmZBQv7a060TQQG\",\"format\":\"openai-responses-v1\",\"id\":\"rs_08acd5c21bf032190169b2c9202940819681ab3b773d32d468\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":63,\"completion_tokens\":102,\"total_tokens\":165,\"cost\":0.00109875,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00109875,\"upstream_inference_prompt_cost\":0.00007875,\"upstream_inference_completions_cost\":0.00102},\"completion_tokens_details\":{\"reasoning_tokens\":64,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 459.379584ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2263 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_gFD4BCgLbZibgm4lz6Gaxo9e","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"gAAAAABpsskjL6NtLMm2gYf8B_84HgKgn3wMb79fhKZcK4WDqzWel-KZfZasScjM_t8s6P9LlyU7eTbo7GKO4aeMPJalyxZX3a-9E2Ski8Hum4YkjP5fUtZK3HRzxZwFE7jONXKUWZxdSqaFGKGI-3KC4CcQ2c9TXdEHVQHFtEACaan_gfMh4ehk418rI-3fSO_dgMrs6VXglta5TTt3Y9CbWiyOKs3i92avS_jxvWGekuj9adZqI9R17f4X6rBnWCYhQshEmj8Yn_kOVqa2we3tl9P7vQNBjVG8DxyigpGQlAzWI8M1sBobiUg6CzvA2SrkoHJNgPUWNLFry5K8h_1pLRtS_xGGx-UFeaUsg9lH2l4vcgdhkr5ehfbJEd6B06pjIWjHAsTJC0FtO3ELDGOSOYM2NIQvpxkMkVdDH8LKdO2vq7Ws0mvsJ5WEHWb_wbHYIZmh_JjOpoXHTsiV42xXRk21laU0XF4aEK9uVhdJaNuhKBIt4R3A3iRwl0C4YYTxmyO1iIkHFN1osdfUut48jTpK3cZJN8Eh0xEvR6qckKzgfyhHH5LSu3GHCOobJsyAGvIMsgW1M1j0F2-HCWwx00EFc3gjKr8Ij1ts7LFlRTqVKU-xuS8uxOrhZuztB6LZGMcy6RIt1kzGieXF79omc8XPwgQXdCNapaU70Qzof84WuiZb11Z9s9PH0ikG-I0gVi6XNp4AN8rVlYvs-NVEuXGn-eiJkqBZwkv5Vwh3P39CVX0rsTr1mR512yaC45XOQQlGi1T21j9vxD2CvJwOvil519AeqmWSm8xJ-EXR6OSsp4_5YBRUIujv-3HB0WDRVeE7BOXqcc-pbZLLQTVUPtY76X-GOjuVKUB8vQCUiucy-YL_V4q56lv_k3IoD2pJSfydFNfNAE8m33vfbboMrqXwYbDzBifp9w5L3yYziRKp8TI6F0AOMajF2eGmJh9Ouo64TnQQmST1UFBLtr1di-bIM3caYhhGaGuA8HX2rN6ZW7je4128oRP4DbcSujNxPpxxAT_QS6yXyOmKM9eavhbIqKD4qgQkD6BN3ofLeZcfms6qNHZMN78Yq6WlRYibR3P5ycmAakiETbwka5Y8LB0ljXm9mvhlgRCvjylgi-B3djgWVtCUWTkD5hLGRtH0j9217WEaErkaXWKKBVuzmG8CdElz2Ziei6YW59UjzYdr9DVDcz65Sw_64xAhDQ3ddShNi4AtCxmDIj1fZ4YkpKa6JNeluWHPGkxGY4jNhR0dC-lgm-I1umBpwAOAxn6owHQ-g2EbYhVinOje-hqlHeR4bct7kOH-KK85YA0O_EEdVUFAFNjMkN7cKxmZBQv7a060TQQG","format":"openai-responses-v1","id":"rs_08acd5c21bf032190169b2c9202940819681ab3b773d32d468","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"call_gFD4BCgLbZibgm4lz6Gaxo9e","role":"tool"}],"model":"openai/gpt-5","max_completion_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324580-BKAyo0fFzswyhbH0C1AI\",\"object\":\"chat.completion\",\"created\":1773324580,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"The current temperature in Florence, Italy is 40°C (104°F). Would you like details like forecast, humidity, or wind?\",\"refusal\":null,\"reasoning\":\"**Presenting temperature info**\\n\\nThe tool returned \\\"40 C,\\\" so that’s just the temperature. I need to present it clearly while mentioning that it’s recent data. I'll say, \\\"The current temperature in Florence, Italy, is 40°C (104°F).\\\" If they want more details like humidity or the forecast, I’ll encourage them to ask for more info. I want to keep it concise, so I’ll avoid special formatting and stick to the essentials!\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Presenting temperature info**\\n\\nThe tool returned \\\"40 C,\\\" so that’s just the temperature. I need to present it clearly while mentioning that it’s recent data. I'll say, \\\"The current temperature in Florence, Italy, is 40°C (104°F).\\\" If they want more details like humidity or the forecast, I’ll encourage them to ask for more info. I want to keep it concise, so I’ll avoid special formatting and stick to the essentials!\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpsskpwHoAl_Bba2upIUQg59eX-Rx9a42XKkd6SIeMa4QpEfHYSmcAv2ctT0tMpHxfpyyf1qhEaJGTJNUZLnL6LIG1tjI-exXfo2f4ljOuB4-t_2u5X8jyflsIFcOj_Sjcx3hn-BlUQG2OAhODyxxBOSY2sbZhXJ5rhErFWt8UKVnOG79lHfxei-0jUquRzw91a43b7U2eVlguFrwAu6OzH711_AWKcTX6QZi00fjpJO8tv11U6TQxtO9hTRHCNHCbigteXl5foDxX6Ng9BZr13AKxa538o3X0habthkKwyDjJbmqsmv5ejgBGU_RummUHeUsGinSvL_1lLOwtDwaJrGVv6tbvxV89zH9JQPgrdQFqrXjcQjY3VuETNsRLuucnpLnWD9Qmd98gY1HJ5Zp1ONauxi5QS5DCfhR0xCVUguwigq-btox1Un9gO4DlllUBUwzrQ1Vp-_i3G9kA2FDvObnSyvH_LaWsPjMsCZNtAMOcrvc7CcXSTbJakGTzFMANX-Bu5rgWo7YGPOM3d9jt_G9mfaDdbUngg1BEEUTDkLctZdWZWVbM0ScDvrRvwX5csAxK1-vBihmrQyBB-dtpXHH937uyjv4v_Y-SaULuz4ei779bv79Ok29MHmmkTtAJyf8gtAOW43oIF6mEQLJWfeqaTQaC97wnMF5CzHGSX694SqIPEQ2Grf2_pephXbhe155jmlDLAlYkCijbdwX7OZ_MhAU36VdJ0LGLAcbsZ4RtBCmqgqm4qTbzQoMHvYG0u2cC2H5HBrt-h-wortBViDW9uT7qXQX-axOr9CnCakVLCY7hv6cNkSj1Xj72Y75UXdO6L8PEve1vhX7S8Skw-ekt5ku84ZGJq86HkS33s5zl-q2YCIZj9YsG19ERS9-6NAdFhKH59ekexIHcZ4oPirinLjnvxjHd1iJ0qFtv8dVRBJYu4nqFrFCJNqKZ2k-ZwtTrG4ATTz6MpFmZG3g8YHZ1weiIyJi3X0o73f53pWD71-a6WbeotrYVAEmLkYHv3MLS2687_H7KLtym7-CBcbeszcYkl0xD5gSPo-fIRWu5yFMyAK-5W_b0f7WPRerfNuMh1fOXbvK2bbNYVWruZX7CH2k3qAtyk_jpRFw1yAALtvNnGoOdxJl4SNylaA6HkEyoYB-ZFQjf8G23av6jHmYzlpon8zgcwmgW98jNpTXKi_15foFgVjs3RUycsbZl6SgheraCNRzbbGNguSZdFvjrHuFzGVBq11QqfJ5f_rjlvixRKjV79sN7cmwUCMNMHN2JfNf8AJFU7Nofinh4UM4L0xFsOgwK1nHyTxqfkW1ygGwARB1EzVqak53JbK8FN7GiS7nMWmdiyAbH_GLMyebjl-o5nAMpYFRxiiQGw6V9s1sJ6DcmQYRcGVKSHABijQpU2k_FMyaMFbvyw5-ZC-ZCRewGcMzPY2AXmF37iZzIfC61kNsuOwSrxSM5NW3G-WUFq9bMADM8xzeKyLlVo_RMFGV2LmbXINhWGy7JQr5NWRoej6S4f-IfFcuUyGYqblwF9_s2nWx4Lg952ijUVYdVoL_hYxLMi2jU0mZ4xuCiAMjrTZEdjq7EG3xKoRr-Hy7gJAibtquYIfrZMK1faRUAjDJwrX6OnVk61_UN6ccFhzTmx78m7oSuzIdIE-5AS30-LkAtRpNokZipuGk_yk0ltehnypoqdZPUD2235iEgjJOUkGdMMFdt8IsZIISgdtD8mWMGhSP62QA2g1AzvbiH3M2QhBfufheGbNNFUF1eqeFT1wDtgj35DVZ48TH1q6M8\",\"format\":\"openai-responses-v1\",\"id\":\"rs_08acd5c21bf032190169b2c924ca6c81969a2391f5acda101c\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":174,\"completion_tokens\":192,\"total_tokens\":366,\"cost\":0.0021375,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0021375,\"upstream_inference_prompt_cost\":0.0002175,\"upstream_inference_completions_cost\":0.00192},\"completion_tokens_details\":{\"reasoning_tokens\":128,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 520.646583ms diff --git a/providertests/testdata/TestOpenRouterCommon/gpt-5/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/gpt-5/tool_streaming.yaml deleted file mode 100644 index aedec3efe746a8871a1e6f3929dfb148c296ed18..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/gpt-5/tool_streaming.yaml +++ /dev/null @@ -1,555 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 544 - host: "" - 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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Getting","reasoning_details":[{"type":"reasoning.summary","summary":"**Getting","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.summary","summary":" information","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n\nI","reasoning_details":[{"type":"reasoning.summary","summary":"**\n\nI","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.summary","summary":" have","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" retrieve","reasoning_details":[{"type":"reasoning.summary","summary":" retrieve","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" using","reasoning_details":[{"type":"reasoning.summary","summary":" using","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.summary","summary":" function","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.summary","summary":" should","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.summary","summary":" call","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.summary","summary":" with","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.summary","summary":" location","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Flor","reasoning_details":[{"type":"reasoning.summary","summary":"Flor","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ence","reasoning_details":[{"type":"reasoning.summary","summary":"ence","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",\"","reasoning_details":[{"type":"reasoning.summary","summary":",\"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" though","reasoning_details":[{"type":"reasoning.summary","summary":" though","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" could","reasoning_details":[{"type":"reasoning.summary","summary":" could","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" also","reasoning_details":[{"type":"reasoning.summary","summary":" also","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"F","reasoning_details":[{"type":"reasoning.summary","summary":"F","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"irenze","reasoning_details":[{"type":"reasoning.summary","summary":"irenze","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\"","reasoning_details":[{"type":"reasoning.summary","summary":".\"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" For","reasoning_details":[{"type":"reasoning.summary","summary":" For","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" now","reasoning_details":[{"type":"reasoning.summary","summary":" now","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" passing","reasoning_details":[{"type":"reasoning.summary","summary":" passing","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Flor","reasoning_details":[{"type":"reasoning.summary","summary":"Flor","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ence","reasoning_details":[{"type":"reasoning.summary","summary":"ence","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.summary","summary":"\"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" seems","reasoning_details":[{"type":"reasoning.summary","summary":" seems","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" like","reasoning_details":[{"type":"reasoning.summary","summary":" like","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" best","reasoning_details":[{"type":"reasoning.summary","summary":" best","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" option","reasoning_details":[{"type":"reasoning.summary","summary":" option","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Since","reasoning_details":[{"type":"reasoning.summary","summary":" Since","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" only","reasoning_details":[{"type":"reasoning.summary","summary":" only","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.summary","summary":" need","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" one","reasoning_details":[{"type":"reasoning.summary","summary":" one","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" there's","reasoning_details":[{"type":"reasoning.summary","summary":" there's","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" no","reasoning_details":[{"type":"reasoning.summary","summary":" no","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.summary","summary":" need","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parallel","reasoning_details":[{"type":"reasoning.summary","summary":" parallel","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" feature","reasoning_details":[{"type":"reasoning.summary","summary":" feature","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"’ll","reasoning_details":[{"type":"reasoning.summary","summary":"’ll","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" make","reasoning_details":[{"type":"reasoning.summary","summary":" make","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.summary","summary":" call","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" commentary","reasoning_details":[{"type":"reasoning.summary","summary":" commentary","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" channel","reasoning_details":[{"type":"reasoning.summary","summary":" channel","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" then","reasoning_details":[{"type":"reasoning.summary","summary":" then","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" await","reasoning_details":[{"type":"reasoning.summary","summary":" await","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" real","reasoning_details":[{"type":"reasoning.summary","summary":" real","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-time","reasoning_details":[{"type":"reasoning.summary","summary":"-time","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" output","reasoning_details":[{"type":"reasoning.summary","summary":" output","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" from","reasoning_details":[{"type":"reasoning.summary","summary":" from","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Let's","reasoning_details":[{"type":"reasoning.summary","summary":" Let's","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" go","reasoning_details":[{"type":"reasoning.summary","summary":" go","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ahead","reasoning_details":[{"type":"reasoning.summary","summary":" ahead","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.summary","summary":" call","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.summary","summary":"!","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABpssaNq12W_1_I-RQQ8NVc-eIoe2G6d1e5M5x2tyxK5ZGI8kvBBLTL0qNgPjkhExrLJmSKNQ6K_J-red6yy6up_oMhJyvyx4nmY2Pg_F7lsjBOQnks68B5zqVPYJrRhQCGSlpYGh3axgn2kXh7UrbXeJs3llYid9lxkKrHkriNBkrpU9T5QPlpyl-mukxYowe_foXyrbwEIC_vOd4nwq2W27vOwle6kpKFhUVCr4GNTDdJtmy_GTpALjsnrPkjqYLqryQD8nwuotb-DF_-aqx0YmaKsjKl9wqMutMT3-TrXAMbuhpNYOiASBP_e8w7mIqS3KoEdoQ_GfZJ4i9BhXuARi5WAoGY8KQUBc786lwUn_54yH75Gh579TJheJxiujmGDRD-xJ07FkTjz8IDWkhvGLQhd-O7SmiXNCYT3giCWYByp9yCDP5Xow6aEIsIut39JBB_U8xT-L0aHYPNKQOfO5MWwlJiFMZbDvqkwGHpi6yUfj_akMz7n6_3h3sIeWS131ZN9lzomXgBaSnmGyMGgNAST7vgU1hxv38ZMcbGBj6vmPTZfK-qL3sRntEoKzWjg3PzAsre4Mg1DXG93uXW0Nvhw-i117D2SkrzS4SfgtI1qGw1b61st0XiQvfB3xSAp4gIn4q60S-PQwASZboy7WXUkrxScU9KNs2pTwcI0mV5dHYD4UD7Aa9I7wrT_K8gPVwO7srtc50FzxeVB5Ed-aRQoRV-8idbJgAlx-Ctc5FW_aq9vYoKuZlZMjg3Hq7mXSZAu_khZl7o7jmRd0l8w2teDRevlW5HZxmxgkBrnKLxwh5uoGPLbdU2mpjm16XkRvL1q1dr78ikDjo-aOR1zdmTlB5X3Hw8to6kyTFZKeHPV4R8jtIul0ggRXgC_DcqFU02wQrHxTMGrlNnPdHxyhIFa2JS2BtcrYtl0P7Fu4sjE4ZEd6yHMUYTn0BYh0IWRAIg2vR1Xm0ES4V5FdAGFSlELxdh-YlyHm1R_h73pjr90v094RyKf7oH9xY49OV6Dlge-Vf7iwXXxz_BZ2zoyQ9Hf0g6LKNyTxTUA4nyc3_WKU-r5nrdpgoMAtdetC-jRSoj89aedP8ZjSwCU5G3pTNrQXPD7I4SADcg6em8akC4E0hXTpAnc0JvTU4YqXdt6lFX9CgDEeCOCe54KA9YFIT63ayDpt-PvSfVhqv2AgnXD2IBwmSu-sQ11SfBuMtcP2puPjx5Smass1KmOOW-fdndYsf99IueCt8ZmYNGznvrqnVavE9wEhszobN0eJxtON2LxNPcqp7hZX6e8LJ_r2T-ex3A5zARsgYZ9QEpk4n4JvJiC87wvxcktf5sCpJBN3GH_09AS62LoFKy1kiX5hDJBgLSPZfQcK-zhjMinknZFt2Xjq9Pw5PTHGXxOKJj9Chp2Wvq-x0vALV3lqN4Y2U20c0K1sptgATFdFVRBpDb9knWb2AH3ZKcmFWdWfGti3Yq3sMF8K6TfoYDEVzDitOqsQEbZ4nM_KHMd_IYluKcrjjmmM2iaD8FBuZEQPKTZtZuOjve7UcF2sVfRfYixu_NcWP9XB-0i6SfahBBayRS12_fF1uVxeLkjH2m3-9EoKg7HsgPhkYBG6V8dqH3Dw3mYNbAD89jXEJoYR7PFGM6UWS3hFwzH7UDx5EzpFNFBHTe53-il5T-wAJgR_HqNEngxcajR1-y8uNQyqoVcJOqM7k=","format":"openai-responses-v1","id":"rs_0bfb3c7ab58c62390169b2c689bae481948e204164078f0a4d","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_hnnrDaY1XtDCJEzDlIa8izSX","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ence"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323913-bRa4PMpo2opwWrm6Zgux","object":"chat.completion.chunk","created":1773323913,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":63,"completion_tokens":157,"total_tokens":220,"cost":0.00164875,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00164875,"upstream_inference_prompt_cost":0.00007875,"upstream_inference_completions_cost":0.00157},"completion_tokens_details":{"reasoning_tokens":128,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 576.979583ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 3221 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_hnnrDaY1XtDCJEzDlIa8izSX","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"openai-responses-v1","index":0,"summary":"**Getting weather information**\n\nI have a tool to retrieve the weather using the function. I should call it with the location \"Florence, Italy,\" though I could also use \"Firenze.\" For now, passing \"Florence, Italy\" seems like the best option. Since I only need one tool, there''s no need to use the parallel feature. I’ll make the call in the commentary channel and then await the real-time weather output from the tool. Let''s go ahead and call it!","type":"reasoning.summary"},{"data":"gAAAAABpssaNq12W_1_I-RQQ8NVc-eIoe2G6d1e5M5x2tyxK5ZGI8kvBBLTL0qNgPjkhExrLJmSKNQ6K_J-red6yy6up_oMhJyvyx4nmY2Pg_F7lsjBOQnks68B5zqVPYJrRhQCGSlpYGh3axgn2kXh7UrbXeJs3llYid9lxkKrHkriNBkrpU9T5QPlpyl-mukxYowe_foXyrbwEIC_vOd4nwq2W27vOwle6kpKFhUVCr4GNTDdJtmy_GTpALjsnrPkjqYLqryQD8nwuotb-DF_-aqx0YmaKsjKl9wqMutMT3-TrXAMbuhpNYOiASBP_e8w7mIqS3KoEdoQ_GfZJ4i9BhXuARi5WAoGY8KQUBc786lwUn_54yH75Gh579TJheJxiujmGDRD-xJ07FkTjz8IDWkhvGLQhd-O7SmiXNCYT3giCWYByp9yCDP5Xow6aEIsIut39JBB_U8xT-L0aHYPNKQOfO5MWwlJiFMZbDvqkwGHpi6yUfj_akMz7n6_3h3sIeWS131ZN9lzomXgBaSnmGyMGgNAST7vgU1hxv38ZMcbGBj6vmPTZfK-qL3sRntEoKzWjg3PzAsre4Mg1DXG93uXW0Nvhw-i117D2SkrzS4SfgtI1qGw1b61st0XiQvfB3xSAp4gIn4q60S-PQwASZboy7WXUkrxScU9KNs2pTwcI0mV5dHYD4UD7Aa9I7wrT_K8gPVwO7srtc50FzxeVB5Ed-aRQoRV-8idbJgAlx-Ctc5FW_aq9vYoKuZlZMjg3Hq7mXSZAu_khZl7o7jmRd0l8w2teDRevlW5HZxmxgkBrnKLxwh5uoGPLbdU2mpjm16XkRvL1q1dr78ikDjo-aOR1zdmTlB5X3Hw8to6kyTFZKeHPV4R8jtIul0ggRXgC_DcqFU02wQrHxTMGrlNnPdHxyhIFa2JS2BtcrYtl0P7Fu4sjE4ZEd6yHMUYTn0BYh0IWRAIg2vR1Xm0ES4V5FdAGFSlELxdh-YlyHm1R_h73pjr90v094RyKf7oH9xY49OV6Dlge-Vf7iwXXxz_BZ2zoyQ9Hf0g6LKNyTxTUA4nyc3_WKU-r5nrdpgoMAtdetC-jRSoj89aedP8ZjSwCU5G3pTNrQXPD7I4SADcg6em8akC4E0hXTpAnc0JvTU4YqXdt6lFX9CgDEeCOCe54KA9YFIT63ayDpt-PvSfVhqv2AgnXD2IBwmSu-sQ11SfBuMtcP2puPjx5Smass1KmOOW-fdndYsf99IueCt8ZmYNGznvrqnVavE9wEhszobN0eJxtON2LxNPcqp7hZX6e8LJ_r2T-ex3A5zARsgYZ9QEpk4n4JvJiC87wvxcktf5sCpJBN3GH_09AS62LoFKy1kiX5hDJBgLSPZfQcK-zhjMinknZFt2Xjq9Pw5PTHGXxOKJj9Chp2Wvq-x0vALV3lqN4Y2U20c0K1sptgATFdFVRBpDb9knWb2AH3ZKcmFWdWfGti3Yq3sMF8K6TfoYDEVzDitOqsQEbZ4nM_KHMd_IYluKcrjjmmM2iaD8FBuZEQPKTZtZuOjve7UcF2sVfRfYixu_NcWP9XB-0i6SfahBBayRS12_fF1uVxeLkjH2m3-9EoKg7HsgPhkYBG6V8dqH3Dw3mYNbAD89jXEJoYR7PFGM6UWS3hFwzH7UDx5EzpFNFBHTe53-il5T-wAJgR_HqNEngxcajR1-y8uNQyqoVcJOqM7k=","format":"openai-responses-v1","id":"rs_0bfb3c7ab58c62390169b2c689bae481948e204164078f0a4d","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"call_hnnrDaY1XtDCJEzDlIa8izSX","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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Present","reasoning_details":[{"type":"reasoning.summary","summary":"**Present","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ing","reasoning_details":[{"type":"reasoning.summary","summary":"ing","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" updates","reasoning_details":[{"type":"reasoning.summary","summary":" updates","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n\nThe","reasoning_details":[{"type":"reasoning.summary","summary":"**\n\nThe","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.summary","summary":" returned","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.summary","summary":"40","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" C","reasoning_details":[{"type":"reasoning.summary","summary":" C","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.summary","summary":"\"","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" which","reasoning_details":[{"type":"reasoning.summary","summary":" which","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" likely","reasoning_details":[{"type":"reasoning.summary","summary":" likely","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" means","reasoning_details":[{"type":"reasoning.summary","summary":" means","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that's","reasoning_details":[{"type":"reasoning.summary","summary":" that's","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" just","reasoning_details":[{"type":"reasoning.summary","summary":" just","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" temperature","reasoning_details":[{"type":"reasoning.summary","summary":" temperature","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" think","reasoning_details":[{"type":"reasoning.summary","summary":" think","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.summary","summary":" should","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" present","reasoning_details":[{"type":"reasoning.summary","summary":" present","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.summary","summary":" this","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clearly","reasoning_details":[{"type":"reasoning.summary","summary":" clearly","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" maybe","reasoning_details":[{"type":"reasoning.summary","summary":" maybe","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" checking","reasoning_details":[{"type":"reasoning.summary","summary":" checking","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" if","reasoning_details":[{"type":"reasoning.summary","summary":" if","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" needs","reasoning_details":[{"type":"reasoning.summary","summary":" needs","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" date","reasoning_details":[{"type":"reasoning.summary","summary":" date","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.summary","summary":" or","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time","reasoning_details":[{"type":"reasoning.summary","summary":" time","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" context","reasoning_details":[{"type":"reasoning.summary","summary":" context","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" could","reasoning_details":[{"type":"reasoning.summary","summary":" could","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" note","reasoning_details":[{"type":"reasoning.summary","summary":" note","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.summary","summary":" that","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"’s","reasoning_details":[{"type":"reasoning.summary","summary":"’s","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" currently","reasoning_details":[{"type":"reasoning.summary","summary":" currently","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" around","reasoning_details":[{"type":"reasoning.summary","summary":" around","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" 40","reasoning_details":[{"type":"reasoning.summary","summary":" 40","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"°C","reasoning_details":[{"type":"reasoning.summary","summary":"°C","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Providing","reasoning_details":[{"type":"reasoning.summary","summary":" Providing","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" conversion","reasoning_details":[{"type":"reasoning.summary","summary":" conversion","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Fahrenheit","reasoning_details":[{"type":"reasoning.summary","summary":" Fahrenheit","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" would","reasoning_details":[{"type":"reasoning.summary","summary":" would","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be","reasoning_details":[{"type":"reasoning.summary","summary":" be","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.summary","summary":" helpful","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" too","reasoning_details":[{"type":"reasoning.summary","summary":" too","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" so","reasoning_details":[{"type":"reasoning.summary","summary":" so","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I'll","reasoning_details":[{"type":"reasoning.summary","summary":" I'll","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say","reasoning_details":[{"type":"reasoning.summary","summary":" say","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it's","reasoning_details":[{"type":"reasoning.summary","summary":" it's","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about","reasoning_details":[{"type":"reasoning.summary","summary":" about","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" 104","reasoning_details":[{"type":"reasoning.summary","summary":" 104","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"°F","reasoning_details":[{"type":"reasoning.summary","summary":"°F","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Keeping","reasoning_details":[{"type":"reasoning.summary","summary":" Keeping","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" concise","reasoning_details":[{"type":"reasoning.summary","summary":" concise","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" might","reasoning_details":[{"type":"reasoning.summary","summary":" might","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" also","reasoning_details":[{"type":"reasoning.summary","summary":" also","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" suggest","reasoning_details":[{"type":"reasoning.summary","summary":" suggest","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" staying","reasoning_details":[{"type":"reasoning.summary","summary":" staying","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hydrated","reasoning_details":[{"type":"reasoning.summary","summary":" hydrated","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" follow","reasoning_details":[{"type":"reasoning.summary","summary":" follow","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" up","reasoning_details":[{"type":"reasoning.summary","summary":" up","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.summary","summary":" with","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" “","reasoning_details":[{"type":"reasoning.summary","summary":" “","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Want","reasoning_details":[{"type":"reasoning.summary","summary":"Want","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" forecast","reasoning_details":[{"type":"reasoning.summary","summary":" forecast","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" by","reasoning_details":[{"type":"reasoning.summary","summary":" by","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hour","reasoning_details":[{"type":"reasoning.summary","summary":" hour","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.summary","summary":" or","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" next","reasoning_details":[{"type":"reasoning.summary","summary":" next","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" few","reasoning_details":[{"type":"reasoning.summary","summary":" few","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" days","reasoning_details":[{"type":"reasoning.summary","summary":" days","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?”","reasoning_details":[{"type":"reasoning.summary","summary":"?”","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABpssaTCSEpABSSdiVPgqTF1ID_xoP5if1RQKCfnzNiIJW6jwuoQNCntu-BHyYgcG6ZT0it9wsq4HVYFploFGR2M8i1vUi84PTynaUTXY1u-RHRJQGwXUp6KTKKy6QApkhXM1HjfyuVXb2tI1ki35HJbrHThZoGODVeZVvBv6aitbtqvvJ_-xm7xJoBr7gqCZ9M5uHF9akXhSnEximy3L_0ggXCtbmy8Z0_xCaeRCt5ksRjO71SUcif_EQWjoDJihx04mfJnafmkOjC3JaGlmq173dq00zdSSfItnjASvQVBujHp8gc4P3D6JV4UbpFX0PwNXPthRe8f0Sm7pxSTg5PXd-ZTnow7diNACe0G1zJtRE48u4T6XbeoOcuQxp9eLVeGGt1XziQ_gDjdr1vjo7gUYIeGHOOJncVLSkNQ2EhcRJIKoELlHubBchbCh3PnTPfkexCtaST5ZHwkHDtLABF8Y_RL0MEZ1Kfp_5AILQhW6J7lZoV5nPmjqcmBnQISdx0mNZB7z6Gjv4AXArUKz5PTQQpZo8_jvvwv2kSLfT7oHb597TKfVb35SO9bAVNvrLONm069Hdz6Hb9ToA0vmbklaD25P250_4UufnqxCs5L4xq_Y6WAOgavo3h6CnhC6wrMscxcs0owlr72Qw-xUaRkNyGOsHlfWpjSNtYxlru5iJLEXrbhTpZahMRsPNrqavdGM7a7b-sV91-3dSj2xquec_gUtNJguzfqQuDiHxSKxe2gk-7bEACtVP6LbMfvpgEBcnwc1fK2Hzq9CI4YiD4WIJiDSFcMCEtwiU3mYIfFVojsQiSLkxDZdKaBhiI-RCyH0dJQUWfolxqI-dvcdY-EHn0Aiq1fA96RA7ZA7ynMNDA7UZKXNQR2J3YZtDBh0Nidj7kzzvqoZudkTzlSsX3j0dAOqCMCymTQxV4ciInUhm_ckl3tJWlkSoFBAKzbuhV6LyszRwOg6_Ff6CcSIPxq72lonl8sv0xdp7N0ki-XgTZOJrHcrogP6YoLsWQp-qX-bX3XGQnE6t-ZbhL7CGmkWzDaYFJKiyPd1aQAwqL2hvD3enkcTcDmZiWB6d4DD0i7vpzxWNAlkXNDMWdL5Jx7ntiod7RmpZCu8sR2yjwNa4-mScGyfM9YOJ-No64jVC6ZjttFQd0v_e6U-6afg0WkK1X8falKz-sUr3LIAk4eQ9WXYa9wHDzYT8oK-eUZfSxCEeOGRf7x0vTR0wQUpiGB0ZrWyh3Xu3W6SVuqaH5riUmAtgK0Ajl6cuqq_qkSap4xe8tNqr2UNgeQV-TdddwdrgFSx6cih5fgk-TPIZIRALMLgnN_yYVh3ai_uDBpTO88ydJ8GyUga7O1wFFxpCnBmqrlLV-iPqSkjd_pY7QmU4sIqVaA3OPt9R9CLofVLermhEJf6CMKnWFxyvFrRZa9DWHpzwPy8lenzYchgReUnCQC-CAxz9drCKYEclAC7YbpBOsedXTL4IN1zFkLgfdg3Jppng71V8mD-6HiD-oOA0L-gR-C2Mwk_Ru9at4Sf3YtsDvQ4s5EEnem7vXsxCSCxy4d0DMOt1NIUquAFXVgcfv7XAdKnCS7Twr93PLR8VokCw7cmzqt-_MYNSyLOfVuwN0rtzVtzX2RLft7OTrx1aX8_cow7t_Pts2nPJDUgBt0iHy5E2Y3MOHQuw6ASwAvkHQnO4Xab8Cx4T3_BUCNv6S14oa4yRfzpY87pve0AW5ti4-15RBmh8dgnILX4DlMuR2DcWNGvXe8If2Js_Y3JTkb7Ll5OKFDoYmWwdq703uKYfDicf_t-H1rFk9bKO5EfEs31DiZ-aeh2o49v03HnsLcu6pmOKCZAyv0k3R9Lz8Zh7OSD91njWuNN13ZvXGloCWKQ==","format":"openai-responses-v1","id":"rs_0bfb3c7ab58c62390169b2c68f291481949f9ec52efb7e9f5a","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"It","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"’s","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" around","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":")","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Would","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" like","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" an","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" hourly","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" or","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"7","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"-day","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" forecast","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" as","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" well","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"?","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323918-z1CEmtfWaa660Z7L0E1y","object":"chat.completion.chunk","created":1773323918,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":229,"completion_tokens":201,"total_tokens":430,"cost":0.00229625,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00229625,"upstream_inference_prompt_cost":0.00028625,"upstream_inference_completions_cost":0.00201},"completion_tokens_details":{"reasoning_tokens":128,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 442.077542ms diff --git a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool.yaml deleted file mode 100644 index 9cf1bfa0168132553e50952147ddfc9cbf804583..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 851 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323518-plPDxWnnTwChYQb9C1Tb\",\"object\":\"chat.completion\",\"created\":1773323518,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The task is: \\\"Add and multiply the number 2 and 3.\\\" I must always use both add and multiply at the same time.\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_80992294\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_16628166\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The task is: \\\"Add and multiply the number 2 and 3.\\\" I must always use both add and multiply at the same time.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"nHog7k+gRgPFY6Lc31A0Ir0B1tWLi89UXKw/5yg/mcVsLWVQKo6wPmVzJCpcSbUuL9v9gRMGGckiRyKLWn+ukL5VOgM24XfISI7B8z+lDm24N50YZs2ikObJIBiCx9xIb8HxN9SI9q8Tl5tU/cXHTL4K8v3AZ227ntsc7bze2ziWpY7AWU3ZkjZDO5p+BmlbohOfVedZPYwJz60/zzMcfk1ow4+N0IhAl+WNLS9T8HpziWUMXJwh/ix5f0mqSDgxz0f3vhTve5faQFuxShhOVqFMt/PavRJj/xsjAA/Qq767teT4AGESJYcMGaQs8ksPllnX4+M7NNx4NXBwRd5e/R4MtVdzzxR6YKLeMbpnR51WI926HG36jkzxYCLfkUNO/NKf/CLzvpt7zJfaf5Z2SboaEUQvjd4NbVtDLWbnUGH+sanTlXZNt9eIRZhVukNY/wPLg4/lBb1hSUz6cvqDapyIqUDFAf0wxpUnH9Q7VPk8GFe7d/vyMsM1dYXeYHlt9NncNuCtobOftRcRSDwFTu4MLpUYvvsENyyh9nrWsqg2jVgxwbpiM42rOJMrDqndSuO4xxaPId6XcjpgKz6at+MElTMNSb2YjVxveBu2ls/wuhZ5PPN6r/A3IlLvz1JA0JDIMHvbG1ucTFTSKOKBhfF78hOuLE4REX4kTaMVhcdCf+F0bFgMgvlG5nhdNnsTO/WYZLRYKImEqZK2c2EAWFhM8BcrkeXNSbOTH7MC+1rbUmfo2C1AZoM1m03EefYBuA/mV/qMTBmZlOqseodfnoWdYPdl5JLU1x7be3MH6CmWGBwas4ETcaxIOWCr8aCXbM5KEU1VaM/PqXefgexsAeKGXVT7bjG2xsF/dBwMFfTf8Y+UvlosfSQ98pTHL1SDP58OW7ZqKtfpkK0y47mmzT5bZmV8f8yU8GGN7T3I5lQwN4LBBga17Y1bxbWLcI1qXSenar3xZIgyifUBV7mI0Z5m4PGoA5caewMzYwah1fGv1DtdGRCXGKTomzznhlNPj5omG2OJPmol8bu0ma2ELG3V0DehGpJZpyKOp1jTztOmApnnmPOhc2A7D0a2PYZVgJhHrqQE4V7ITdzWAZVhlg2+kzlWZ0iHJs0bwXBy6wbTqBWlIxdt23tTPxGUSKnAkH5MU13eh+sIEzoTd0UaUhWzDeBI///LL2bDDSby80ezHrzrL9YGSi+FWTGm1ZRlDYG8Q1Dwb187ogErjblibhQThzu0uVQ7dt841VidXD5Jo+jFu+ENFdzPOXaULeQRifq2hlPZei5cqv1dnvPgvzx5XMv9MDoUxCbpCcyvBCun/ksUVyCjsaR3Fdf7/uyYldgoQYQKqW7xUWL0481Zv8pL8scyVfUSlO8EL0R7+9FuTieFmYBaYxLsB4ph/gxU9wePPa6Gvw795lAC1qMH2+4rg8FJV4+ZnUMvkBQrqNeg5Fsw6ffGkeKROus2aqhif9NoBewOLcfqxJXktNyzERgI9ZGiX3u7t5yGPVBysSaAroRDvdeb4TrCU1pbFiDhET/e+w4DzhTUgpyYdUpJ/Ad8x7PY1wDWLbWuBz7ivliy8QfxS+4ZW9SWsOXLmZx/YOjr7BHg6fthUUdbvy4P8cO9SBawa3jwdAm6fSRo9N9mvSVXMsZuYFPYWxnX/HngOjkb+DnZS9RHBIUGdxzZI2JXTOF6GfZIYnq3yvHcvREPgLBuIqthdFbzXyA3mr0/NSn+vRAjkvjhutv6Ta3jffelaSNe84KRPgtzGrbrAiIhJsxUkiMFKwgfKbR3XcxJAd7C+y+T+7Ar+UDNyhMgjOQ/QOIlSvScwfZ61+QAVbNjIUuLfV4ieeHc3rDH08D69ORmpf4hu3TeRPrJliqYOblG5OECFc87uH0kydU1TH0z0RzF1N3OS512nY1+IrckcuR8Omr+Nqn5443zfTQe16Fa+D3kbUQ8qwgZzTqRPRtz3Nosfl+mYtx83DZT7p2g9kuefR4\",\"format\":\"xai-responses-v1\",\"id\":\"rs_6f2f166f-859d-4bd6-375d-61b6a1838ddb\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":479,\"completion_tokens\":420,\"total_tokens\":899,\"cost\":0.00069124,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00069124,\"upstream_inference_prompt_cost\":0.00006124,\"upstream_inference_completions_cost\":0.00063},\"completion_tokens_details\":{\"reasoning_tokens\":352,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 802.955083ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1289 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_80992294","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_16628166","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_80992294","role":"tool"},{"content":"6","tool_call_id":"call_16628166","role":"tool"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323521-gWiUtkr5VTDPfNPqfR5K\",\"object\":\"chat.completion\",\"created\":1773323521,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"The sum of 2 and 3 is 5. The product of 2 and 3 is 6.\",\"refusal\":null,\"reasoning\":\"First, the user asked to \\\"Add and multiply the number 2 and 3\\\".\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked to \\\"Add and multiply the number 2 and 3\\\".\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"IrXtd5jFof97P5ob4xn2YrYjyXssyxLS0p5vVxF6zlF+cyH0GMBNARjEiMDwBr/s0YgXTI6AKwEEOVNpMnVHOg717VL7lg+yAju/O+cHGvlTXnFcNwf2uakhS2w4aMiGL4Us3nQTFxlrDWvSBJX6GCgzYy/ZvYU44wzjthgOyeLEdUcSbPVAGkWH8D6T4aR0vbaFBrPcZBJ+rwSi6ja3SmCR3SbEM6eLMMCODdij0lkdhVdcZ2UvEVdW1txAq4HHBxtThrRuSXumz8e7kxuLNRVKph1g3OEObOZKn0QCOwK9QamOK0EE8yLmrovZGjKkx1DQ8o0bATRRaRjk24hVn/44djfriDGzAuz4Hb3T5fiGpn5MqfABUIlz6iNKEZOQLphZKvufvXnRrUTmp5zbuXIxMe0PppExsmtDDIPVIKXsxHw//NfQRSV/vbUcBijRtWKu+3nbPgWHE6bONGVw3TDTqtCd09LJvGkm2eTQJJxgm8ODuivfjJKhQyml8YVemJsQ9MekJb/DrOblnW2L8pOi1QmiidRL//OYZbwPpBwTGdiHk45L24f9V3bJrH7D9RIMyI1VgsWurm41hbgywhiHuLsCdasgWAipHmSL7EMW2CmoS/1K5zKnF+2KYgS67eH+I6j2g6W6v2Ca9JpJCLlFCsxKt9TwRW0iHMyh/azpnQXJ6jpjgmPkQp8uuVrEJ9tFJp7J1hSePcMk1ztFZGXeYwmfzf/IftmSKDEfub2pGxwY66GOY55xYIQOJeXx4xUX/xPKL0ZVqqKOu1LEdtgm3YEUlnnvyyK1WywgLHtjMYSFQdBR5OPjZthBQOzyfuYDhv2vnCcqmtGM0irfT2F5qQPMC2Qz5gPu4OaUaABuzwOd0D41XYjS/1KWF89tTYbPlvJ2F/dx1TE7HMic4MkvEQ6LLzcyoe4i+zM0Cf6/QSjMQvZUyzFNbFtT/D6y2AVrtcvdG1JI8D++1LbHGxjJ9G+wZZkD2xkkHBjvga52R10md//lULJsQbAKvah/JO+WQd0XI5pSNFkH/hcIIILRR3JlRymrmwinVWwCtuu64gbo6JQz6I6BnG3scE4IpdlgZFdCGmP16W60sUJyHVHZ8aRVvOoVDC/Mr0May5mqchEBR/yB04SQzHKfI/c5Ntkm4KBimeFPLYbQ6edaKOY2UhB7QBmU\",\"format\":\"xai-responses-v1\",\"id\":\"rs_a4466668-a0a4-9577-82a0-f60e1844ba8b\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":564,\"completion_tokens\":225,\"total_tokens\":789,\"cost\":0.00041574,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00041574,\"upstream_inference_prompt_cost\":0.00007824,\"upstream_inference_completions_cost\":0.0003375},\"completion_tokens_details\":{\"reasoning_tokens\":201,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.637102708s diff --git a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool_streaming.yaml deleted file mode 100644 index 5a9075005107588337058c0b2f0a0aea08b93ccb..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/multi_tool_streaming.yaml +++ /dev/null @@ -1,273 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 888 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.summary","summary":"The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Add","reasoning_details":[{"type":"reasoning.summary","summary":"Add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" number","reasoning_details":[{"type":"reasoning.summary","summary":" number","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.summary","summary":"2","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.summary","summary":"3","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.summary","summary":"\".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.summary","summary":" The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" system","reasoning_details":[{"type":"reasoning.summary","summary":" system","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" prompt","reasoning_details":[{"type":"reasoning.summary","summary":" prompt","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" says","reasoning_details":[{"type":"reasoning.summary","summary":" says","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Always","reasoning_details":[{"type":"reasoning.summary","summary":"Always","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.summary","summary":" both","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.summary","summary":" add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" at","reasoning_details":[{"type":"reasoning.summary","summary":" at","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.summary","summary":" same","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time","reasoning_details":[{"type":"reasoning.summary","summary":" time","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\"\n","reasoning_details":[{"type":"reasoning.summary","summary":".\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"zFCSTMl4u3ImlkN5nZCC7NpB9eZGgUww1k8qERmidIqo/Kl7l/P9Av+PP7XjZ7MI4Wcans4j0fmPrZ8AVfbznufPg9mP6IhjWuT80h5P8Ghhffq58gf7UNcQbOLJDq4qNgsM93BIMqGhUQVmOgpLlDq+0qK5x9Ki1aUrAjlpwwN/pokCTUoXAlhgrm0P1c5oRml8PS5/DH2bGE9FZT2oSCnH6ZxbKWk1IMAAerjhwTypU6cRe02/V5RPkF4zUfZxzHUHkEBJSkpaSgscwbHwRfeU4qJXOoagRKSsCmdGybQL3ZmXur6FV+Hx0BJUY1bhwnkj5Y71mpJB2YiWxQBsI25/6C+3AKzBhXGS5p2Kz0NPeWKWpQW/3A29Lg1ndgQomAtNGSc3hYFwzS2Jjwtq/g84E7NktADpYCr66Y3ee1nQCfeNnfrMwrrn9GPrOfHLjBZbvDMGHnh5yxNvtzMoYuGuT843znbu0zqZlwXpcfbV4RaRnjfgkFAumA3TNM0Hu7kwPyIVSm6G+8gh1mnZGoNMnYogXwreUF9uNtJH/ol68tUXw/YPaV4w4RKqg2J830Rr5pTlMfJTG5M2IffCxcfqkRBu0qgcMHoZWO2Oe1FJmbBl413TFzNcGHI932QfnoUouw4l8ICef8eIm917OzieJAan8JTvb0hCswovD3p2tGXHtrH9oBUehwpmn9amUNWofmwJOcTyhgfhmSJCUTUVXQ6aJl7JrDEOyVQDZuFQgtU016KQPAT96vnyvFhWAtqpNoJp/2XQz/bQjppTF9MzB8olveUG2NyHJUFOXfI/nbcY2VqLIKTTpwqw2xW2I5CA4OF/vDZj26WhGjE3iYE6zWKSdmBxzAu86UR1F/joeuGEX6WxBaAufF63/WXOOI2Tl8pf+X/AeGdg1rjRB53jDqPAH8YkHgCiijaqzxFBTt7ppmTwQkf2iISgmDX5RlaF5na4FNxDBa/8OmZH2+kEU1/l7T524QwkQn5OkxuzwL+5MM+Gl7cz+WFlUPDT6mCyBsRlcgoCU9Xs4f2kEPpq8UDKPtxou8RHuS/TstWio8fKRbD0cqrHUICKhFe7O96gGJT9POrSj8lgDdLbHvkC/HP04jH/fsdx8WFkY8XESWQbjAxIHxlsPpXMZpzlNQFT2RMvnMMHKnraVMqJKR2Z288ivV0AVbfJdGZW6Mm0bbE4Wem7BtPD3FHOAE1hP7kT3n2IG5EcxGZY3ToyTYo+H1VQ","format":"xai-responses-v1","id":"rs_abee0330-3314-8aa4-328d-160d6330fcc4","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_24685106","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_09709929","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323524-sZIRQMKFNrl4kslO0v1w","object":"chat.completion.chunk","created":1773323524,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":475,"completion_tokens":300,"total_tokens":775,"cost":0.00051044,"is_byok":false,"prompt_tokens_details":{"cached_tokens":192,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00051044,"upstream_inference_prompt_cost":0.00006044,"upstream_inference_completions_cost":0.00045},"completion_tokens_details":{"reasoning_tokens":232,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 797.091417ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1475 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_24685106","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_09709929","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user asked to \"Add and multiply the number 2 and 3\". The system prompt says: \"Always use both add and multiply at the same time.\"\n","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_24685106","role":"tool"},{"content":"6","tool_call_id":"call_09709929","role":"tool"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Add","reasoning_details":[{"type":"reasoning.summary","summary":"Add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" number","reasoning_details":[{"type":"reasoning.summary","summary":" number","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.summary","summary":"2","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.summary","summary":"3","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.summary","summary":"\".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.summary","summary":" The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" system","reasoning_details":[{"type":"reasoning.summary","summary":" system","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" prompt","reasoning_details":[{"type":"reasoning.summary","summary":" prompt","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" says","reasoning_details":[{"type":"reasoning.summary","summary":" says","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Always","reasoning_details":[{"type":"reasoning.summary","summary":"Always","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.summary","summary":" both","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.summary","summary":" add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" at","reasoning_details":[{"type":"reasoning.summary","summary":" at","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.summary","summary":" same","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time","reasoning_details":[{"type":"reasoning.summary","summary":" time","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\"\n","reasoning_details":[{"type":"reasoning.summary","summary":".\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"VYx0N6GsXnP/om2DGtABPxLQ+/GMeW6t+A+hGu73hWOJhdtZMGB+gNUqVMZjHyluwvpUstPS8BwsjX/SmFADG2H8a5+wJ5JZQxqqKNJedoYA+2lYBzECJEtokIWLsuG3SQ+fL3gnGfogOyfoDaEcCnX7smiIIku/9rhh7Bqb+1Xt1TPuJo1C1sZ6CTHHDCmtC56eBpnhXuRhuGEHF/bIkLJP8vWmQAL6uYCC0oONY572Jc9TJaagM6ndoihGvJAmkoXYcZCVZ1ryeHhs0zVq14ZIxnnMYYGjDDuTuZEQTsx0chDHOUyiAcGTzWcuYY9NCq4qkI0OfOsekmAFKAT/Msnrd3wFY/MC109Eyh8Fht4IVGcJI9xNcoCVNl1t/+7FwffDafL6XdRbPDFONroTOkfYidrtb9dU0vWow++48CnaQCuxN6x7THD53Rf95j9k1sR9W9hcJJCoUpZG4obcEry7RFHRZtxNj14MglIdIwMsZ+7lyzQzGSsd/fyBFk3gMzfZLPMILbeDcoX5TY6X1Q3/0hIls5TJuhQ5du2TzyMj0JNT+mCRwsknFb07fHSb/sEwXnrKgXsU15caUjpWLCztJ0Nh+Id12lGUcUCYT9ZNeFxkfPHS0N0IeJtWTQTB/aPJ+Ch7PVJxPWxgTsBiVnLza3lOQ+2DfT6bm3jdsXVzWa9GDsEkmNOSSno1gt+EJFnLaORAAPrcltKOC3iLJkH8NxisG61NmQRYeEGTUxU9QexFJWMD/V6BUes0epkPosJHbjOqFPsKy8M5BKIgaC90RgjWOaFHErZeYx95UmPl/46JKnVd37M2t2FSWWAALxK+12mJX/BtakbVW8Rm+oF72LeKfSdlphR1h4xnsSKj4/hviF8JrSL/G+wQ37M5+nhmHEKE1m2hTB//i93bMhiOnqxaT2uBqFdqMHUgj/CoLBsH2h9rWR1kHrK3MG4UrV9Gbqu25UnK/wKvYqagpHrESbVt21Z2UYUQN76tL7UIXjpacE7SyvWyw+KfGF5mDK1rqpGm93aJfWacNww5xIYkpfHi0CXVXJTivjem4P7YS82kzQDKnbvME4p3RA","format":"xai-responses-v1","id":"rs_91703a06-dde9-c749-1534-232d8490ae08","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" sum","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" of","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" product","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" of","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323527-Cdk50FQYRIyjzJj9MMWH","object":"chat.completion.chunk","created":1773323527,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":560,"completion_tokens":200,"total_tokens":760,"cost":0.00037744,"is_byok":false,"prompt_tokens_details":{"cached_tokens":192,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00037744,"upstream_inference_prompt_cost":0.00007744,"upstream_inference_completions_cost":0.0003},"completion_tokens_details":{"reasoning_tokens":176,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 661.626208ms diff --git a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple.yaml b/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple.yaml deleted file mode 100644 index d5d375fcb2ce9fb3c37b52cbd505f9efe6c55459..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 196 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323500-nF7twYYeGLtDW7HtZOIm\",\"object\":\"chat.completion\",\"created\":1773323500,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi! (That's \\\"hi\\\" in Portuguese.)\",\"refusal\":null,\"reasoning\":\"First, the user said: \\\"Say hi in Portuguese.\\\" This is a simple request. I need to respond as a helpful assistant.\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user said: \\\"Say hi in Portuguese.\\\" This is a simple request. I need to respond as a helpful assistant.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"xfBMdNJZIgC4PLGqRkEwMBRi6Lc12yr0dZFmlhE5Pgsf7MDzm1/p9MT5MHbpP/nMzZaaWfwFCPhgBIZ/1hzhwkO5Sa+bX/mFnyRAiwvUKqJvyKJmxjH7aEl9Zg1ItUR9SoWEMk6DtKNmh2Q930alvhwrGVSSqPHr1lmombPzepnEx5T3EW7pnOXGMHZGRXXaPQ0TqzaRAaV7DZPyyS4k/SjTgkHBVIx4mdWZrfTZacIewtsJ4NH7QkAB9L67iwLmsILAnmIio1AUEZXRH2jFt340d+M0Qz8Qb5WbfUpp8BE4ZS19m4IsGU9iDp9NCcUTIeyuA3sRrLBM3CjZz8xsDVUHDbUWSMdPigaf055XFWktVXKzRW4ed81KEHjf+fU82mf3Jble+2IrB7WcyZ8jB2gFd9MsaeAa2CQKjB5ZwZ8v5Dk6n3vEZZNjvJ77WrZJh/qbk0bOgIxxWpnj6BRjD6TtYpqw76HzujNmdmlTbmMokv5725X9hzPoze4x8Es7V0ZXYIN5jY7Uj8r2SeMU1YnezCihx/IK9qqQSaMgPYXeHAushvbjwd4ocKQinLgyqlgnqpD9KcnblM4pslv6ycM9aWjXRwK2ddC0t8CiGCcuRZ9rxg7VEPHS6VVdBfE6Ip289EBXi5yj2jwb+5YB/IyN2ppupcj5nVoFxjR9HQHhPspLimQPrHuNk2C/2i3F9nSOt1ZqNa96Dx5T4q4CjdfVRq6zcEiBeTpAF4rr1Vh4MNl8zeGzLoOMrjfao0V56hmCEH8s0TZJOwjJ6dMt8tuYnTjPBaWcrFp99PKYVsim7G/zesRQliXdqNqayaJ6u8EyA+tNB/DUaz3DDm4PemPWw85ZssyBxsYx77ReyrtwilvxcXQfFSTqN/zpbUE1xUoprO4y+iFkoRI+k7tjd8rIqmTJGTvXreAfKVV0A8Mpzj0g5x0AhfpB\",\"format\":\"xai-responses-v1\",\"id\":\"rs_df0febbd-3149-9d1d-b8bd-2b796fea6488\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":213,\"completion_tokens\":174,\"total_tokens\":387,\"cost\":0.00026904,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00026904,\"upstream_inference_prompt_cost\":0.00000804,\"upstream_inference_completions_cost\":0.000261},\"completion_tokens_details\":{\"reasoning_tokens\":164,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.001425917s diff --git a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple_streaming.yaml deleted file mode 100644 index aa0c4c3fe2ecf011c549210b2ce9b9adf21d0cc1..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/simple_streaming.yaml +++ /dev/null @@ -1,150 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 250 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" said","reasoning_details":[{"type":"reasoning.summary","summary":" said","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Say","reasoning_details":[{"type":"reasoning.summary","summary":"Say","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hi","reasoning_details":[{"type":"reasoning.summary","summary":" hi","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.summary","summary":" Portuguese","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.summary","summary":"\".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This","reasoning_details":[{"type":"reasoning.summary","summary":" This","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.summary","summary":" is","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" straightforward","reasoning_details":[{"type":"reasoning.summary","summary":" straightforward","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" request","reasoning_details":[{"type":"reasoning.summary","summary":" request","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.summary","summary":" need","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" respond","reasoning_details":[{"type":"reasoning.summary","summary":" respond","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" help","reasoning_details":[{"type":"reasoning.summary","summary":" help","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"fully","reasoning_details":[{"type":"reasoning.summary","summary":"fully","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.summary","summary":" as","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.summary","summary":" helpful","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" assistant","reasoning_details":[{"type":"reasoning.summary","summary":" assistant","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.summary","summary":".\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"8fopb22xFHgGfz0zv62orVTO6jMBz01Mfp6kEycJDH4ii1TIjEY14IwUwGYdakrXwvYrG6awrkGEDFv7bqN2OsWGZz28a2BLCSJHwd/HGUdzqg6lMf5W3GOR1bmOPxcjD2gv7u3n4onNaSqtBrwDezYpYKqsSVOss/CkX1RDOHSL8k4OaHbe0xwMXqFcJHVPdRK+CUxgf5/cutH61l5hMlhZZHG/nvbG7b5jAUC6ZzZITTG3LBbalcnHPE4K0OxDwL3fE/7rnJQdSPVlR9vKhVahgTviO6UER/ZTSFRxRK04wlOZlPjRrgd4Xo42U0F+1XOjzuGZ5KBQgNzaXlpzh3YzZ0ypuAflLo54rfDRRkx/q42dofxVG9hr9Kpwriq3siB+CckkGGJFwsIZqLpim6idVbQ5LgTMcSuexaNw32ne/iNfiL7D5kjNieeQXqGQMeaOHfD0itc8ysT0hVdPJQ7JVn6Tjj217AytF0UvLtcRPLg8lWCvat2EpTyDA4D6KMYxwiWFuET0DUmdWsEBCStE8ANiFNXyacuttkxNI+HEDTQQ06ODf3YZ5MYSzyTxDoALKuRHG1AROTqVmAuDa6zX6yr203fNJpbMe6qpeudZ5rgsg7Wka0x92zgHPXmoaGD1OBkNXL4qKQJ1uEHaETSNtEC0y5fwl66fQG2tVm+cikSRcemclLbZEJPWHV71XTXfav++UrBHnCwCN4UoXdywkkDA8oUFMurLMuOboHpIMQPCrEYTZtcE4YrSftTI90Uj4AaYEZ1QuOt1dwPhM/ypbDOCpYmNrtUETfb5xnG1BnTMve1GRdSeb1akF6NV+9PmUF/5hy4XQ0OoOk6g8lmnxoV933c1Zhg5TagpyK+b2PKut0UA4zkxMZFWQngZZpNCyTtGKzosu22mKyAdbpAuWZiMK0RLrCiFPYnkWtXxQJtUU5PPxhclFsrdHYBWy2iaWUC6QJmLMG3wNlC+P3LRgchcsggEF8wxAvh4l+f7u8hDXOCqktag1YfsCZ2WpRR151T+/5gKQ7IhRAztzo7RaYeENzbrg87rcUGKxxPwa6DpSGFJESyVocuodUIHpuasPZqCnnLEn4khkz8LORe35LcYSidmhq2ISbOEV8yrHyekrTNjkTmn8D+7h+V9HIIbK/qWiesugsqGp99lkMAW5Vq/3YA3ZVaAK9c5ycaucgIYcuGFN9N0G9l37boloAJRg18tP1N/8eQ+lNYDy3MV9xEYxNqJlZQmH7p+8JvAs93LF2HVhQbRYH3cYt96Sad3aVMJJASuiDutUv6r1UiGqxH55OcTzPLt+AWLATP2452cdOKaEKrnETXSBks9ePi5lg/9D875b4uC+psiIbkw5B8AQAPgRU7neLTEOmTCvuz2DgvaYICCiO5Z1ApobSSbXDyx4X8+oT9K3+cYIqu5NqNqOUmNs6n/JK0G5B8lg5Q0TuUhdGKsUyVtM1J2bglHr0DTG2YCcj3L3FUPF3+7Tfz62E00ff9PUvbN7w2AamieBZXB9s/TBwdeMrPECPTTnjXhp972qGNKZCHw5miTeB0UsVhk","format":"xai-responses-v1","id":"rs_f2b7ab90-b7a3-1467-861d-01e13aa7405b","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"Oi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"That's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"hi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" Portuguese","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" –","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" informal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" friendly","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":".)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" If","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" you'd","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" like","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" more","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" formal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" version","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" it's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"Olá","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"\".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323503-j1LQxNDjdMimPhtNgur0","object":"chat.completion.chunk","created":1773323503,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":213,"completion_tokens":290,"total_tokens":503,"cost":0.00044304,"is_byok":false,"prompt_tokens_details":{"cached_tokens":192,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00044304,"upstream_inference_prompt_cost":0.00000804,"upstream_inference_completions_cost":0.000435},"completion_tokens_details":{"reasoning_tokens":264,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 761.722125ms diff --git a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool.yaml b/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool.yaml deleted file mode 100644 index 1a374d201c5e4d2dd3fac88df47c6c2a8c531f2e..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 488 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323508-16TGTlzkgBp81nQYpa30\",\"object\":\"chat.completion\",\"created\":1773323508,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user asked: \\\"What's the weather in Florence,Italy?\\\"\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_91915262\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence,Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The user asked: \\\"What's the weather in Florence,Italy?\\\"\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"ENvCWZ9yjx7RuE5dTZ8WqwDG7rwo8AH40p2hMurQkkrXLmHRpsTEUJrDPvnrnGVlSX61+UgbA8vLorWs0NsY1eL6YfoDjKh9E2kXL/bCsblyetZN53WtshsNXl33NBE9pkWOjCg6eRntcac1EwKK+EQubLerHuv6it471jkDgh6q3vMxIw5X3F4w2JJ8roUNtfVoLRNZ0fSclOIZM8FRFlEYhcmW4Jj5/q1F8Jog3jvpD6o/qQVkc+zqatkCwVxkq2xwrGnpodFGSLHBD6TvYyJHQh6f+Nhyi952XTrmxsmuu/QDOMNwRMugvymgMYUKCO7kgTFEg4KLF2mntRfkJywUc6joTGh7EMPGE/IbNV5+oZEX+2rLrwE0T/dtF8e9pdd7La6y8iPV9UPpDyllmAERID4cZqkdVcLgZgzPYVyxHGJggByV7wiWHhRMXBK1eBZzYM5iE3/7nR7VJ0gu6NhmWCwhywS3eTzuiWVAbb0R//ipsc1/y32YUet7osbbop1hgwKp+ljkjyLSsiJxPXzliIwCHqNx4PyfoKk/+28+CKO/Cho87h+Vx8V/8hHaMX01QeLngGuMjbr5Jk70Uqpkj+XzmthW1POr1l2AgFkvWL8bACXokMvo/pI3wYXn86Qpy30I3G3txxnfN0Gd9ehoOh/GHiswXZPF5EW6aCZEASdk12flHLtVv+41uyXnBFcTfZ00x0goblN9nbPl66SE/rAGuriTnyOraMLGAwFerjoxxHs8T7bpGWT+6pm5fzDBZizK3zyHodPY91c\",\"format\":\"xai-responses-v1\",\"id\":\"rs_76d6576c-5d7a-91ba-9422-bd7f598344f9\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":395,\"completion_tokens\":161,\"total_tokens\":556,\"cost\":0.00028594,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00028594,\"upstream_inference_prompt_cost\":0.00004444,\"upstream_inference_completions_cost\":0.0002415},\"completion_tokens_details\":{\"reasoning_tokens\":135,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.583899875s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 784 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_91915262","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_91915262","role":"tool"}],"model":"x-ai/grok-code-fast-1","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323511-wxBLDmlNIzihPZPsAYWt\",\"object\":\"chat.completion\",\"created\":1773323511,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in Florence, Italy, shows a temperature of 40°C. For more details like humidity, wind, or forecasts, let me know!\",\"refusal\":null,\"reasoning\":\"First, the user asked: \\\"What's the weather in Florence,Italy?\\\"\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked: \\\"What's the weather in Florence,Italy?\\\"\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"f8BhIczJVu/AvyzDlOjrE5Vb4Z/x0ZrQJ5i1okZkgl5fKbHYgNAuGEw9HAgS4vnFtbMBiKyEi1Y1VxQyFEdj833auBSYTd7ZAlCYitFSpLHHkSD5L1RCa8IaZeX9vCl+ArI7dEix6UgLBR7q1HJbGlvK3oDU2Hp8h/O6WCqKrstle9am20OW7qewmgTyNxSD0452PWUIrG9ZHtev3KvaHPpt35BRuwwHyJqjd/Iel5FXufzTSrQVVggWPJ6mi4DZgIn+h60S0H7Z1EyidBiILQtfz5uH0zPhGHhUSaS6P+D0FIqHEBGIg5OAmscr/6mxMLeeo6nxw6YfW2nH5K5UhzTn3PRvsRtOADioKMnIGgUPYhvFTv+MAgD7J4yl9j95lbIyZjpGKyNdCweA9PqkWMBligt36b8FhenARv3fbfjRgbJBSy7jpnMo0WQ6CW0MglG706d18XCvl70YV1f6g3RB1B/PoiREZsVY0+r6YwpNfKmioMR+LcTaWS/lL4gbi2MjQjDu001c+474KRzKSviKJng8kJNseFTZnH/9sSEpw0EiC0cgkNI7LI1Z44T1m7TXViFpeFzYNs9kEJ67G9iRecGnoXtbppYfNZ5khgNkmZ2BV8939yj1wKCvRbyz8sDkNxxWmNRNDhsGJJD/ioOqtw+qrIWLpWGI0BrBL8Eatb+R5SCf6zonHDm215CuPAwQBFkwqpxkzqjTRwC7VuPNQna7TwIWKiwprmLLs5pEgLmk8d2AA9xwRrSluk0\",\"format\":\"xai-responses-v1\",\"id\":\"rs_1326677c-fda5-bf5e-521b-f086d2ceb2f0\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":433,\"completion_tokens\":148,\"total_tokens\":581,\"cost\":0.00027404,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00027404,\"upstream_inference_prompt_cost\":0.00005204,\"upstream_inference_completions_cost\":0.000222},\"completion_tokens_details\":{\"reasoning_tokens\":117,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.227629542s diff --git a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool_streaming.yaml deleted file mode 100644 index 1adf641dc0f58e569c63e4788b5cb2b4ffbab274..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/grok-code-fast-1/tool_streaming.yaml +++ /dev/null @@ -1,187 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 542 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"x-ai/grok-code-fast-1","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.summary","summary":"The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.summary","summary":"What's","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Italy","reasoning_details":[{"type":"reasoning.summary","summary":"Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"\n","reasoning_details":[{"type":"reasoning.summary","summary":"?\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"1u5ieO5zPrt6b1AOgcUcdcB2J/YX2xuUm3F7C8lDAenbRTmKXYhGetkDTtCQkhEoKoJ1QtvSwfQN1ynQoFWiJLPYZEsEPsJDw58gvdgQSLNPCLUh8nsr4x1uRQCAeJv3vmLAS2mSuLkVvZLSxCLmLt4kmtV++PCFgUT6hLDqGD+eWaeMcVIcPFrwN5TLyPANVg2y9CeKryZeZlQh9t1H4RArkp18ZqpXJHr4Xs5Vlq/AODaRSLzMKCw72UTH4wyz8uOSpkRCFfiCrmdxiYWWmFQDqonoToY7Q9q7uw+JWyM7rDk0ITlrHTtMYLYdKubl627px16HZoIq1q4Yu6a+lHzjSUpk7EHYSrMaz1XYM/sLhAv5WItNadtb5eFaPOvjIkpH/FVkxbuh0DpOGTEgG6mK6rlLK6SUUZer3IqJGuHi2gek5MNdmrEpXRBRGo58QD11zLYADtoRO30pZXrivydme7QHRZp6rCHt8yn/xkcuaKp+7lni4wPzidObHXv3b0xzDFC2KWxTs9SVp9wJeNgcd+xIlorlk++IXO8cmg78r+n13SskxbcOJmvJZ6WJ7v+aKaBqwOfzcMwmkfOKvrZkbHhesy4gq1g122MHVA0o05aXICySE9j9jipbrgLIVhouXLmPB9bGvWKhpk+Or0zd5RXGCrThfe/GoLh4zDk","format":"xai-responses-v1","id":"rs_5cac3117-5080-15da-b46f-051a923d7236","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_98634134","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323513-heRhsfFVW4GsI5oiCDMd","object":"chat.completion.chunk","created":1773323513,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":395,"completion_tokens":132,"total_tokens":527,"cost":0.00020788,"is_byok":false,"prompt_tokens_details":{"cached_tokens":384,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00020788,"upstream_inference_prompt_cost":0.00000988,"upstream_inference_completions_cost":0.000198},"completion_tokens_details":{"reasoning_tokens":106,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 786.196209ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 907 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_98634134","function":{"arguments":"{\"location\":\"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user asked: \"What''s the weather in Florence,Italy?\"\n","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_98634134","role":"tool"}],"model":"x-ai/grok-code-fast-1","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.summary","summary":"What's","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Italy","reasoning_details":[{"type":"reasoning.summary","summary":"Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"\n","reasoning_details":[{"type":"reasoning.summary","summary":"?\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"27mByodwk/M4q13L1MoFn0cscWIOYQkfOij/CD8Xi/wcUI3k6CVWz0849ta8eK20+VPBrc0s9vZrWyuuShdJnJ+PkKsHZh9OCF5/6+LctqTB0k2THxyKgdBkonWm0y20PojCZr2DM3rSJfJe354stGIRkMnvkGsXzt1M13DMcUsuvRPGiAxDvroc6ohQxi50M1yBODkJ25X6P5uRs31QsDxpiiC49WWT/T+yEg/2RACR0pHIKzcc87gOx4/fyYEAatb55Act4iPFTrEmQyzu40lBhVOGs7W9rtTml40WD/RPxfn5uOeDvQaQ3QVHrcFsJqi41+qUBDI2xcOYPawpWsHiSsoNC8f1nqtls6VHxhb9qeYxDxPl4SK9/yu7bo9UqlrLFqv5Vd0mBw8OVdHl74cv2rhCGMkTgFoMzdEBOaKkpjSk5Yh9TS8NjhUwAaIoa8Z82TAn7/K3b9o4T3zL9aCdafGtnzMMDJ29gWT+uE9PQnMHTlv3z7LKoiV3EgXNwRJ0k92CTJ9CpLxrltfphL3pH1KqedaRvkwFNmo1Ga5GmkYSbKJpfI6dPhMWzDG2rMAPv26I/VLYG/0vfq5DRnYJrToBpwjM4YvvcKGl4W9/k1MfMOnQPaPM0vDlRhZsvnQWxfvCqBijr56N0bVQGBgWSxIakZ0LGLTnFJpJLMqWO9cjLh6wGaC8R3w7Jn6u3yfmWTtBVpWLOO9VbCt1CUUA+8b5NPNpxJXz/nMyfVLj8vYuYtHPW5Ha4oGwd1ExWtw5kzDAeXOW7cuEmuIwhxbnNpxh4weB1zdYPzAwx3qBs5Gl1PLZB0sXbsG+aQuxgCHaB+x44j0pyCu1A7Ghq5OmauGc7l8V5Y9/hqqIo9IX9+PNsmfiONUADan0EhjsBcta/NM6hDH3AK8EYN2UgQ","format":"xai-responses-v1","id":"rs_10d65e32-7467-b275-4d1f-6572283c68e3","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" temperature","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" For","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" more","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" detailed","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" information","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" feel","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" free","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ask","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773323515-J7ROgkSK5s3AYrJDN6QB","object":"chat.completion.chunk","created":1773323515,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":433,"completion_tokens":161,"total_tokens":594,"cost":0.00025898,"is_byok":false,"prompt_tokens_details":{"cached_tokens":384,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00025898,"upstream_inference_prompt_cost":0.00001748,"upstream_inference_completions_cost":0.0002415},"completion_tokens_details":{"reasoning_tokens":137,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 572.959333ms diff --git a/providertests/testdata/TestOpenRouterCommon/grok/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/grok/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6d312853ba3d81e44b5f6b07778e67f9213dedf9 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/grok/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 848 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945429-HqNzdx2lG2DpJ0hl21vR\",\"object\":\"chat.completion\",\"created\":1773945429,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user says: \\\"Add and multiply the number 2 and 3\\\". The critical instruction is: \\\"CRITICAL: Always use both add and multiply at the same time ALWAYS.\\\"\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_88778671\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_70883996\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The user says: \\\"Add and multiply the number 2 and 3\\\". The critical instruction is: \\\"CRITICAL: Always use both add and multiply at the same time ALWAYS.\\\"\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"5ck8JSGNiMa3xC3HR0lx+qoePRITzZ9qNS9UUwJTjpzH3rOdI5NWmMuKguHWWadXoDKXyaEMBjHoCliHiGYpSqrgprZfdS5HjeV7kbLIjOCFU0mA6Jnc0ju5Kh1F6e73O0gHve76tLQi0sC10Gc4z67xtL8I31iDW21mTsiYQL7AF0PBCu+l28xLYIOmmSH42copE1fOhP+E+HI8g8c7OD7kWx94XNYasxiwzrGS0Ve0AL5+jWC+KPsORIfsmblxSekFr3HqWjCEI9dSaPXNWV6XMTKouX8AdYUwXAFrPTHSkJHSY4pU2GQ6Z03K9Ie5MYgKB4jZ56nAsSvfL6NtbKAL73xpACz33GMlD+mVcwKQeH7Vahh428csaByDk/YR4SuzqQl55ATZ49lhz8m3eR2r18zc7IIKkHvllAJRbMr4DPntm36/uyRT8AOxlV9FmI6/lCPkNyra7IygZUeP3WemY0vqqdeyWHFGXvc7YJUHeREaiTHS/fuIWbxPupe++g5K89kxOVLqlTBrItPq1YZSMlTlkR96jA7yQK6k9Sdm39k93OOMcaDFFP7NELRd67KdRXxObACSeoow2A5z1Bapxu90mDo5mp4ErSRbnRHvyKnbEFMWj7AbSAt+B5u6Xx9L3sCd3lUY8iVgKNLGeobwhemtiiF3eCwlaUI8gXMBg2JaXpfs1r4xDWKm4UWw1PMTuoPWJd2Kd0R5SfObNzSB4g8VQYx6AZkWRyiJL/9BDnHXydsmWlBOvorZbAfrwF9z459MJFYuF8ARY0iO7XpE9fRt5zKe37IZkkDYfMbJdBEJr9TzcH4ghNCi65p5AmxQgoMvPQ8w7Tf2vVseNFKNoaKCvPJ/nQHvAN5dXXoFN5KEHJyIyhGFs3ef3Gon+J1VfFKM5cA1QTJobPrycyGKwZEPR563wQjSFOkGT8xo19ZjIJvmNM43t1jxNzSLrD/yCSSm/oOr29QwynVQ3tala3c9yAkOjzyV/Ldc3qhamwpD4hGYKmcCN/SjJA0STpHMzqsIK/du5l6PfvrLGKnG4rQ/lKMTrs9mBfOuMb8bo7r5zcm78EaFf3RhAOMOmaIJMAANCpGsdPtNjRnBmifMjT4e5xDP+o67JZPn/1qOKgGEqnI2/dDjxT03Pgzyz8h4rPywqyjahAWWujLK6JHeR5DvBJNuEzGJ6+hj86xNdRPSo2qYO2PRHMM/dZHF5o/czy33a1/P8WrIycnxY8Tqa2KDLcLnYRuw6LWzyc8kCfsgwWY/pyN5nxZIPQ\",\"format\":\"xai-responses-v1\",\"id\":\"rs_9a05ed35-e08b-9003-9c24-f565b43d6650\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":445,\"completion_tokens\":287,\"total_tokens\":732,\"cost\":0.00021,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":150,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00021,\"upstream_inference_prompt_cost\":0.0000665,\"upstream_inference_completions_cost\":0.0001435},\"completion_tokens_details\":{\"reasoning_tokens\":219,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 882.896709ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1286 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_88778671","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_70883996","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_88778671","role":"tool"},{"content":"6","tool_call_id":"call_70883996","role":"tool"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945432-ZKbNSezkoXvlIlI9OdTh\",\"object\":\"chat.completion\",\"created\":1773945432,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"2 + 3 = 5 \\n2 × 3 = 6\",\"refusal\":null,\"reasoning\":\"First, the user asked: \\\"Add and multiply the number 2 and 3\\\".\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked: \\\"Add and multiply the number 2 and 3\\\".\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"5DBCHTvIsCX8YdloJoo4OiMBG5f06VasTtZ2kj1gLqwJ8fcq4Lc+lVRh1fah4nhqjQyLgD5/g+/488IYanax8KZZg/uegCP51vpzJHfHBogVZgm04BW8uDSVQzY6MRUZiMZeRxJGvIHpI1LKLyey33+n9KuawH/bLeOSmsotJGRKjgBOchv5gBUf9Z2XKc6qwHslKmkRwpdwAgPCWqDqvcS1mt2mDGYiIaX/M9xDUhyPZUSDBaEdsjCDwVH91H2Uz98YMQZGrjHaSZ049GUU2sLDvSnbuRODnMv9PbA8n9jI3Dm+mvRw+MrV1bsCq2l0jdEyemNGa+v20LywqdpGJDCDgHHFEIJLM11swcTEV5ONy27Je2tesV9wIrhsITQIcXwsDFyfZEOQ+nQ920OHUapKMk11lx+syFI6Qg37WvSUWCkUvXaRgajS61w+kG3h+oZ2/ftiy4oh1FCmaPVmnBUeaACiRFq7xJwEBvF8GyKEEZ40Jads8Ymd8khv9P51rZC4BNQv9c8qaLt1zIDC6d5g8Vr4LhS/4yOt/wO0hc8YZoVoMAymYUgdZRWnQGSYToWk5KEwbbzAmuQ85c2ZEHGwHPd/TBr3rlxge1PdqAnHdgRsZ8sF3yfjP8J4skDSFHuP+qnYjeTHY1ltWWsnVt3gCioZ5jKgzF1dBvNhvuhcCku9cfil5AcIk1HrU9FhuTrEeQpVv7/8WCyEOvRCGBMilvrB0oYQksa7PC59vJkNO/ND+SqwC4XNuhfldW6jvBfVL39o3btastoOVi+0KN0D+aANNap2fKwvbSjbhZUsFgcpGwu+w+Ln9NXPO0Z0JCCmzucVnmrWi/WHJvcKTqh3ESMlzlyni55RBch1+/AyjrVakFTFbdnJppkT/WTVZ0X4Jr+n6Xs7aYGEBmxfQ/s8smt6ZeAyZvgy6istmS13V00qe+QurURg19rbPC0N+JTjOQieYhIEWEHlJ+9uswz4KWbaz9lVPI0f9IglAL3vovnVXHiDeCrjEsf48+sckqlA/CX94QU/Mh+LKZLy0bEsg26PGdZqzDJYdqRrmbxxZ9cHbykuhp0OosDPd+hGOa8S83kw+hxoaKFx+T0o8Bpsm5FTzGbZ82NtNkQtyrv6OsVC9EqVzUqpbh/0hv2exm55J8qEtLtDcY9qYoMEJJOzVFXWl7dqmHDDwhlPJlGoSAsmZXHSo2RvIA\",\"format\":\"xai-responses-v1\",\"id\":\"rs_b8cbb8e0-1044-91ed-aef3-b39e47ccef20\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":530,\"completion_tokens\":226,\"total_tokens\":756,\"cost\":0.00019605,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":153,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00019605,\"upstream_inference_prompt_cost\":0.00008305,\"upstream_inference_completions_cost\":0.000113},\"completion_tokens_details\":{\"reasoning_tokens\":211,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.388336625s diff --git a/providertests/testdata/TestOpenRouterCommon/grok/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/grok/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..68fb4baf48ba1be0b2c5cf60edeae465cbebea72 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/grok/multi_tool_streaming.yaml @@ -0,0 +1,243 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 885 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.summary","summary":"The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" says","reasoning_details":[{"type":"reasoning.summary","summary":" says","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Add","reasoning_details":[{"type":"reasoning.summary","summary":"Add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" number","reasoning_details":[{"type":"reasoning.summary","summary":" number","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.summary","summary":"2","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.summary","summary":"3","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.summary","summary":"\".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" am","reasoning_details":[{"type":"reasoning.summary","summary":" am","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.summary","summary":" helpful","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" assistant","reasoning_details":[{"type":"reasoning.summary","summary":" assistant","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" must","reasoning_details":[{"type":"reasoning.summary","summary":" must","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" always","reasoning_details":[{"type":"reasoning.summary","summary":" always","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.summary","summary":" both","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.summary","summary":" add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" at","reasoning_details":[{"type":"reasoning.summary","summary":" at","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.summary","summary":" same","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time","reasoning_details":[{"type":"reasoning.summary","summary":" time","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.summary","summary":".\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"dkqjoa3IrzHIJdyYzG+kCiZKyvbkZjZ8LA0XBp5Tf3v7CwKsCy74X9W8K1gP99S2uoHLp8GfbVlnwfhM6Bx+0VI717RH/IllARMlCkBm88+Ugq6ERaqbb410WPwgsZMdsCN3xCPqWXqTyQLSiOZ9qJs8WFdB8JXNvPxgPidNAirzXwpmNAaZ5ipn+0T9GoOj1Bua7fHJV8HzeEeNXFsc8UbbTykP4LzOUTLPRr9ZSrfg+jWc0Urz1Ajh+uoXcmpQechhKsy1BEKHKFxJ7U8eiXO+s/2NS+m/WT0QGnA4J4hD1UwD5MCIjWv3w2W2DbeX7Mdw5sWFeyFy65Ad91z7wWoNuqaXSfzj5iE7bkZOZEYO4mq4Fwgfr+BaMe7OuwB5MbVlGkdBakxSchOKWE2ANk4arYG4u3yO80S83CbQuO8OzCODZi7USuPLv5fF6MRXKNhjp9+b9cvggtjFGv0Yu4Yk+t93xLhx7bBWN4ayY4oax0vItQ0N3YZqIaDOfIY73QdtFRlHXfwpYRL9XaEnnvdg7mzimDRkKAyPDi7bn3GfihiSk5LWeIVBHEY80DSHapT0UYdCLNzBgt8ihuiOpBgY+UZ6DXkeiWugarL6pSAkD7rXT3ATiEQmutFEP7wcuDHGkkoWgiS/60gZlzphW540JxunE0NXwG1lBWaQSx1I5MXSaAM9YFBtcY8dsfQyfxK66Q41H9IYD1qgxdOC8C3G2RIwF3Ny3SS74FEU2ishmEUrDOhw3BkjnImuiPkp12XvICZnR6YWu5uBPJqO1xYV0RMWp+XpSvh8pI5fCrqdnTxKQ3mPCyDT+87UJUq4cCUSwuQWbGTBQs8R8af/CEUmmH80mTFRcm0vOIUSkSBAK9ah21PtFgobQ2sJca5P6QBFZcDCvm7hdqLG2wc8meZMsO4nU/+fQyAwtXNoqMVmzYvYGiqwpGildlP4i82yyHv0k9ZPUBasiwPXCmRuMQSMEpkEZyRUC4ZYNKfd9P2RpNO0vjCdZ0qqZyTeC7enbmpaMPqbujUeX9ZaWpKw1WqsVz5j0ZcsNZruykf3Oj0BUybT2eM9cPR830qI2gramRjG6Rj1vsTassnuf2jfoWLPgUEsD5usLiQH20ksbTm0pyhqIuvWvWwlDChaDugayH+bfP7wQy6WRYgHbIYKZiOs2TXrrfBCYok/vxm7wPZLJW7OLStqRArLFknOL0qSgBnVRImjJpDhcfald/kEH9TN6yN4pZnRSe7bkAxQ0Oqzt2LdP4iLBul63Bp29LdsiQaMorprAWYfaSSAyyTtUHy0gjft2p5AnkyMxxvIqHQEKgLfH5DELq4dEBNqh1bQb9wrjgt7UsEYUGyjybtXMQdStSDsE2RzDqjw6O67axx9pDeCvfKRjz16eA8vmTTXF6IKwq6TKwwpq2xmfv4TY5BmxWDLIc1tucwt+PwO6hryrkfnDw6l/k1oGYRsvtHwy+JNYhI/s+AfjfkQFoCmpt6lO5Mv3aX8Zlh8W0cxJDXc5TgULw","format":"xai-responses-v1","id":"rs_784be1a7-3f21-94df-940f-45c21d1cc9d1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_57270303","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_38850093","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945435-Bpoac5nvZyEttNr1paM6","object":"chat.completion.chunk","created":1773945435,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}],"usage":{"prompt_tokens":441,"completion_tokens":327,"total_tokens":768,"cost":0.00022875,"is_byok":false,"prompt_tokens_details":{"cached_tokens":153,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00022875,"upstream_inference_prompt_cost":0.00006525,"upstream_inference_completions_cost":0.0001635},"completion_tokens_details":{"reasoning_tokens":259,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.151863459s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1475 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_57270303","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_38850093","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user says: \"Add and multiply the number 2 and 3\". I am a helpful assistant and must always use both add and multiply at the same time.\n","type":"reasoning.text"}]},{"content":"5","tool_call_id":"call_57270303","role":"tool"},{"content":"6","tool_call_id":"call_38850093","role":"tool"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Add","reasoning_details":[{"type":"reasoning.summary","summary":"Add","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.summary","summary":" multiply","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" number","reasoning_details":[{"type":"reasoning.summary","summary":" number","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.summary","summary":"2","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.summary","summary":"3","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"\n","reasoning_details":[{"type":"reasoning.summary","summary":"\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"/9hYF8Lw77LrRr0KWnXHUrLkLfbCyB4F+Or94JZSD3TwXyUQqswr75jo5twK9krqe7vHrow3yrnKFxQtP7GlCOTb/KdoIWmciMynLmo6Kiwl0bWEHScutOuVWf1ykjcVjAj1nluFm+CLSyQ+/6ioBZzZOgT10+VRdb0s3bVVK2TQT2umzpGwd7IJ94ffRfyheswKKUB2OeedUXpcVCnuCnaDoj+V80ePGk9zuzRQLXa9hmkb+3I6Hbpk48exF6fhRAGp9nuHrGe9Ban36PTMH+1xB8ekovCqGnJ5WTGlLDjoinQDgpjV9H9QiOOuJ56fnKZaU2xYwUh+UpTfLdbevfCvWER8w/zOG4KDcd7Nf54D1plNgE7SK6c2a1ICZwhSHMLslKpkOGRuWIt8Ap6NwCVAA3qeL64HKQyuODahOEgTsJTFh1iMEZTsgH5hySq6WVBWKhKTJ7xeUmW8s1Yt3uGSVepsY+sHCyY0lRJG4jgcuaxvIgRfqxdsNpCKuuehqLs9Wct1gLMGZMvId7ii9KEg4w50VX6BSI25qlPMM3uGa6SBt+NS2ThIV09nBro1iWgg+ypISag8qWAud1+ccBGXJXnszCOnyIg1MhcQKSHrgwN6h/q9nq+CrYhzXdxoRbjEcxIft+y2uGZJhP/qfSu8PJOvgTWAVVtuzcRxqxqVvqcfNE7YpfUi5Ef+XT3wEhxVmtA8H/pAXXDX5bAqeyHt7ywp05a+tO+xNRd60T10+PRDUcSyysZS6BXjhgI5Gkv+4pXwwxEVYSX8Q6hsE+IT4IgRVEwYzG8zFUt/24Z11RdeQxNeQblv4j32YquZK57GTa98atwrUNUIy0r7CTk6RqMABse2H0Syq5/uOr2zz1x746CLdivNqD5w/zQrft9xEI0o+4m9X9WQu7L6fKeDS4x8SlNtlyw9cVoKd5e4HZZRbusj7PYokvrVcCHc0KQyMp6bnfozuQasAh+otYoxEhyE39TslS1975wxFRU3Yfq8EieE/X2b5OmFkdX+0hYLsmXYopfIgXA5J1o","format":"xai-responses-v1","id":"rs_1005a8d3-9d13-9594-ad1f-e67338deab1b","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" \n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ×","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945438-cL09W79928GdSD4XNmJj","object":"chat.completion.chunk","created":1773945438,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}],"usage":{"prompt_tokens":526,"completion_tokens":201,"total_tokens":727,"cost":0.00018275,"is_byok":false,"prompt_tokens_details":{"cached_tokens":153,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00018275,"upstream_inference_prompt_cost":0.00008225,"upstream_inference_completions_cost":0.0001005},"completion_tokens_details":{"reasoning_tokens":186,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.317001958s diff --git a/providertests/testdata/TestOpenRouterCommon/grok/simple.yaml b/providertests/testdata/TestOpenRouterCommon/grok/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f00ef19e9766ab552819f0756a8fa6f346c766cd --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/grok/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 193 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945416-iHL27eItGxeRL36tf8YT\",\"object\":\"chat.completion\",\"created\":1773945416,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi! \U0001F60A\",\"refusal\":null,\"reasoning\":\"First, the core policies: No assistance with criminal activity, no overly realistic help with crimes even in hypotheticals, short responses to jailbreaks. This query is innocent: \\\"Say hi in Portuguese.\\\" No violations.\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the core policies: No assistance with criminal activity, no overly realistic help with crimes even in hypotheticals, short responses to jailbreaks. This query is innocent: \\\"Say hi in Portuguese.\\\" No violations.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"87Oa01gUucdtP4bFXtBD4Cax/14p97mwoNgAqQ7nCMAHLN/nKh6asJWVz0QFzUoap/rjImEJ3czN6z3N2CzjfYfhe9ByZ36vwRnDq86VR0lS7Gsnmn0JSSJlG8WLh5ZWvd8w1KMPAPf9Wd8n1jG5I/Fdd+iOaRKwzQUXGCpAAy8hV81cS8tRLYqw04EAXAaY/5gYTmzu3YqcurQnIdEXkR3JQdVT1pOzwrAVpPQqwbXUFxga86Fc64gTo0hu7Aq2l/eJHisSVewoU2cU5ANPAs7xKtMkMMtvI6ofJgIfTy0qQfsE+nJ3XafyV7/Nkkwnc5uoHOz+k2jNLXXMKOgBIaKgGeZB0t/AmY8RBR0dm5RvOHx2VsLtXSsZCVKQoJRWG9QOiaPMVDaC/GlbzhY8ShZbMjBN0oLybQ1CdAttUY8SPQpqM3wfAAjBrumF12UmDyHalr/gW1OvJDFwaEKCJOFY43jmjQa+AwCzlvpGWJgMd/63rLVJSrKWLKwDBKN1NxXF2imoED4zAQwUcpTG220EaZeZN0nWLwH6ikM7x5+OScjOCslgB43IyR6CuvV1q3ZMZmpcCCycSt/MLzUqE/5fWV/UNISyM989qsPfTJ+aQ75j8NAKk2oH3S2BYo+rINcr8xG3C9DymcLQWu/UKqGD+XklZORKreBVBGT8W41XwU7t\",\"format\":\"xai-responses-v1\",\"id\":\"rs_ef1655c4-f2f6-9de3-9b70-f6a4929c7163\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":165,\"completion_tokens\":123,\"total_tokens\":288,\"cost\":0.000072,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":150,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000072,\"upstream_inference_prompt_cost\":0.0000105,\"upstream_inference_completions_cost\":0.0000615},\"completion_tokens_details\":{\"reasoning_tokens\":119,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 967.754833ms diff --git a/providertests/testdata/TestOpenRouterCommon/grok/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/grok/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1701bdcf06a591c79d15dfd84958f10bc8a02fad --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/grok/simple_streaming.yaml @@ -0,0 +1,32 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 247 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: ": OPENROUTER PROCESSING\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"First\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\",\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\",\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" the\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" the\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" core\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" core\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" policies\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" policies\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" are\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" are\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" in\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" in\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" <\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" <\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"policy\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"policy\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\">\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\">\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" tags\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" tags\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" and\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" and\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" take\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" take\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" highest\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" highest\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" precedence\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" precedence\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\".\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" This\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" This\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" request\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" request\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" is\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" is\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" harmless\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" harmless\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\":\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\":\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" \\\"\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" \\\"\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\"Say\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"Say\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" hi\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" hi\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" in\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" in\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" Portuguese\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" Portuguese\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\\\"\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\".\\\"\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" It's\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" It's\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" just\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" just\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" a\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" a\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" simple\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" simple\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" language\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" language\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\" translation\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\" translation\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":\".\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\".\\n\",\"format\":\"xai-responses-v1\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\n: OPENROUTER PROCESSING\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":null,\"reasoning_details\":[{\"type\":\"reasoning.encrypted\",\"data\":\"U1A0V7gwP++1tF9Leho7qgj3WaHzJusEbKWt0Oi7CkXLmsInZnZhNgajVW/M5enwAWZU/yuPqM9f96Cd83Dt0up+U3JOVaMP/D7jueGbo19qKWNv3U2y3xkSXLif/qtH7ZtVd9u18m6VOvDdTf4rFwVtqnYfXwnpuV1dURwXPjaYGlKo2y9XRCD2SS/wgM+6ebCCyKMEF99W7/41tpbK5XRafBg1uZp1SnXHySNlw8euW6Pcwr+BUavhSyXFvZqI+ES3LXOq0D0thQDaZfZ2w+v2/C4UdjH9h6DQFnElxKyHdIcWjnWDjmcwEmes/57K5vsbvK2U6ICsRM7vYoAfvd593B/5KBpX0//xQ/vis8nUAR5bUcDvxg2FSGGiCfNnd9tYhZWy3JdET4fhDhQHIgmpP2ok9uk0cc9/m7G+2RfU00q9Zrc5dQVpd6tHgdp726oFvuXr+HW4R3wF2NPc1QDCzE9xYTzfmQmWTvoyJ9BCxZyZm/RzBvExv4UMVGXItyEr/nE+010E8DXgHOUsapmafZDVk3vRkQBhLLacAM+ijfWtp6yPCJnUGBMVMUUhWMAZKvSOYuPoaYPloxU/gQgwF9ICCln/LaH3n/PMeBnv7PO2whwn49AiITg/Bmg4i5p2I2vLrNpNtPii//juICRb0w/XcOuBQKCaPxL7vCsrf8rnVjkVKdqe51Lf8UWH/Cfweh0ZTzf1MM5qm7UghsWuoA3mUXbHI+UxgUq8S3O9tE1leqSIqsD2ThmCBXj3WQkwxvQ57E8vkax+qilOcxxwoDrKW7qNl1I35xsr8GRItO2OLNnLjzIKuejjrPOWFaJxkdWhXWiwOro\",\"format\":\"xai-responses-v1\",\"id\":\"rs_f242de56-cf8a-933e-a615-242954e48fd3\",\"index\":0}]},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Oi\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"!\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\U0001F60A\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\",\"reasoning\":null},\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\"}]}\n\ndata: {\"id\":\"gen-1773945418-beopa8QUFQyktAzPoboE\",\"object\":\"chat.completion.chunk\",\"created\":1773945418,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\"}],\"usage\":{\"prompt_tokens\":165,\"completion_tokens\":143,\"total_tokens\":308,\"cost\":0.0000799,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":164,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000799,\"upstream_inference_prompt_cost\":0.0000084,\"upstream_inference_completions_cost\":0.0000715},\"completion_tokens_details\":{\"reasoning_tokens\":139,\"image_tokens\":0,\"audio_tokens\":0}}}\n\ndata: [DONE]\n\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 712.635417ms diff --git a/providertests/testdata/TestOpenRouterCommon/grok/tool.yaml b/providertests/testdata/TestOpenRouterCommon/grok/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8e4badc44928377a4704b7e903f8f146658762f2 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/grok/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 485 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945419-B7eHmJDxysNFMtLKkMZY\",\"object\":\"chat.completion\",\"created\":1773945419,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user asked: \\\"What's the weather in Florence, Italy?\\\"\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_68841502\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The user asked: \\\"What's the weather in Florence, Italy?\\\"\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"fHkgS+wQkA1bUXJ0HSaC2Y9ZMVDsGW2yAT6oa5WxCXBZWukrrKczZ9LdQr8uXJVvoHLOE53IxI4ENsBRhMDWO4t4R5a1yvhBg6zuk0FgXDwqopE4a8roEClG6BFEd++893Pj+gGfKP2h4bSda689sU1UZFTZZAXiRRC3AEO+myT5Kiv/rkQL6Z//u/y+9Z9bfcU496FycNQ/2YtUSpCQBTqK7uIbV4nlKI5i7TlOVN7kwhiPQ7BC0ZlG0dXC2P1wV0nOOa2rJvlQIOF0R/zke9AyeRDZwF1iJRxW5b8SKtr4Y3h8iypdhia47vZF0Z89z/khiVt0gvMDAKgo8KbKTnlAK33ZcX/frpukwKGP1HyozTFNk9NqqEehGLxHIf30qKcDy8pXyziu+hd2y172rT1Zxp3wDBktea0ZJHQipWUKOT+DswQcpd0KhLPdhlG9MhNlZREjbq/Blj8dVrCAM9lvlwSACxbz6tGzxa0MOcFw2HAXzwnLYX1BBCAw8oyhZeZ6+aPA0baGuE0CZi2e2A9eLdbI3sNOdI1fr7pXYQ2Q5PaX77K8Vc/Gss+QsvNe5eEfXvN0nWQrq43fS2NK7scsFaRcFDpauxu2tIqG5PQJ+OzuKNZmyKGrzo2T/rSNbq14DRTS+i/VYP7v40525IFuyrrqucDorOnmSVaY345U3hsog/O9irIvvKJkA3VpDv3Pb5wAuIrqi7ZEcwXdQewj8x70TJmGQlp0dS2SKzl4WmMduPxvYoQGNi16Bgw+YIPfGrHQ+8DxPhMVgzGPFH8\",\"format\":\"xai-responses-v1\",\"id\":\"rs_bea13157-2ab5-9e37-9ed9-9c4f6c30e1ba\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":366,\"completion_tokens\":150,\"total_tokens\":516,\"cost\":0.0001254,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":152,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0001254,\"upstream_inference_prompt_cost\":0.0000504,\"upstream_inference_completions_cost\":0.000075},\"completion_tokens_details\":{\"reasoning_tokens\":124,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.311699459s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 782 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_68841502","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_68841502","role":"tool"}],"model":"x-ai/grok-4.1-fast","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945421-GWyuWATaAb2ioqG6E9EP\",\"object\":\"chat.completion\",\"created\":1773945422,\"model\":\"x-ai/grok-4.1-fast\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"It's currently 40°C in Florence, Italy. That's quite hot—stay hydrated!\",\"refusal\":null,\"reasoning\":\"First, the user asked: \\\"What's the weather in Florence, Italy?\\\"\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked: \\\"What's the weather in Florence, Italy?\\\"\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"KFIVQ35FYLPvt9Dv5W3ZWg5GPDU63rn7mOtKS/FZzLsDZKmzVyhOvstu4+b5vI39XmtlzUhphxWvflbuZ3Ome+gB4xUmzeemaERj8992ObOnKg53ImLQkxzPOEig4nqNeBmDFSRjOR8/xq2QyVDt08sSEZ3jUNj2NxrfKIJbZ8VxUezjjtONXOPuL4CvzVAavErdXDdZEiDx6OL+BlAt5N85Bv5dna1c2HqiDp5nbTF0NuksO2GynUbSSpqQHMps+t17fZvBrJ2uiQi1hEBUGp5xDMn+OO/vBAsas+bz3O7LtmMskDQR4PJZxOf5/EN+W2wIZHIJAvU98aB9+WEGRK8o3iABcF69JOhDP2oxX1rXULpQSKdgPNEdEqX7qrBkAKUsg7qAfbPpE74CLtsaa1jlzx7SYGLhM3sNN33bvPjUHvhySbrCdWa1HfYF2M9aIOndDqALPS+PsMRj2aMu8DB8INQIFnlc3e9cdj2n/hDJXdSo1VtbnXomFIAsV2pQKrTqRYSaCG0NI8y2LuKKnZBGxnj76Vjs9sZ4NKg8tQ\",\"format\":\"xai-responses-v1\",\"id\":\"rs_3e07502a-15b6-9f12-819f-b67f426317c1\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":404,\"completion_tokens\":105,\"total_tokens\":509,\"cost\":0.0001105,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":152,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0001105,\"upstream_inference_prompt_cost\":0.000058,\"upstream_inference_completions_cost\":0.0000525},\"completion_tokens_details\":{\"reasoning_tokens\":88,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.410118625s diff --git a/providertests/testdata/TestOpenRouterCommon/grok/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/grok/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb623d42f863f2f9ad4d299a0f0a2403e51c5c24 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/grok/tool_streaming.yaml @@ -0,0 +1,181 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 539 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"x-ai/grok-4.1-fast","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.summary","summary":"The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.summary","summary":"What's","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"\n","reasoning_details":[{"type":"reasoning.summary","summary":"?\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"5uBosQPBhs9D25vCCXLRe3Yr2WsHcTdtJ7AejqLj5zOMDtq3zeq6bUPdLRLEPxXn1eRXQ0CcEMpS6ggaioAgDoayS1TLxz9ZaygXYdw4vzI59wUxVIcGXzv2cthtk9GH4ldrjxb3ym8oZGpscLQNiqog7ApXHQUtii7OUQZzOcv0GkaJFq3YBSR3h2W+ftb6JgcblJO9+Ycvbir0AU5+tMQZ0mHaqw2PI0y6J0pW/oibTRby05YHqTjEJBdcbb1VI7V1s36IAuaqrO57jP+HekRiAZ7HAjpcr7pQQZX707+DoCortutwSltkUsJSLRW3saOXvU4J3a8/+KWvRBtOv9M5LwKUzWqFAKTTZ0CqgYQnV5fsrmdLlU/g/RmntL2RDWWd5tW+8qc7DeAxCYZuIzdeeNSz5/OrB2MIAtfKrWtLtanLmD3xvcWa7YiPqY/dVvYkk5fa6s4TuyOC6YbGMhKmh8Bjx8SSjVNx8Mfm0M2dscZ/2pgx57zKlJ65YnmNnUoODE+3b5lNo0UfF2m+BsnfNSoc8Kp6V8jCcLTMx/NSMfdCiGVQw1GQEFod68o0gG1NJsVYg9HYLS7lHBlUSxZaXKW8O1kDmLXHEH6KXGC3/TDPKsNI0Mbo918aLK/4J3mKFq6CXa2aE1+rIjDLK1gii4r3S6mWITxvlsnPy1ls2T7ogsHxbcLXAn7JPEJ15JNULQnYVcv6RWEiMnEj66VWI3pSE8YwikTtyvzOpBC/upijPDXPaVDXrLzlZyYxEwmWLrPwxjRNkKxbKLJVX9q3iKGt4mWQyf/hgqw0XhqZjMxwWXpbjFiZ+wP0","format":"xai-responses-v1","id":"rs_36ac2fb0-b643-9ff6-9c38-0e5f2370316e","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_92320304","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945424-lojoN2TGtDYC77RNuNzX","object":"chat.completion.chunk","created":1773945424,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}],"usage":{"prompt_tokens":366,"completion_tokens":159,"total_tokens":525,"cost":0.00009795,"is_byok":false,"prompt_tokens_details":{"cached_tokens":365,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00009795,"upstream_inference_prompt_cost":0.00001845,"upstream_inference_completions_cost":0.0000795},"completion_tokens_details":{"reasoning_tokens":133,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.534540833s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 906 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_92320304","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user asked: \"What''s the weather in Florence, Italy?\"\n","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_92320304","role":"tool"}],"model":"x-ai/grok-4.1-fast","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":","reasoning_details":[{"type":"reasoning.summary","summary":":","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"What's","reasoning_details":[{"type":"reasoning.summary","summary":"What's","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"?\"\n","reasoning_details":[{"type":"reasoning.summary","summary":"?\"\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"Kgd/ltSG6oos788IuoplMMUPrgLdQhjMQy//6Sf+cILTh+bfOfT/Oc5AQ1ieQaBgAWAwkpPR0UxCQkH3flTaPdxSmGpJ1pg+JFmNZg781xwcbPCvyIOfshXknAC4zFJ5C5esDWLN9Ygeu7cvn1YW22JkhdTcA1Mq2S2byLJLZWAjEAl4JApm9JaIkB4I7yMFReuBFA701XVHeP/8TrIF7FAPODCA7lxokZoz9Qq6VheJVDv3NUx89QoKq2/YSkyhia3VP7xUIH2EwqIsUQP3FSciQIparif7GAcZjI9DuDYzFFoMYpJKDLMPcWee2E6RYuBg6Nc7Eyey8JbNymzCE9iY7yPwdc8yZPvEPdDCgjTnPAfEnl/zvPdTRGbux8XnYAPtplVMiD3Y8el/1dLNiBFepW31ruHQpihNZhVeEhw4dIQciufwgbz7CtK4h1Iw4+NIgIeKEan2oBDtIGdblRXNHx46nh3nHvgOwwxpb1ZT0kOokL5NpJNuYj8hr+1u8OFD73WtIGhC3UbNCIKVR1wbKrewVp+VCT2/JGpASkSWHvOCzwmKE/G8ivLnpXkMWk+ErsC6KIK3zV9n443uk1ZQUEMoYR4keRqVmKeqDLS9eVbK4mu4P6ji2RXxxzb0BJoaxUdN2vBLpPVFiImLyu3c0guPSR7I1kBVS2QsnAPpncWxEks5RxMzDbyXdaLNtJzuXJBqYymSefznfFVd8fxTbubox3khczTJ6GsrPzQOzds4wos7WrXXJgU03lOkMW3OiKY9zT6+RXj5uLtjSyPl5HzGi6zookbEw/yMs+IZFmCx3LwojD3QmA","format":"xai-responses-v1","id":"rs_bbd8b588-fa8b-9461-9830-2761a3e7dd2c","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945427-mrMWA8NG6bOqqKVWUwzl","object":"chat.completion.chunk","created":1773945427,"model":"x-ai/grok-4.1-fast","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}],"usage":{"prompt_tokens":404,"completion_tokens":139,"total_tokens":543,"cost":0.00008985,"is_byok":false,"prompt_tokens_details":{"cached_tokens":403,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00008985,"upstream_inference_prompt_cost":0.00002035,"upstream_inference_completions_cost":0.0000695},"completion_tokens_details":{"reasoning_tokens":127,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.338549208s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool.yaml deleted file mode 100644 index 01b939d993026d12a6a8bd3a92bb272333d87d37..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 853 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323489-qBPdo41xHFaoVZOVMG8s\",\"object\":\"chat.completion\",\"created\":1773323489,\"model\":\"moonshotai/kimi-k2-0905\",\"provider\":\"Moonshot AI\",\"system_fingerprint\":\"fpv0_10a6da87\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"add:0\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"multiply:1\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":128,\"completion_tokens\":40,\"total_tokens\":168,\"cost\":0.0004672,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0004672,\"upstream_inference_prompt_cost\":0.0001472,\"upstream_inference_completions_cost\":0.00032},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.727534875s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1198 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"add:0","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"multiply:1","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"add:0","role":"tool"},{"content":"6","tool_call_id":"multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323492-xXin2fjbs7CFe0HeKEd3\",\"object\":\"chat.completion\",\"created\":1773323492,\"model\":\"moonshotai/kimi-k2-0905\",\"provider\":\"Moonshot AI\",\"system_fingerprint\":\"fpv0_10a6da87\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The sum of 2 and 3 is 5, and their product is 6.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":198,\"completion_tokens\":20,\"total_tokens\":218,\"cost\":0.0003877,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0003877,\"upstream_inference_prompt_cost\":0.0002277,\"upstream_inference_completions_cost\":0.00016},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 2.281229167s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool_streaming.yaml deleted file mode 100644 index 23309bafb280410c1bc099baea18630bdb8538f7..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/kimi-k2/multi_tool_streaming.yaml +++ /dev/null @@ -1,239 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 890 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"I'll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" perform","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" both","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" addition","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" multiplication","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" with","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" numbers","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"add:0","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"a"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"b"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"3"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"multiply:1","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"a"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"b"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"3"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323495-h6a1FFBRiNC441WUZgSb","object":"chat.completion.chunk","created":1773323495,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[],"usage":{"prompt_tokens":124,"completion_tokens":55,"total_tokens":179,"cost":0.0005826,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0005826,"upstream_inference_prompt_cost":0.0001426,"upstream_inference_completions_cost":0.00044},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.749824042s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1319 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll perform both addition and multiplication with the numbers 2 and 3.","tool_calls":[{"id":"add:0","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"multiply:1","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"add:0","role":"tool"},{"content":"6","tool_call_id":"multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"Here","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" results","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" numbers","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":":\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"Addition","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"**\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"Multi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"plication","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ×","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323498-TbLKcVrfyeJaPgbiW7NW","object":"chat.completion.chunk","created":1773323498,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[],"usage":{"prompt_tokens":209,"completion_tokens":41,"total_tokens":250,"cost":0.00056835,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00056835,"upstream_inference_prompt_cost":0.00024035,"upstream_inference_completions_cost":0.000328},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.876932875s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi-k2/simple.yaml b/providertests/testdata/TestOpenRouterCommon/kimi-k2/simple.yaml deleted file mode 100644 index a4e4539514569b13b768631e706c3f97c689ac4b..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/kimi-k2/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 198 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323472-VEr1C0GTbU6Nk6QjBC7x\",\"object\":\"chat.completion\",\"created\":1773323472,\"model\":\"moonshotai/kimi-k2-0905\",\"provider\":\"Moonshot AI\",\"system_fingerprint\":\"fpv0_805d9276\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi!\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":3,\"total_tokens\":23,\"cost\":0.0000195,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000195,\"upstream_inference_prompt_cost\":0.000012,\"upstream_inference_completions_cost\":0.0000075},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 4.21454675s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi-k2/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/kimi-k2/simple_streaming.yaml deleted file mode 100644 index f0734f70e37cf01526bdd657e006a7f7fb6e66be..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/kimi-k2/simple_streaming.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 252 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323475-d421DNZ0beKhrCvqbugy","object":"chat.completion.chunk","created":1773323475,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Oi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323475-d421DNZ0beKhrCvqbugy","object":"chat.completion.chunk","created":1773323475,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323475-d421DNZ0beKhrCvqbugy","object":"chat.completion.chunk","created":1773323475,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323475-d421DNZ0beKhrCvqbugy","object":"chat.completion.chunk","created":1773323475,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[],"usage":{"prompt_tokens":20,"completion_tokens":2,"total_tokens":22,"cost":0.00001,"is_byok":false,"prompt_tokens_details":{"cached_tokens":8,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00001,"upstream_inference_prompt_cost":0.000006,"upstream_inference_completions_cost":0.000004},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 768.257042ms diff --git a/providertests/testdata/TestOpenRouterCommon/kimi-k2/tool.yaml b/providertests/testdata/TestOpenRouterCommon/kimi-k2/tool.yaml deleted file mode 100644 index 2ee7eb25f12defb78d36333b6036cb114d01125a..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/kimi-k2/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 490 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773323476-OOwZSeZbqm2efCV5vDJT\",\"object\":\"chat.completion\",\"created\":1773323476,\"model\":\"moonshotai/kimi-k2-0905\",\"provider\":\"Moonshot AI\",\"system_fingerprint\":\"fpv0_10a6da87\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll check the weather in Florence, Italy for you.\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"weather:0\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence,Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":68,\"completion_tokens\":31,\"total_tokens\":99,\"cost\":0.0003262,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0003262,\"upstream_inference_prompt_cost\":0.0000782,\"upstream_inference_completions_cost\":0.000248},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.556305375s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 765 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"weather:0","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"weather:0","role":"tool"}],"model":"moonshotai/kimi-k2-0905","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323478-DqqQ4EKbZPvXHcGbn1Ul\",\"object\":\"chat.completion\",\"created\":1773323478,\"model\":\"moonshotai/kimi-k2-0905\",\"provider\":\"Moonshot AI\",\"system_fingerprint\":\"fpv0_10a6da87\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current temperature in Florence, Italy is 40°C (104°F), which is quite hot! Make sure to stay hydrated and avoid prolonged sun exposure if you're there right now.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":118,\"completion_tokens\":37,\"total_tokens\":155,\"cost\":0.0004317,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0004317,\"upstream_inference_prompt_cost\":0.0001357,\"upstream_inference_completions_cost\":0.000296},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.397718916s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi-k2/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/kimi-k2/tool_streaming.yaml deleted file mode 100644 index d58d484886b3ba660f2a3e361a2ee0bbe3081e04..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/kimi-k2/tool_streaming.yaml +++ /dev/null @@ -1,161 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 544 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"moonshotai/kimi-k2-0905","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"I'll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"weather:0","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Fl"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ore"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"nce"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323480-GOHpLW2Qp9HHMgKUfVW4","object":"chat.completion.chunk","created":1773323480,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_10a6da87","choices":[],"usage":{"prompt_tokens":68,"completion_tokens":31,"total_tokens":99,"cost":0.0002582,"is_byok":false,"prompt_tokens_details":{"cached_tokens":68,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0002582,"upstream_inference_prompt_cost":0.0000102,"upstream_inference_completions_cost":0.000248},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.490590208s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 820 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"weather:0","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"weather:0","role":"tool"}],"model":"moonshotai/kimi-k2-0905","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" 40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":").","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" It's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" there","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" right","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" now","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323482-u8BT7v3Z7RmNRNFABPjT","object":"chat.completion.chunk","created":1773323482,"model":"moonshotai/kimi-k2-0905","provider":"DeepInfra","choices":[],"usage":{"prompt_tokens":121,"completion_tokens":22,"total_tokens":143,"cost":0.0000844,"is_byok":false,"prompt_tokens_details":{"cached_tokens":32,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000844,"upstream_inference_prompt_cost":0.0000404,"upstream_inference_completions_cost":0.000044},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 5.979645541s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/kimi/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..471521d9886fff87b31012b8276ef15e2110e486 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/kimi/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 850 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945487-Z5fhji1TROrj6AuM2H1y\",\"object\":\"chat.completion\",\"created\":1773945487,\"model\":\"moonshotai/kimi-k2.5-0127\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":\"fpv0_e0c12c89\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll add and multiply 2 and 3 for you at the same time.\",\"refusal\":null,\"reasoning\":\"The user wants me to add 2 and 3, and also multiply 2 and 3. The instructions say I must use both add and multiply at the same time ALWAYS. This means I should call both functions in the same function_calls block.\\n\\nLet me make both calls:\\n- add: a=2, b=3\\n- multiply: a=2, b=3\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"add:0\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"multiply:1\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user wants me to add 2 and 3, and also multiply 2 and 3. The instructions say I must use both add and multiply at the same time ALWAYS. This means I should call both functions in the same function_calls block.\\n\\nLet me make both calls:\\n- add: a=2, b=3\\n- multiply: a=2, b=3\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":128,\"completion_tokens\":130,\"total_tokens\":258,\"cost\":0.000402,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000402,\"upstream_inference_prompt_cost\":0.000064,\"upstream_inference_completions_cost\":0.000338},\"completion_tokens_details\":{\"reasoning_tokens\":72,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.53507125s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1623 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply 2 and 3 for you at the same time.","tool_calls":[{"id":"add:0","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"multiply:1","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user wants me to add 2 and 3, and also multiply 2 and 3. The instructions say I must use both add and multiply at the same time ALWAYS. This means I should call both functions in the same function_calls block.\n\nLet me make both calls:\n- add: a=2, b=3\n- multiply: a=2, b=3","type":"reasoning.text"}]},{"content":"5","tool_call_id":"add:0","role":"tool"},{"content":"6","tool_call_id":"multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945491-o5yp2dfHoW8YjgvpdrJn\",\"object\":\"chat.completion\",\"created\":1773945491,\"model\":\"moonshotai/kimi-k2.5-0127\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":\"fpv0_e0c12c89\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Here are the results:\\n- **Addition**: 2 + 3 = **5**\\n- **Multiplication**: 2 × 3 = **6**\",\"refusal\":null,\"reasoning\":\"Great! Both functions returned successfully:\\n- add(2, 3) = 5\\n- multiply(2, 3) = 6\\n\\nNow I should present these results clearly to the user.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"Great! Both functions returned successfully:\\n- add(2, 3) = 5\\n- multiply(2, 3) = 6\\n\\nNow I should present these results clearly to the user.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":288,\"completion_tokens\":77,\"total_tokens\":365,\"cost\":0.0003442,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0003442,\"upstream_inference_prompt_cost\":0.000144,\"upstream_inference_completions_cost\":0.0002002},\"completion_tokens_details\":{\"reasoning_tokens\":38,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.54386325s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/kimi/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f3a6865883a5d7d2fb02b02bdb90baca59325b25 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/kimi/multi_tool_streaming.yaml @@ -0,0 +1,471 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 887 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wants","reasoning_details":[{"type":"reasoning.text","text":" wants","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me","reasoning_details":[{"type":"reasoning.text","text":" me","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" numbers","reasoning_details":[{"type":"reasoning.text","text":" numbers","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Since","reasoning_details":[{"type":"reasoning.text","text":" Since","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" system","reasoning_details":[{"type":"reasoning.text","text":" system","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" prompt","reasoning_details":[{"type":"reasoning.text","text":" prompt","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" says","reasoning_details":[{"type":"reasoning.text","text":" says","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Always","reasoning_details":[{"type":"reasoning.text","text":"Always","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" at","reasoning_details":[{"type":"reasoning.text","text":" at","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.text","text":" same","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" time","reasoning_details":[{"type":"reasoning.text","text":" time","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",\"","reasoning_details":[{"type":"reasoning.text","text":",\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" make","reasoning_details":[{"type":"reasoning.text","text":" make","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calls","reasoning_details":[{"type":"reasoning.text","text":" calls","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" together","reasoning_details":[{"type":"reasoning.text","text":" together","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" can","reasoning_details":[{"type":"reasoning.text","text":" can","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" make","reasoning_details":[{"type":"reasoning.text","text":" make","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calls","reasoning_details":[{"type":"reasoning.text","text":" calls","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" same","reasoning_details":[{"type":"reasoning.text","text":" same","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"_calls","reasoning_details":[{"type":"reasoning.text","text":"_calls","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" block","reasoning_details":[{"type":"reasoning.text","text":" block","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" since","reasoning_details":[{"type":"reasoning.text","text":" since","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" they","reasoning_details":[{"type":"reasoning.text","text":" they","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" independent","reasoning_details":[{"type":"reasoning.text","text":" independent","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of","reasoning_details":[{"type":"reasoning.text","text":" of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" each","reasoning_details":[{"type":"reasoning.text","text":" each","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" other","reasoning_details":[{"type":"reasoning.text","text":" other","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n","reasoning_details":[{"type":"reasoning.text","text":".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Let","reasoning_details":[{"type":"reasoning.text","text":"Let","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me","reasoning_details":[{"type":"reasoning.text","text":" me","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.text","text":" call","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":\n","reasoning_details":[{"type":"reasoning.text","text":":\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"1","reasoning_details":[{"type":"reasoning.text","text":"1","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"=","reasoning_details":[{"type":"reasoning.text","text":"=","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" b","reasoning_details":[{"type":"reasoning.text","text":" b","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"=","reasoning_details":[{"type":"reasoning.text","text":"=","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"=","reasoning_details":[{"type":"reasoning.text","text":"=","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" b","reasoning_details":[{"type":"reasoning.text","text":" b","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"=","reasoning_details":[{"type":"reasoning.text","text":"=","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"add:0","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"a"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"b"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"3"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"multiply:1","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"a"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"b"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" "}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"3"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945494-D12sIVylmicjqxKq2N2V","object":"chat.completion.chunk","created":1773945494,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":124,"completion_tokens":130,"total_tokens":254,"cost":0.0004,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0004,"upstream_inference_prompt_cost":0.000062,"upstream_inference_completions_cost":0.000338},"completion_tokens_details":{"reasoning_tokens":90,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.739090375s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1669 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"add:0","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"multiply:1","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user wants me to both add and multiply the numbers 2 and 3. Since the system prompt says \"Always use both add and multiply at the same time,\" I should make both function calls together. I can make both calls in the same function_calls block since they are independent of each other.\n\nLet me call:\n1. add with a=2, b=3\n2. multiply with a=2, b=3","type":"reasoning.text"}]},{"content":"5","tool_call_id":"add:0","role":"tool"},{"content":"6","tool_call_id":"multiply:1","role":"tool"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" results","reasoning_details":[{"type":"reasoning.text","text":" results","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" are","reasoning_details":[{"type":"reasoning.text","text":" are","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":\n","reasoning_details":[{"type":"reasoning.text","text":":\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" add","reasoning_details":[{"type":"reasoning.text","text":" add","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"(","reasoning_details":[{"type":"reasoning.text","text":"(","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":")","reasoning_details":[{"type":"reasoning.text","text":")","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"5","reasoning_details":[{"type":"reasoning.text","text":"5","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-","reasoning_details":[{"type":"reasoning.text","text":"-","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" multiply","reasoning_details":[{"type":"reasoning.text","text":" multiply","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"(","reasoning_details":[{"type":"reasoning.text","text":"(","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":")","reasoning_details":[{"type":"reasoning.text","text":")","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" =","reasoning_details":[{"type":"reasoning.text","text":" =","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"6","reasoning_details":[{"type":"reasoning.text","text":"6","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n\n","reasoning_details":[{"type":"reasoning.text","text":"\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Now","reasoning_details":[{"type":"reasoning.text","text":"Now","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I'll","reasoning_details":[{"type":"reasoning.text","text":" I'll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" present","reasoning_details":[{"type":"reasoning.text","text":" present","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" both","reasoning_details":[{"type":"reasoning.text","text":" both","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" results","reasoning_details":[{"type":"reasoning.text","text":" results","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"Here","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" results","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" both","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" operations","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" with","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":":\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"Addition","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":":**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"**\n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"Multi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"plication","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":":**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ×","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945499-wdUZpq3oZjiJdv456bk6","object":"chat.completion.chunk","created":1773945499,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":283,"completion_tokens":79,"total_tokens":362,"cost":0.0003469,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0003469,"upstream_inference_prompt_cost":0.0001415,"upstream_inference_completions_cost":0.0002054},"completion_tokens_details":{"reasoning_tokens":28,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.735594375s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi/simple.yaml b/providertests/testdata/TestOpenRouterCommon/kimi/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..154e227b3d7a061006bf8592a5615606d3f3312c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/kimi/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 195 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945463-7UlWQThJCoBvROqhlOiT\",\"object\":\"chat.completion\",\"created\":1773945463,\"model\":\"moonshotai/kimi-k2.5-0127\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":\"fpv0_e0c12c89\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi! (or \\\"Olá!\\\")\\n\\nBoth are common ways to say \\\"hi\\\" in Portuguese:\\n- **Oi** - Very informal and widely used in Brazil\\n- **Olá** - Slightly more formal, used in both Brazil and Portugal\",\"refusal\":null,\"reasoning\":\"The user wants me to say \\\"hi\\\" in Portuguese. The most common way to say \\\"hi\\\" in Portuguese is \\\"Oi\\\" (informal) or \\\"Olá\\\" (slightly more formal but still common). I should provide both options to be helpful, as they are both widely used.\\n\\n \\\"Oi\\\" is very casual and common in Brazil.\\n \\\"Olá\\\" is also common and works in both Brazil and Portugal.\\n\\n I'll provide the main greeting and perhaps mention the context.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user wants me to say \\\"hi\\\" in Portuguese. The most common way to say \\\"hi\\\" in Portuguese is \\\"Oi\\\" (informal) or \\\"Olá\\\" (slightly more formal but still common). I should provide both options to be helpful, as they are both widely used.\\n\\n \\\"Oi\\\" is very casual and common in Brazil.\\n \\\"Olá\\\" is also common and works in both Brazil and Portugal.\\n\\n I'll provide the main greeting and perhaps mention the context.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":20,\"completion_tokens\":152,\"total_tokens\":172,\"cost\":0.0004052,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0004052,\"upstream_inference_prompt_cost\":0.00001,\"upstream_inference_completions_cost\":0.0003952},\"completion_tokens_details\":{\"reasoning_tokens\":107,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.810134833s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/kimi/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..79e229212cff8f77d37ae06d9b294fa6a5dce16c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/kimi/simple_streaming.yaml @@ -0,0 +1,430 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 249 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wants","reasoning_details":[{"type":"reasoning.text","text":" wants","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me","reasoning_details":[{"type":"reasoning.text","text":" me","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say","reasoning_details":[{"type":"reasoning.text","text":" say","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"hi","reasoning_details":[{"type":"reasoning.text","text":"hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most","reasoning_details":[{"type":"reasoning.text","text":" most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" way","reasoning_details":[{"type":"reasoning.text","text":" way","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" say","reasoning_details":[{"type":"reasoning.text","text":" say","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hi","reasoning_details":[{"type":"reasoning.text","text":" hi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.text","text":" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\".","reasoning_details":[{"type":"reasoning.text","text":"\".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \n\n","reasoning_details":[{"type":"reasoning.text","text":" \n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" more","reasoning_details":[{"type":"reasoning.text","text":" more","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" formal","reasoning_details":[{"type":"reasoning.text","text":" formal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" universal","reasoning_details":[{"type":"reasoning.text","text":" universal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" across","reasoning_details":[{"type":"reasoning.text","text":" across","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portuguese","reasoning_details":[{"type":"reasoning.text","text":" Portuguese","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"-speaking","reasoning_details":[{"type":"reasoning.text","text":"-speaking","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" countries","reasoning_details":[{"type":"reasoning.text","text":" countries","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" (","reasoning_details":[{"type":"reasoning.text","text":" (","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Port","reasoning_details":[{"type":"reasoning.text","text":"Port","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ugal","reasoning_details":[{"type":"reasoning.text","text":"ugal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazil","reasoning_details":[{"type":"reasoning.text","text":" Brazil","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Angola","reasoning_details":[{"type":"reasoning.text","text":" Angola","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" etc","reasoning_details":[{"type":"reasoning.text","text":" etc","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".).\n","reasoning_details":[{"type":"reasoning.text","text":".).\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very","reasoning_details":[{"type":"reasoning.text","text":" very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazil","reasoning_details":[{"type":"reasoning.text","text":" Brazil","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" but","reasoning_details":[{"type":"reasoning.text","text":" but","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" might","reasoning_details":[{"type":"reasoning.text","text":" might","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be","reasoning_details":[{"type":"reasoning.text","text":" be","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" considered","reasoning_details":[{"type":"reasoning.text","text":" considered","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" less","reasoning_details":[{"type":"reasoning.text","text":" less","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" formal","reasoning_details":[{"type":"reasoning.text","text":" formal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" or","reasoning_details":[{"type":"reasoning.text","text":" or","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" even","reasoning_details":[{"type":"reasoning.text","text":" even","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" rude","reasoning_details":[{"type":"reasoning.text","text":" rude","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" some","reasoning_details":[{"type":"reasoning.text","text":" some","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" contexts","reasoning_details":[{"type":"reasoning.text","text":" contexts","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Portugal","reasoning_details":[{"type":"reasoning.text","text":" Portugal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n","reasoning_details":[{"type":"reasoning.text","text":".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Since","reasoning_details":[{"type":"reasoning.text","text":"Since","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" just","reasoning_details":[{"type":"reasoning.text","text":" just","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.text","text":" asked","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" simple","reasoning_details":[{"type":"reasoning.text","text":" simple","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" greeting","reasoning_details":[{"type":"reasoning.text","text":" greeting","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.text","text":" provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" most","reasoning_details":[{"type":"reasoning.text","text":" most","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" options","reasoning_details":[{"type":"reasoning.text","text":" options","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.text","text":" with","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" brief","reasoning_details":[{"type":"reasoning.text","text":" brief","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" context","reasoning_details":[{"type":"reasoning.text","text":" context","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about","reasoning_details":[{"type":"reasoning.text","text":" about","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" usage","reasoning_details":[{"type":"reasoning.text","text":" usage","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n\n","reasoning_details":[{"type":"reasoning.text","text":".\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Options","reasoning_details":[{"type":"reasoning.text","text":"Options","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":":\n","reasoning_details":[{"type":"reasoning.text","text":":\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"1","reasoning_details":[{"type":"reasoning.text","text":"1","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" -","reasoning_details":[{"type":"reasoning.text","text":" -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" universal","reasoning_details":[{"type":"reasoning.text","text":" universal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" formal","reasoning_details":[{"type":"reasoning.text","text":" formal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"/in","reasoning_details":[{"type":"reasoning.text","text":"/in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"form","reasoning_details":[{"type":"reasoning.text","text":"form","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"al","reasoning_details":[{"type":"reasoning.text","text":"al","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"2","reasoning_details":[{"type":"reasoning.text","text":"2","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" -","reasoning_details":[{"type":"reasoning.text","text":" -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" very","reasoning_details":[{"type":"reasoning.text","text":" very","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" common","reasoning_details":[{"type":"reasoning.text","text":" common","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazil","reasoning_details":[{"type":"reasoning.text","text":" Brazil","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" informal","reasoning_details":[{"type":"reasoning.text","text":" informal","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n","reasoning_details":[{"type":"reasoning.text","text":"\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"3","reasoning_details":[{"type":"reasoning.text","text":"3","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Al","reasoning_details":[{"type":"reasoning.text","text":"Al","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ô","reasoning_details":[{"type":"reasoning.text","text":"ô","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" -","reasoning_details":[{"type":"reasoning.text","text":" -","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" used","reasoning_details":[{"type":"reasoning.text","text":" used","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" when","reasoning_details":[{"type":"reasoning.text","text":" when","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" answering","reasoning_details":[{"type":"reasoning.text","text":" answering","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" phones","reasoning_details":[{"type":"reasoning.text","text":" phones","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\n\n","reasoning_details":[{"type":"reasoning.text","text":"\n\n","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"I'll","reasoning_details":[{"type":"reasoning.text","text":"I'll","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.text","text":" provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Ol","reasoning_details":[{"type":"reasoning.text","text":"Ol","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"á","reasoning_details":[{"type":"reasoning.text","text":"á","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" primary","reasoning_details":[{"type":"reasoning.text","text":" primary","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" answer","reasoning_details":[{"type":"reasoning.text","text":" answer","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" mention","reasoning_details":[{"type":"reasoning.text","text":" mention","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Oi","reasoning_details":[{"type":"reasoning.text","text":"Oi","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Brazilian","reasoning_details":[{"type":"reasoning.text","text":" Brazilian","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" alternative","reasoning_details":[{"type":"reasoning.text","text":" alternative","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"á","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" \n\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"(","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"You","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" can","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" also","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" say","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"Oi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" —","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" it's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" very","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" common","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" Brazil","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" while","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"á","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" used","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" everywhere","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" including","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" Portugal","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":".)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945469-FtJ6MUMrMYVVCPM0WAxk","object":"chat.completion.chunk","created":1773945469,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":20,"completion_tokens":196,"total_tokens":216,"cost":0.00051138,"is_byok":false,"prompt_tokens_details":{"cached_tokens":20,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00051138,"upstream_inference_prompt_cost":0.00000178,"upstream_inference_completions_cost":0.0005096},"completion_tokens_details":{"reasoning_tokens":179,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.50860425s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi/tool.yaml b/providertests/testdata/TestOpenRouterCommon/kimi/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d0a8ad2b1eac316b586fb696cb12ad6f2de6443f --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/kimi/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 487 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945474-wNsrLiYYBQCYV4b1kI2A\",\"object\":\"chat.completion\",\"created\":1773945474,\"model\":\"moonshotai/kimi-k2.5-0127\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":\"fpv0_e0c12c89\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user is asking for the weather in Florence, Italy. I have a weather function available that can get weather information for a location. Let me call this function with \\\"Florence\\\" as the location parameter.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"weather:0\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user is asking for the weather in Florence, Italy. I have a weather function available that can get weather information for a location. Let me call this function with \\\"Florence\\\" as the location parameter.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":68,\"completion_tokens\":63,\"total_tokens\":131,\"cost\":0.0001978,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0001978,\"upstream_inference_prompt_cost\":0.000034,\"upstream_inference_completions_cost\":0.0001638},\"completion_tokens_details\":{\"reasoning_tokens\":52,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.511454666s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 990 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"weather:0","function":{"arguments":"{\"location\": \"Florence\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user is asking for the weather in Florence, Italy. I have a weather function available that can get weather information for a location. Let me call this function with \"Florence\" as the location parameter.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"weather:0","role":"tool"}],"model":"moonshotai/kimi-k2.5","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945477-C1KeaZT0KsADVIvgsAAz\",\"object\":\"chat.completion\",\"created\":1773945477,\"model\":\"moonshotai/kimi-k2.5-0127\",\"provider\":\"AtlasCloud\",\"system_fingerprint\":\"fpv0_e0c12c89\",\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is currently **40°C (104°F)**. That's very hot! Make sure to stay hydrated and seek shade if you're visiting the city today.\",\"refusal\":null,\"reasoning\":\"The weather function returned 40 C, which is 40 degrees Celsius. That's quite hot! Let me present this information to the user in a helpful way.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The weather function returned 40 C, which is 40 degrees Celsius. That's quite hot! Let me present this information to the user in a helpful way.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":150,\"completion_tokens\":70,\"total_tokens\":220,\"cost\":0.000257,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000257,\"upstream_inference_prompt_cost\":0.000075,\"upstream_inference_completions_cost\":0.000182},\"completion_tokens_details\":{\"reasoning_tokens\":36,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.538264458s diff --git a/providertests/testdata/TestOpenRouterCommon/kimi/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/kimi/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2b927fe970b5816a2fc6792cc88e9a4326292b44 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/kimi/tool_streaming.yaml @@ -0,0 +1,311 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 541 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"moonshotai/kimi-k2.5","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asking","reasoning_details":[{"type":"reasoning.text","text":" asking","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" get","reasoning_details":[{"type":"reasoning.text","text":" get","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.text","text":" need","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" pass","reasoning_details":[{"type":"reasoning.text","text":" pass","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Fl","reasoning_details":[{"type":"reasoning.text","text":"Fl","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"ore","reasoning_details":[{"type":"reasoning.text","text":"ore","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"nce","reasoning_details":[{"type":"reasoning.text","text":"nce","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.text","text":" parameter","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"weather:0","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Fl"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ore"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"nce"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945481-OpjMSaZdXKWarQh8IgjM","object":"chat.completion.chunk","created":1773945481,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":68,"completion_tokens":57,"total_tokens":125,"cost":0.000154252,"is_byok":false,"prompt_tokens_details":{"cached_tokens":68,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000154252,"upstream_inference_prompt_cost":0.000006052,"upstream_inference_completions_cost":0.0001482},"completion_tokens_details":{"reasoning_tokens":42,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.94277625s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 999 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"weather:0","function":{"arguments":"{\"location\": \"Florence\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user is asking for the weather in Florence, Italy. I should use the weather function to get this information. I need to pass \"Florence\" as the location parameter.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"weather:0","role":"tool"}],"model":"moonshotai/kimi-k2.5","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.text","text":" returned","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.text","text":"40","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"°C","reasoning_details":[{"type":"reasoning.text","text":"°C","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This","reasoning_details":[{"type":"reasoning.text","text":" This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" quite","reasoning_details":[{"type":"reasoning.text","text":" quite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hot","reasoning_details":[{"type":"reasoning.text","text":" hot","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.text","text":"!","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provide","reasoning_details":[{"type":"reasoning.text","text":" provide","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" helpful","reasoning_details":[{"type":"reasoning.text","text":" helpful","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" way","reasoning_details":[{"type":"reasoning.text","text":" way","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" temperature","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":")**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" That's","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" Make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" sure","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" hydrated","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" seek","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" shade","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" if","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" you're","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" visiting","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" city","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":" today","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945484-SfZv5TJansZrMGHxA2ZN","object":"chat.completion.chunk","created":1773945484,"model":"moonshotai/kimi-k2.5-0127","provider":"AtlasCloud","system_fingerprint":"fpv0_e0c12c89","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":143,"completion_tokens":68,"total_tokens":211,"cost":0.0002483,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0002483,"upstream_inference_prompt_cost":0.0000715,"upstream_inference_completions_cost":0.0001768},"completion_tokens_details":{"reasoning_tokens":36,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.370857958s diff --git a/providertests/testdata/TestOpenRouterCommon/openai/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/openai/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bf7a95468d6f860fbb6c81d7c6ad144356b1743c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/openai/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 860 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n{\"id\":\"gen-1773945381-Qn1xXTBSWlAVHcSVGoNH\",\"object\":\"chat.completion\",\"created\":1773945381,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_Bb9t44hKsOQkKMDje3Do35B9\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"call_Nnev5P7Rhqz9lVYbinyjQEKi\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\":2,\\\"b\\\":3}\"}}]}}],\"usage\":{\"prompt_tokens\":113,\"completion_tokens\":54,\"total_tokens\":167,\"cost\":0.0000901,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000901,\"upstream_inference_prompt_cost\":0.0000226,\"upstream_inference_completions_cost\":0.0000675},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 3.454036875s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1285 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_Bb9t44hKsOQkKMDje3Do35B9","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_Nnev5P7Rhqz9lVYbinyjQEKi","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_Bb9t44hKsOQkKMDje3Do35B9","role":"tool"},{"content":"6","tool_call_id":"call_Nnev5P7Rhqz9lVYbinyjQEKi","role":"tool"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n{\"id\":\"gen-1773945382-dSJAvlxyaw4kaA2dYNXa\",\"object\":\"chat.completion\",\"created\":1773945382,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"2 + 3 = **5** \\n2 × 3 = **6**\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":187,\"completion_tokens\":21,\"total_tokens\":208,\"cost\":0.00006365,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00006365,\"upstream_inference_prompt_cost\":0.0000374,\"upstream_inference_completions_cost\":0.00002625},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 509.885666ms diff --git a/providertests/testdata/TestOpenRouterCommon/openai/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/openai/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fde3d59aecdda543efb7e1e4a5849c14d9afadfa --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/openai/multi_tool_streaming.yaml @@ -0,0 +1,127 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 897 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_RyRtXc5TxuhGTghDihBOXNar","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"call_JmyBVHKW2AnWeep5UITLC9Wx","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":2,\"b\":3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945383-68FpvFnqJ5V1GOao5iM6","object":"chat.completion.chunk","created":1773945383,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}],"usage":{"prompt_tokens":109,"completion_tokens":54,"total_tokens":163,"cost":0.0000893,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000893,"upstream_inference_prompt_cost":0.0000218,"upstream_inference_completions_cost":0.0000675},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 449.3595ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1322 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"call_RyRtXc5TxuhGTghDihBOXNar","function":{"arguments":"{\"a\":2,\"b\":3}","name":"add"},"type":"function"},{"id":"call_JmyBVHKW2AnWeep5UITLC9Wx","function":{"arguments":"{\"a\":2,\"b\":3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"call_RyRtXc5TxuhGTghDihBOXNar","role":"tool"},{"content":"6","tool_call_id":"call_JmyBVHKW2AnWeep5UITLC9Wx","role":"tool"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"5","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"**\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"2","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ×","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945384-CDS0bQpWtuMHu6nuk27q","object":"chat.completion.chunk","created":1773945384,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}],"usage":{"prompt_tokens":183,"completion_tokens":24,"total_tokens":207,"cost":0.0000666,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000666,"upstream_inference_prompt_cost":0.0000366,"upstream_inference_completions_cost":0.00003},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 388.096708ms diff --git a/providertests/testdata/TestOpenRouterCommon/openai/simple.yaml b/providertests/testdata/TestOpenRouterCommon/openai/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4394722da9461724104d62182fabea20c04f8629 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/openai/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 205 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n{\"id\":\"gen-1773945373-Bv9tKBtwWtfAzjZPxf5A\",\"object\":\"chat.completion\",\"created\":1773945373,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá!\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":19,\"completion_tokens\":6,\"total_tokens\":25,\"cost\":0.0000113,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000113,\"upstream_inference_prompt_cost\":0.0000038,\"upstream_inference_completions_cost\":0.0000075},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 830.207834ms diff --git a/providertests/testdata/TestOpenRouterCommon/openai/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/openai/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e9338b2e2662e7e3ab8a8b3f83bc4812dc9c4d0e --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/openai/simple_streaming.yaml @@ -0,0 +1,32 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 259 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: "data: {\"id\":\"gen-1773945374-q8ZSp46PFfXc9NAS2qL7\",\"object\":\"chat.completion.chunk\",\"created\":1773945374,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Oi\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945374-q8ZSp46PFfXc9NAS2qL7\",\"object\":\"chat.completion.chunk\",\"created\":1773945374,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"!\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945374-q8ZSp46PFfXc9NAS2qL7\",\"object\":\"chat.completion.chunk\",\"created\":1773945374,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \U0001F60A\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945374-q8ZSp46PFfXc9NAS2qL7\",\"object\":\"chat.completion.chunk\",\"created\":1773945374,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\"}]}\n\ndata: {\"id\":\"gen-1773945374-q8ZSp46PFfXc9NAS2qL7\",\"object\":\"chat.completion.chunk\",\"created\":1773945374,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\"}],\"usage\":{\"prompt_tokens\":19,\"completion_tokens\":7,\"total_tokens\":26,\"cost\":0.00001255,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00001255,\"upstream_inference_prompt_cost\":0.0000038,\"upstream_inference_completions_cost\":0.00000875},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}\n\ndata: [DONE]\n\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 453.163167ms diff --git a/providertests/testdata/TestOpenRouterCommon/openai/tool.yaml b/providertests/testdata/TestOpenRouterCommon/openai/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c5a5ddd90b00983e210962e25719e751bc79c77c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/openai/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 497 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n{\"id\":\"gen-1773945374-TeLNBnAFqTwjuAi8wpRj\",\"object\":\"chat.completion\",\"created\":1773945374,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_fYo0Z8fLQU2v12NNb25MFUhj\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":63,\"completion_tokens\":20,\"total_tokens\":83,\"cost\":0.0000376,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0000376,\"upstream_inference_prompt_cost\":0.0000126,\"upstream_inference_completions_cost\":0.000025},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 667.863167ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 749 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_fYo0Z8fLQU2v12NNb25MFUhj","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_fYo0Z8fLQU2v12NNb25MFUhj","role":"tool"}],"model":"openai/gpt-5.4-nano","max_completion_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n{\"id\":\"gen-1773945375-9AEqJV7RbOK8FPk7hsB2\",\"object\":\"chat.completion\",\"created\":1773945375,\"model\":\"openai/gpt-5.4-nano-20260317\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in **Florence, Italy** is currently **40°C**.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":95,\"completion_tokens\":20,\"total_tokens\":115,\"cost\":0.000044,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000044,\"upstream_inference_prompt_cost\":0.000019,\"upstream_inference_completions_cost\":0.000025},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 650.392417ms diff --git a/providertests/testdata/TestOpenRouterCommon/openai/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/openai/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8537abb4d8486ff96036bdd230c4d092b2151b3c --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommon/openai/tool_streaming.yaml @@ -0,0 +1,129 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 551 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"openai/gpt-5.4-nano","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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_6jrRIpW4Qm0ovEB92ylZxfBy","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ence"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945376-TLrrn3G9TGS0BbGDFto3","object":"chat.completion.chunk","created":1773945376,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"completed"}],"usage":{"prompt_tokens":63,"completion_tokens":20,"total_tokens":83,"cost":0.0000376,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000376,"upstream_inference_prompt_cost":0.0000126,"upstream_inference_completions_cost":0.000025},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 406.696208ms +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 803 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_6jrRIpW4Qm0ovEB92ylZxfBy","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_6jrRIpW4Qm0ovEB92ylZxfBy","role":"tool"}],"model":"openai/gpt-5.4-nano","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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"Flor","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"ence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}]} + + data: {"id":"gen-1773945377-qEiqJ8jtJDRv2fbll0BH","object":"chat.completion.chunk","created":1773945377,"model":"openai/gpt-5.4-nano-20260317","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}],"usage":{"prompt_tokens":95,"completion_tokens":20,"total_tokens":115,"cost":0.000044,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000044,"upstream_inference_prompt_cost":0.000019,"upstream_inference_completions_cost":0.000025},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 896.667791ms diff --git a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool.yaml deleted file mode 100644 index ca057cba1d08285e268baf129d00d62b74acf927..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 855 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323590-FkpXeIQTOWvDW5cMA0nd\",\"object\":\"chat.completion\",\"created\":1773323590,\"model\":\"qwen/qwen3-235b-a22b-07-25\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"\\n\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"250040734b524d498c05be2661f47b60\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"1d5c17365c724c54b6d659bc2a745d7f\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":277,\"completion_tokens\":50,\"total_tokens\":327,\"cost\":0.00005393,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00005393,\"upstream_inference_prompt_cost\":0.00002493,\"upstream_inference_completions_cost\":0.000029},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.206543875s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1313 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\n","tool_calls":[{"id":"250040734b524d498c05be2661f47b60","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"1d5c17365c724c54b6d659bc2a745d7f","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"250040734b524d498c05be2661f47b60","role":"tool"},{"content":"6","tool_call_id":"1d5c17365c724c54b6d659bc2a745d7f","role":"tool"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323593-yywnZCxrHklBbXiTqW4q\",\"object\":\"chat.completion\",\"created\":1773323593,\"model\":\"qwen/qwen3-235b-a22b-07-25\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The result of adding 2 and 3 is 5, and the result of multiplying 2 and 3 is 6.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":347,\"completion_tokens\":27,\"total_tokens\":374,\"cost\":0.00004689,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00004689,\"upstream_inference_prompt_cost\":0.00003123,\"upstream_inference_completions_cost\":0.00001566},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.747865666s diff --git a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool_streaming.yaml deleted file mode 100644 index 0b961cd538d77670273face2c458c4fedcd56b1f..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/multi_tool_streaming.yaml +++ /dev/null @@ -1,113 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 892 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"957c10ed16d245fe95eee8329e5bde69","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" 2, \"b\": "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"3"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"\n","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"2e930e954a1e42779a78a8f6f40f4185","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" 2, \"b\": "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"3"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324571-ZjwP1ziZsc1qZHKl8Bb5","object":"chat.completion.chunk","created":1773324571,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":273,"completion_tokens":50,"total_tokens":323,"cost":0.0000986,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000986,"upstream_inference_prompt_cost":0.0000546,"upstream_inference_completions_cost":0.000044},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.788639375s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1350 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system"},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"\n","tool_calls":[{"id":"957c10ed16d245fe95eee8329e5bde69","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"2e930e954a1e42779a78a8f6f40f4185","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function"}],"role":"assistant"},{"content":"5","tool_call_id":"957c10ed16d245fe95eee8329e5bde69","role":"tool"},{"content":"6","tool_call_id":"2e930e954a1e42779a78a8f6f40f4185","role":"tool"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" sum of ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"2 and ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"3 is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" 5, and the product","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" of 2 and 3","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" is 6.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324574-M1sd4Vcfr5DSpxM3MZLk","object":"chat.completion.chunk","created":1773324574,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[],"usage":{"prompt_tokens":343,"completion_tokens":25,"total_tokens":368,"cost":0.0000662285,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00010189,"upstream_inference_prompt_cost":0.00007889,"upstream_inference_completions_cost":0.000023},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 700.056167ms diff --git a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple.yaml b/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple.yaml deleted file mode 100644 index b287b06e77385ec3a8fde85a222743a00e38bec8..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 200 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n{\"id\":\"gen-1773323575-a6ceDdgGAmbPnejyc7XY\",\"object\":\"chat.completion\",\"created\":1773323575,\"model\":\"qwen/qwen3-235b-a22b-07-25\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Oi!\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":22,\"completion_tokens\":3,\"total_tokens\":25,\"cost\":0.00000748,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":6,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00000748,\"upstream_inference_prompt_cost\":0.00000484,\"upstream_inference_completions_cost\":0.00000264},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.3020125s diff --git a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple_streaming.yaml deleted file mode 100644 index 3c0ef7b3c8317bec36f3cbafe086a2f5241f641b..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/simple_streaming.yaml +++ /dev/null @@ -1,44 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 254 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"Say hi in Portuguese","role":"user"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323576-QCpJuoe7F3GC4NKHRRxd","object":"chat.completion.chunk","created":1773323576,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Together","choices":[{"index":0,"delta":{"content":"Ol","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323576-QCpJuoe7F3GC4NKHRRxd","object":"chat.completion.chunk","created":1773323576,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Together","choices":[{"index":0,"delta":{"content":"á","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323576-QCpJuoe7F3GC4NKHRRxd","object":"chat.completion.chunk","created":1773323576,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Together","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323576-QCpJuoe7F3GC4NKHRRxd","object":"chat.completion.chunk","created":1773323576,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Together","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323576-QCpJuoe7F3GC4NKHRRxd","object":"chat.completion.chunk","created":1773323576,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Together","choices":[],"usage":{"prompt_tokens":22,"completion_tokens":4,"total_tokens":26,"cost":0.0000068,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000068,"upstream_inference_prompt_cost":0.0000044,"upstream_inference_completions_cost":0.0000024},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.360585417s diff --git a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool.yaml b/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool.yaml deleted file mode 100644 index 1b3593156022fe4c6c7251430c54b7c38f5b0754..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 492 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323578-bFJS3JLS1vdGfLobyYO6\",\"object\":\"chat.completion\",\"created\":1773323578,\"model\":\"qwen/qwen3-235b-a22b-07-25\",\"provider\":\"Alibaba\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_72e6b5890385469d9a5c17\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence,Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":167,\"completion_tokens\":21,\"total_tokens\":188,\"cost\":0.0000375245,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00005773,\"upstream_inference_prompt_cost\":0.00003841,\"upstream_inference_completions_cost\":0.00001932},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 6.79434925s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 740 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_72e6b5890385469d9a5c17","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_72e6b5890385469d9a5c17","role":"tool"}],"model":"qwen/qwen3-235b-a22b-2507","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773323585-nJKeiMdmmaVo3UWXOxsZ\",\"object\":\"chat.completion\",\"created\":1773323585,\"model\":\"qwen/qwen3-235b-a22b-07-25\",\"provider\":\"Alibaba\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current temperature in Florence, Italy is 40°C. That's quite hot - you might want to stay hydrated and avoid prolonged sun exposure if you're there!\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":205,\"completion_tokens\":34,\"total_tokens\":239,\"cost\":0.0000509795,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00007843,\"upstream_inference_prompt_cost\":0.00004715,\"upstream_inference_completions_cost\":0.00003128},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.367666167s diff --git a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool_streaming.yaml deleted file mode 100644 index 63a586461444572ff4d68508c835b5bbcbb9f5fd..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommon/qwen3-235b-a22b-2507/tool_streaming.yaml +++ /dev/null @@ -1,97 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 546 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"}],"model":"qwen/qwen3-235b-a22b-2507","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323586-8fBgY9x08jXm7Re44i6j","object":"chat.completion.chunk","created":1773323586,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_6fee9774e3d94243a44f64","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323586-8fBgY9x08jXm7Re44i6j","object":"chat.completion.chunk","created":1773323586,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\": \"Flo"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323586-8fBgY9x08jXm7Re44i6j","object":"chat.completion.chunk","created":1773323586,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"rence,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323586-8fBgY9x08jXm7Re44i6j","object":"chat.completion.chunk","created":1773323586,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773323586-8fBgY9x08jXm7Re44i6j","object":"chat.completion.chunk","created":1773323586,"model":"qwen/qwen3-235b-a22b-07-25","provider":"Alibaba","choices":[],"usage":{"prompt_tokens":167,"completion_tokens":21,"total_tokens":188,"cost":0.0000375245,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00005773,"upstream_inference_prompt_cost":0.00003841,"upstream_inference_completions_cost":0.00001932},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 904.924959ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 794 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"call_6fee9774e3d94243a44f64","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"call_6fee9774e3d94243a44f64","role":"tool"}],"model":"qwen/qwen3-235b-a22b-2507","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" temperature in Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":", Italy is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" 40°C. That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"'s quite hot!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" You might want to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" take precautions if you're","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" planning to spend time outdoors.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773323587-zYCj0NBpXscVrjnVzE2P","object":"chat.completion.chunk","created":1773323587,"model":"qwen/qwen3-235b-a22b-07-25","provider":"AtlasCloud","choices":[],"usage":{"prompt_tokens":205,"completion_tokens":33,"total_tokens":238,"cost":0.00007004,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00007004,"upstream_inference_prompt_cost":0.000041,"upstream_inference_completions_cost":0.00002904},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 2.0409005s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..803541e794c89bc39be66a009698f34d9a91c815 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 930 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945519-vH8l4rm4QBpQxTOx4cAf\",\"object\":\"chat.completion\",\"created\":1773945519,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_bdrk_01H14Zn23kEJtcsCuMfrUSLn\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"toolu_bdrk_01YV3GUPWt1ArbfQmf7iprfQ\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":690,\"completion_tokens\":120,\"total_tokens\":810,\"cost\":0.00129,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00129,\"upstream_inference_prompt_cost\":0.00069,\"upstream_inference_completions_cost\":0.0006},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.567961792s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1385 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01H14Zn23kEJtcsCuMfrUSLn","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_bdrk_01YV3GUPWt1ArbfQmf7iprfQ","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_bdrk_01H14Zn23kEJtcsCuMfrUSLn","role":"tool"},{"content":"6","tool_call_id":"toolu_bdrk_01YV3GUPWt1ArbfQmf7iprfQ","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n{\"id\":\"gen-1773945521-RVUJLnRL6jUAAh5b6soX\",\"object\":\"chat.completion\",\"created\":1773945521,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Perfect! Here are the results:\\n\\n- **Addition**: 2 + 3 = **5**\\n- **Multiplication**: 2 × 3 = **6**\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":871,\"completion_tokens\":43,\"total_tokens\":914,\"cost\":0.001086,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.001086,\"upstream_inference_prompt_cost\":0.000871,\"upstream_inference_completions_cost\":0.000215},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.465064916s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3babb936112455b9945c51eaa84cc9653696b8d5 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/multi_tool_streaming.yaml @@ -0,0 +1,139 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 967 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_bdrk_01KDfMFitkvhgBdEEGHT9CRQ","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"toolu_bdrk_011XFKroyRot22bfhg21E6aX","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a\": "}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":", \""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945523-tt56AysOw62Fb3DpltAS","object":"chat.completion.chunk","created":1773945523,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":685,"completion_tokens":120,"total_tokens":805,"cost":0.001285,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001285,"upstream_inference_prompt_cost":0.000685,"upstream_inference_completions_cost":0.0006},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 4.244026542s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1422 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01KDfMFitkvhgBdEEGHT9CRQ","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_bdrk_011XFKroyRot22bfhg21E6aX","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_bdrk_01KDfMFitkvhgBdEEGHT9CRQ","role":"tool"},{"content":"6","tool_call_id":"toolu_bdrk_011XFKroyRot22bfhg21E6aX","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"Here are the results:\n\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"Addition","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"**: 2 + 3 ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"= **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"5**\n- **Multiplication**:","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" 2 × 3 =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" **6**","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945528-OutOUCEUBNVQzbdS7ePu","object":"chat.completion.chunk","created":1773945528,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":866,"completion_tokens":41,"total_tokens":907,"cost":0.001071,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001071,"upstream_inference_prompt_cost":0.000866,"upstream_inference_completions_cost":0.000205},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.563418666s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c43f51581a6794c5e1da48a29d88e397fa7bdaf1 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple.yaml @@ -0,0 +1,33 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 275 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Say hi in Portuguese","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945503-TWLdI6hobgaikHf5gRS1\",\"object\":\"chat.completion\",\"created\":1773945503,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá! \U0001F44B\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":10,\"total_tokens\":26,\"cost\":0.000066,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000066,\"upstream_inference_prompt_cost\":0.000016,\"upstream_inference_completions_cost\":0.00005},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 4.339756292s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a3946059fc64df08b5d7c774abafa8b51a9897dc --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/simple_streaming.yaml @@ -0,0 +1,32 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 329 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Say hi in Portuguese","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: ": OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\n: OPENROUTER PROCESSING\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Olá! \",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\U0001F44B\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\\n\\n(\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Or\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \\\"\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Oi!\\\" for\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" a\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" more casual greeting)\",\"role\":\"assistant\"},\"finish_reason\":null,\"native_finish_reason\":null}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}]}\n\ndata: {\"id\":\"gen-1773945508-Gat2V4icRH8NVNjvno2y\",\"object\":\"chat.completion.chunk\",\"created\":1773945508,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\",\"role\":\"assistant\"},\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":24,\"total_tokens\":40,\"cost\":0.000136,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000136,\"upstream_inference_prompt_cost\":0.000016,\"upstream_inference_completions_cost\":0.00012},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}\n\ndata: [DONE]\n\n" + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 4.0492025s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e6ba30a1352963bee0195f5b8b3e32859eb716d5 --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 567 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n{\"id\":\"gen-1773945512-Xt6mSHr3OgFEVbjoGGkN\",\"object\":\"chat.completion\",\"created\":1773945512,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_bdrk_01X4cGongGVKKVt2JGXZNZnt\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence, Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":577,\"completion_tokens\":54,\"total_tokens\":631,\"cost\":0.000847,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000847,\"upstream_inference_prompt_cost\":0.000577,\"upstream_inference_completions_cost\":0.00027},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.363396958s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 832 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01X4cGongGVKKVt2JGXZNZnt","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_bdrk_01X4cGongGVKKVt2JGXZNZnt","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_tokens":4000,"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"}],"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945513-P0NATIIxI7GM9cWqpyep\",\"object\":\"chat.completion\",\"created\":1773945513,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is currently **40°C (104°F)**, which is quite hot! It's a warm summer day in Florence. Make sure to stay hydrated and use sunscreen if you're planning to be outdoors.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":646,\"completion_tokens\":54,\"total_tokens\":700,\"cost\":0.000916,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000916,\"upstream_inference_prompt_cost\":0.000646,\"upstream_inference_completions_cost\":0.00027},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.631234625s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool_streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7c2e3fa1871c4b97c6ef03b9b8ad9337c81c363e --- /dev/null +++ b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/anthropic/tool_streaming.yaml @@ -0,0 +1,141 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 621 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-haiku-4.5","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_bdrk_01QQHfcup9N3oZuLJo424HVC","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"locati"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"on\": \"Flor"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ence, It"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"aly\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945515-sgmaEwpZZyQZdwfyE0yB","object":"chat.completion.chunk","created":1773945515,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":577,"completion_tokens":54,"total_tokens":631,"cost":0.000847,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000847,"upstream_inference_prompt_cost":0.000577,"upstream_inference_completions_cost":0.00027},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.609333666s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 886 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01QQHfcup9N3oZuLJo424HVC","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_bdrk_01QQHfcup9N3oZuLJo424HVC","role":"tool"}],"model":"anthropic/claude-haiku-4.5","max_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"}],"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"The current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" weather in Florence, Italy is **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"40°C (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"104°F)**,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" which","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" is quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" It","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"'s a typical warm","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" day","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" in Florence.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" Make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" sure to stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" hydrated and use sun","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" protection if","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" you're","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" planning","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" to be out","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"doors.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945517-KstYN5GyTgkkVlJf1xOk","object":"chat.completion.chunk","created":1773945517,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":646,"completion_tokens":54,"total_tokens":700,"cost":0.000916,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000916,"upstream_inference_prompt_cost":0.000646,"upstream_inference_completions_cost":0.00027},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.755883125s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool.yaml deleted file mode 100644 index e2ff222bdb4e77b6a3ef7addea1dc197f5e71cc2..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 929 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324184-8vOElEJygdHvs1UiVkEN\",\"object\":\"chat.completion\",\"created\":1773324184,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll add and multiply the numbers 2 and 3 for you.\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_vrtx_01UMFBt9414KnUbe9xgm8yDt\",\"function\":{\"name\":\"add\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}},{\"type\":\"function\",\"index\":1,\"id\":\"toolu_vrtx_01WNFhAiqxBUaWuWmLG23foT\",\"function\":{\"name\":\"multiply\",\"arguments\":\"{\\\"a\\\": 2, \\\"b\\\": 3}\"}}]}}],\"usage\":{\"prompt_tokens\":507,\"completion_tokens\":137,\"total_tokens\":644,\"cost\":0.003576,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.003576,\"upstream_inference_prompt_cost\":0.001521,\"upstream_inference_completions_cost\":0.002055},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.11106625s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1447 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. CRITICAL: Always use both add and multiply at the same time ALWAYS.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"toolu_vrtx_01UMFBt9414KnUbe9xgm8yDt","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_vrtx_01WNFhAiqxBUaWuWmLG23foT","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_vrtx_01UMFBt9414KnUbe9xgm8yDt","role":"tool"},{"content":"6","tool_call_id":"toolu_vrtx_01WNFhAiqxBUaWuWmLG23foT","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773324186-Qxi4tTEkA3BQDhVToA5M\",\"object\":\"chat.completion\",\"created\":1773324186,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The results are:\\n- 2 + 3 = 5\\n- 2 × 3 = 6\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":705,\"completion_tokens\":31,\"total_tokens\":736,\"cost\":0.00258,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00258,\"upstream_inference_prompt_cost\":0.002115,\"upstream_inference_completions_cost\":0.000465},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.200717875s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool_streaming.yaml deleted file mode 100644 index cff645962ca328499bf3b4ae782342655c39874a..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/multi_tool_streaming.yaml +++ /dev/null @@ -1,117 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 966 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"I'll add and multiply the numbers","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 2 and 3 for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" you.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_vrtx_011wZwUppFMdKW2FfZkCHGq2","type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"a\":"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" 2"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":", \"b\": "}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"toolu_vrtx_017e3hmwNUESxrsnHCENfihG","type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\"a"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\": 2"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324188-o8pFrvyokxnhFp6M7LcB","object":"chat.completion.chunk","created":1773324188,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.003561,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 987.473542ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1484 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant. Always use both add and multiply at the same time.","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Add and multiply the number 2 and 3","role":"user"},{"content":"I''ll add and multiply the numbers 2 and 3 for you.","tool_calls":[{"id":"toolu_vrtx_011wZwUppFMdKW2FfZkCHGq2","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"add"},"type":"function"},{"id":"toolu_vrtx_017e3hmwNUESxrsnHCENfihG","function":{"arguments":"{\"a\": 2, \"b\": 3}","name":"multiply"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"5","tool_call_id":"toolu_vrtx_011wZwUppFMdKW2FfZkCHGq2","role":"tool"},{"content":"6","tool_call_id":"toolu_vrtx_017e3hmwNUESxrsnHCENfihG","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"stream_options":{"include_usage":true},"tool_choice":"auto","tools":[{"function":{"name":"add","strict":false,"description":"Add two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"},{"function":{"name":"multiply","strict":false,"description":"Multiply two numbers","parameters":{"properties":{"a":{"description":"first number","type":"integer"},"b":{"description":"second number","type":"integer"}},"required":["a","b"],"type":"object"}},"type":"function"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"The results","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" are:\n- 2 +","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 3 = 5\n-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 2 × 3 =","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 6","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324190-rDR87be2AJ9WhEWxng6M","object":"chat.completion.chunk","created":1773324190,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":700,"completion_tokens":31,"total_tokens":731,"cost":0.002565,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002565,"upstream_inference_prompt_cost":0.0021,"upstream_inference_completions_cost":0.000465},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.056413833s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple.yaml deleted file mode 100644 index 44e1be85e110dd00b977bf4755788a5e52c44700..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 274 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Say hi in Portuguese","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773324174-Oio88s8cPrZHHJA7aeWm\",\"object\":\"chat.completion\",\"created\":1773324174,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"Olá! (Oh-LAH)\\n\\nThis is the most common way to say \\\"hi\\\" in Portuguese. You could also use \\\"Oi!\\\" (OH-ee) for a more casual greeting.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":48,\"total_tokens\":64,\"cost\":0.000768,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000768,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.00072},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 827.004333ms diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple_streaming.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple_streaming.yaml deleted file mode 100644 index ff659be532183099f372996674544856008e4531..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/simple_streaming.yaml +++ /dev/null @@ -1,66 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 328 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"Say hi in Portuguese","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"stream_options":{"include_usage":true},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"Olá!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"\n\n(","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"'s \"hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"\" in Portuguese.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" You","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" could","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" also say \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"Oi\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" more casual \"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"hi\"","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"!)","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324176-lEVasq5WSxTmtiGWJ2kj","object":"chat.completion.chunk","created":1773324176,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":16,"completion_tokens":34,"total_tokens":50,"cost":0.000558,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000558,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.00051},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.337713292s diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool.yaml deleted file mode 100644 index ee6ddf9ecce66aea67edb8db5687ab26d3175c92..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 566 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773324178-hYDlxAiXZTe8IoUHozpm\",\"object\":\"chat.completion\",\"created\":1773324178,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll check the weather in Florence, Italy for you.\",\"refusal\":null,\"reasoning\":null,\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_vrtx_01VArd3SL1FfXhFjvgNbaiT1\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence, Italy\\\"}\"}}]}}],\"usage\":{\"prompt_tokens\":394,\"completion_tokens\":66,\"total_tokens\":460,\"cost\":0.002172,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002172,\"upstream_inference_prompt_cost\":0.001182,\"upstream_inference_completions_cost\":0.00099},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.100918125s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 894 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"toolu_vrtx_01VArd3SL1FfXhFjvgNbaiT1","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_01VArd3SL1FfXhFjvgNbaiT1","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_tokens":4000,"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"}],"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773324179-vNzYDdG0k9CSHmmA0OzF\",\"object\":\"chat.completion\",\"created\":1773324179,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in Florence, Italy shows a temperature of 40°C (104°F). That's quite hot! If you're planning to visit or are currently there, make sure to stay hydrated and seek shade during the hottest parts of the day.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":475,\"completion_tokens\":57,\"total_tokens\":532,\"cost\":0.00228,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00228,\"upstream_inference_prompt_cost\":0.001425,\"upstream_inference_completions_cost\":0.000855},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 840.356833ms diff --git a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool_streaming.yaml b/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool_streaming.yaml deleted file mode 100644 index 73b4a5bda5d15788b4005fd552780a820858adb5..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterCommonWithAnthropicCache/claude-sonnet-4/tool_streaming.yaml +++ /dev/null @@ -1,115 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 620 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user","cache_control":{"type":"ephemeral"}}],"model":"anthropic/claude-sonnet-4","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"I'll get","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" the current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" weather information","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" for Florence, Italy.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_vrtx_01AZy2y2t2KJbopRx2aMRt33","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":": \"Floren"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ce, I"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ta"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ly\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324181-MBdVvu98CVBUpW6Xl4VU","object":"chat.completion.chunk","created":1773324181,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":394,"completion_tokens":66,"total_tokens":460,"cost":0.002172,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002172,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.00099},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.065862208s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 959 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system","cache_control":{"type":"ephemeral"}},{"content":"What''s the weather in Florence,Italy?","role":"user"},{"content":"I''ll get the current weather information for Florence, Italy.","tool_calls":[{"id":"toolu_vrtx_01AZy2y2t2KJbopRx2aMRt33","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function","cache_control":{"type":"ephemeral"}}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_01AZy2y2t2KJbopRx2aMRt33","role":"tool"}],"model":"anthropic/claude-sonnet-4","max_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"}],"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"The current weather in Florence, Italy is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" 40°C (104°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"). That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"'s quite hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" It's a very","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" warm","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" day","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" in Florence.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324183-is5MYGEDmIqsp2ZNqz7t","object":"chat.completion.chunk","created":1773324183,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":475,"completion_tokens":34,"total_tokens":509,"cost":0.001935,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001935,"upstream_inference_prompt_cost":0.001425,"upstream_inference_completions_cost":0.00051},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 844.29125ms diff --git a/providertests/testdata/TestOpenRouterThinking/anthropic/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/anthropic/thinking-streaming.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ec593ea7e8bec173eef8182c9da34d4c614e7d62 --- /dev/null +++ b/providertests/testdata/TestOpenRouterThinking/anthropic/thinking-streaming.yaml @@ -0,0 +1,177 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 562 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"anthropic/claude-haiku-4.5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The user is asking for","reasoning_details":[{"type":"reasoning.text","text":"The user is asking for","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the weather in Florence, Italy. I","reasoning_details":[{"type":"reasoning.text","text":" the weather in Florence, Italy. I","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.text","text":" have","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a weather","reasoning_details":[{"type":"reasoning.text","text":" a weather","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function available that takes","reasoning_details":[{"type":"reasoning.text","text":" function available that takes","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a location parameter. I should call","reasoning_details":[{"type":"reasoning.text","text":" a location parameter. I should call","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.text","text":" it","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with \"Florence, Italy\" or","reasoning_details":[{"type":"reasoning.text","text":" with \"Florence, Italy\" or","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" just","reasoning_details":[{"type":"reasoning.text","text":" just","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"Florence\" as the location. Let","reasoning_details":[{"type":"reasoning.text","text":" \"Florence\" as the location. Let","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" me use","reasoning_details":[{"type":"reasoning.text","text":" me use","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Florence, Italy\" to","reasoning_details":[{"type":"reasoning.text","text":"Florence, Italy\" to","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" be","reasoning_details":[{"type":"reasoning.text","text":" be","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" specific","reasoning_details":[{"type":"reasoning.text","text":" specific","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_bdrk_01Xwqc5oEGdjPCCPum1Dtb2Y","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"Florence,"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning_details":[{"type":"reasoning.text","signature":"Ep8DCkgICxABGAIqQMPJIeZ0P/DSe9JQ2wg9NaUiY1fY4A/kD7HwtPBhRsepL0jAqIXyjKajtqj8mKKNj39kCrDFp0b8NOBIbX3e+XASDPK3RtRCSq7Z/Iu0kxoMCL2VPJ0qWJYZyey0IjCjhME7FUWTLD7dhGw2WNWJmQNbsVVq1YyyqPpn8Ap9qdhRPb/0uZM0wZaMR/FW2C0qhALVhWU2Hb3H30vrcYfc5S6wPMnYgNDIAvsif7nvmGrWK8YA+4cd9cPNBIfi/AO/OUkOeXowSVr4F19yt+fcjKXDOff5PfS+j/FeqwcKhG1EIC8SQvnqjAZqTmlPg5B1O8nrVqrUZWr3UEqVKoGUvrEQxKobN+JN/2u+/yQQK3SmrnArp2+N1fusDCz6uq7V1qWhjSzsZKTUO4+lFy0eKCzNFeGFRGFgZTgWdfS/cxiCaZLe0PE35kq6ubKVNGC+C6NVBm3h/bNtqQuWt+19TAX7y8Vk94rBMaEeJsCo81W0EOkhenk5ohDZsvL+8iFcDso5whoraTA0HQViPU1zW+FifZDATBgB","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} + + data: {"id":"gen-1773945537-De6r293kjwFRqSih0qan","object":"chat.completion.chunk","created":1773945537,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}],"usage":{"prompt_tokens":607,"completion_tokens":116,"total_tokens":723,"cost":0.001187,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001187,"upstream_inference_prompt_cost":0.000607,"upstream_inference_completions_cost":0.00058},"completion_tokens_details":{"reasoning_tokens":61,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.27368825s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1972 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_01Xwqc5oEGdjPCCPum1Dtb2Y","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"anthropic-claude-v1","index":0,"signature":"Ep8DCkgICxABGAIqQMPJIeZ0P/DSe9JQ2wg9NaUiY1fY4A/kD7HwtPBhRsepL0jAqIXyjKajtqj8mKKNj39kCrDFp0b8NOBIbX3e+XASDPK3RtRCSq7Z/Iu0kxoMCL2VPJ0qWJYZyey0IjCjhME7FUWTLD7dhGw2WNWJmQNbsVVq1YyyqPpn8Ap9qdhRPb/0uZM0wZaMR/FW2C0qhALVhWU2Hb3H30vrcYfc5S6wPMnYgNDIAvsif7nvmGrWK8YA+4cd9cPNBIfi/AO/OUkOeXowSVr4F19yt+fcjKXDOff5PfS+j/FeqwcKhG1EIC8SQvnqjAZqTmlPg5B1O8nrVqrUZWr3UEqVKoGUvrEQxKobN+JN/2u+/yQQK3SmrnArp2+N1fusDCz6uq7V1qWhjSzsZKTUO4+lFy0eKCzNFeGFRGFgZTgWdfS/cxiCaZLe0PE35kq6ubKVNGC+C6NVBm3h/bNtqQuWt+19TAX7y8Vk94rBMaEeJsCo81W0EOkhenk5ohDZsvL+8iFcDso5whoraTA0HQViPU1zW+FifZDATBgB","text":" the weather in Florence, Italy. I have a weather function available that takes a location parameter. I should call it with \"Florence, Italy\" or just \"Florence\" as the location. Let me use \"Florence, Italy\" to be specific.","type":"reasoning.text"}],"reasoning":" the weather in Florence, Italy. I have a weather function available that takes a location parameter. I should call it with \"Florence, Italy\" or just \"Florence\" as the location. Let me use \"Florence, Italy\" to be specific."},{"content":"40 C","tool_call_id":"toolu_bdrk_01Xwqc5oEGdjPCCPum1Dtb2Y","role":"tool"}],"model":"anthropic/claude-haiku-4.5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + body: |+ + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + : OPENROUTER PROCESSING + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"The weather in Florence, Italy is currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" **","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"40°C (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"104°F)**,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" which","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" is quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"! It's a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" warm","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" summer","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" day in Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" If","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" you're planning to visit or travel","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" there","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":", make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" sure to stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" hydrated,","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" wear","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" light clothing","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":", and apply","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":" sunscreen.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} + + data: {"id":"gen-1773945539-NkL1DRr645GoRuXEuqXV","object":"chat.completion.chunk","created":1773945539,"model":"anthropic/claude-4.5-haiku-20251001","provider":"Amazon Bedrock","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":738,"completion_tokens":61,"total_tokens":799,"cost":0.001043,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001043,"upstream_inference_prompt_cost":0.000738,"upstream_inference_completions_cost":0.000305},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} + + data: [DONE] + + headers: + Content-Type: + - text/event-stream + status: 200 OK + code: 200 + duration: 1.79521675s diff --git a/providertests/testdata/TestOpenRouterThinking/anthropic/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/anthropic/thinking.yaml new file mode 100644 index 0000000000000000000000000000000000000000..56bf5836cb7d2fa02adbc9c26ed5633bf79f3721 --- /dev/null +++ b/providertests/testdata/TestOpenRouterThinking/anthropic/thinking.yaml @@ -0,0 +1,63 @@ +--- +version: 2 +interactions: +- id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 508 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"anthropic/claude-haiku-4.5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945529-4x3WtegraF6F7Hx5vnXk\",\"object\":\"chat.completion\",\"created\":1773945529,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. I should call the weather function with \\\"Florence, Italy\\\" or just \\\"Florence\\\" as the location.\\n\\nLet me call the weather function with \\\"Florence, Italy\\\" to get the weather information.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_bdrk_011YAi4MUZaDYszc4HjpbhN2\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. I should call the weather function with \\\"Florence, Italy\\\" or just \\\"Florence\\\" as the location.\\n\\nLet me call the weather function with \\\"Florence, Italy\\\" to get the weather information.\",\"format\":\"anthropic-claude-v1\",\"index\":0,\"signature\":\"EtsDCkgICxABGAIqQEwZWjOj3+xqUgNiHMa7PU5h2NpcWKGQ5Xz6Z2W6TpuQI8BawgtBcx2w3Ii+aO8SWxb9/FWh7QMQIxpC3V1N9hkSDBF9vqo23Di4tTYwfBoMdcIzCI5hZzhIYBWbIjCcfrx6oOoMUcCgm3R+Mh4goj6nQAzX4NbwlXUaXR0/QLr9IFLrsRIsTNen3kZec+EqwAIPgE2IdMn4w//171eA8fA6vJtlFtkOvwql1e/Znt+i/H4D1XA7wnBBzFJFNe7lXOEMWce3o9eAnzROAyTKtwEPCRVFySVgSWsl1YQ7wOEfT8fisVKp1fpKmpxnHz/gdFVoVE5FcuSMXaBg5fnNCzerUgv2GcImSr86WDSSuLhGiECmVPAeMeZU2zPUkKxIKJeDVxXotEX0MgpS2xZaq/GD/vgbi+DW5aVcSK+IAsSg55/wwwcR/aT95KO+ayT80adkVugVMIBr+CQfQZo40SjguNaxA55Fln6+WclcaRmVfeES54KeYWApJshca+93LwwwvOtpigqpoa0650ftVyLpvcr2dhxArg1K7tguv3wN6MDEvNflxRk3y2u010vPG/ycgT0Mkzs+TIPPlrz+a5S9yZzxUBfP+xKmyquEMTCQnhgB\"}]}}],\"usage\":{\"prompt_tokens\":607,\"completion_tokens\":126,\"total_tokens\":733,\"cost\":0.001237,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.001237,\"upstream_inference_prompt_cost\":0.000607,\"upstream_inference_completions_cost\":0.00063},\"completion_tokens_details\":{\"reasoning_tokens\":78,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 5.523986875s +- id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 2170 + host: "" + body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"toolu_bdrk_011YAi4MUZaDYszc4HjpbhN2","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"anthropic-claude-v1","index":0,"signature":"EtsDCkgICxABGAIqQEwZWjOj3+xqUgNiHMa7PU5h2NpcWKGQ5Xz6Z2W6TpuQI8BawgtBcx2w3Ii+aO8SWxb9/FWh7QMQIxpC3V1N9hkSDBF9vqo23Di4tTYwfBoMdcIzCI5hZzhIYBWbIjCcfrx6oOoMUcCgm3R+Mh4goj6nQAzX4NbwlXUaXR0/QLr9IFLrsRIsTNen3kZec+EqwAIPgE2IdMn4w//171eA8fA6vJtlFtkOvwql1e/Znt+i/H4D1XA7wnBBzFJFNe7lXOEMWce3o9eAnzROAyTKtwEPCRVFySVgSWsl1YQ7wOEfT8fisVKp1fpKmpxnHz/gdFVoVE5FcuSMXaBg5fnNCzerUgv2GcImSr86WDSSuLhGiECmVPAeMeZU2zPUkKxIKJeDVxXotEX0MgpS2xZaq/GD/vgbi+DW5aVcSK+IAsSg55/wwwcR/aT95KO+ayT80adkVugVMIBr+CQfQZo40SjguNaxA55Fln6+WclcaRmVfeES54KeYWApJshca+93LwwwvOtpigqpoa0650ftVyLpvcr2dhxArg1K7tguv3wN6MDEvNflxRk3y2u010vPG/ycgT0Mkzs+TIPPlrz+a5S9yZzxUBfP+xKmyquEMTCQnhgB","text":"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. I should call the weather function with \"Florence, Italy\" or just \"Florence\" as the location.\n\nLet me call the weather function with \"Florence, Italy\" to get the weather information.","type":"reasoning.text"}],"reasoning":"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. I should call the weather function with \"Florence, Italy\" or just \"Florence\" as the location.\n\nLet me call the weather function with \"Florence, Italy\" to get the weather information."},{"content":"40 C","tool_call_id":"toolu_bdrk_011YAi4MUZaDYszc4HjpbhN2","role":"tool"}],"model":"anthropic/claude-haiku-4.5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Charm-Fantasy/0.15.0 (https://charm.land/fantasy) + url: https://openrouter.ai/api/v1/chat/completions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + content_length: -1 + uncompressed: true + body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773945535-J1gXRWEKUu1J0LUdVpFo\",\"object\":\"chat.completion\",\"created\":1773945535,\"model\":\"anthropic/claude-4.5-haiku-20251001\",\"provider\":\"Amazon Bedrock\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is currently **40°C (104°F)**, which is quite hot! \\n\\nThat's typical for Florence during the summer months when temperatures can get quite warm. If you're planning to visit or are currently there, make sure to:\\n- Stay hydrated\\n- Wear light, breathable clothing\\n- Use sunscreen\\n- Try to explore during early morning or late evening hours to avoid the peak heat\\n\\nIs there anything else you'd like to know about the weather or Florence?\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":747,\"completion_tokens\":111,\"total_tokens\":858,\"cost\":0.001302,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.001302,\"upstream_inference_prompt_cost\":0.000747,\"upstream_inference_completions_cost\":0.000555},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: 1.309788583s diff --git a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking-streaming.yaml deleted file mode 100644 index e2e45dd274b0d6c159c4ceb23966b06d807a5a2c..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking-streaming.yaml +++ /dev/null @@ -1,137 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 561 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The user is asking for","reasoning_details":[{"type":"reasoning.text","text":"The user is asking for","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information for","reasoning_details":[{"type":"reasoning.text","text":" information for","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence, Italy. I have access","reasoning_details":[{"type":"reasoning.text","text":" Florence, Italy. I have access","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to a weather function that takes","reasoning_details":[{"type":"reasoning.text","text":" to a weather function that takes","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a location parameter. The location","reasoning_details":[{"type":"reasoning.text","text":" a location parameter. The location","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clearly","reasoning_details":[{"type":"reasoning.text","text":" clearly","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" specified","reasoning_details":[{"type":"reasoning.text","text":" specified","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as \"Florence, Italy\" so I","reasoning_details":[{"type":"reasoning.text","text":" as \"Florence, Italy\" so I","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have all the required parameters","reasoning_details":[{"type":"reasoning.text","text":" have all the required parameters","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to make the","reasoning_details":[{"type":"reasoning.text","text":" to make the","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function call.","reasoning_details":[{"type":"reasoning.text","text":" function call.","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_vrtx_01HKfUyb4tpj4kvPgTuusByf","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"locati"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"on"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\": \"Flor"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ence, I"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"taly"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning_details":[{"type":"reasoning.text","signature":"EqcDCkgICxACGAIqQM0Cd2vack9XE5bBfQ+UzUmO6mtcCD9QEy7/W2YXPJaAq8xvtMBNeQKGAoNiRvy3r9GXKYMe5MmAW+7LfgsburkSDD2T6pIVGFhXrqFeyBoM5VdxjM6/xX3P78QMIjCWe/6ttXxKOW/sdYJ4JzE4bKGjIuYfTJv+0i8OZkAF/FvXHIKSm8jG0D/Li44mdqkqjAJGEtZwg9srd1Q47ovDJqfU3QaOz7F34UKA+VQ5WhcY8sO1GyjqPYMLxcgo794PsisD6/0pZPqtvBFW28e3sd/iedHI6adxgJs83k5ap/B5rhJY6AJcCjcEfO+Fi7b6CYRElRvWI1vSDIct251jOTZ51tt9T1kw1u6UhoJfIY/SmiEI6AgP3wBpESi7H+bnrX9/w/97V7tbdDclP09MgZqLrt4+ECvNLn04lXXLGQYAOglRm8Tixk1IN4LGV6TJtDngbwk+Be+Zn6kqvJ8bo0BOZJOhRAbgc1HF+kgV4z80aTtBILpbYo0uV/IQRElhU5/Y7sbVTDwRft/bzZxdTdUJN/vqvb+BAkiSbxWCGAE=","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773326264-OoghvABlt3eLCw2WPlqS","object":"chat.completion.chunk","created":1773326264,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":424,"completion_tokens":110,"total_tokens":534,"cost":0.002922,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002922,"upstream_inference_prompt_cost":0.001272,"upstream_inference_completions_cost":0.00165},"completion_tokens_details":{"reasoning_tokens":63,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.00973575s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1991 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"toolu_vrtx_01HKfUyb4tpj4kvPgTuusByf","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"anthropic-claude-v1","index":0,"signature":"EqcDCkgICxACGAIqQM0Cd2vack9XE5bBfQ+UzUmO6mtcCD9QEy7/W2YXPJaAq8xvtMBNeQKGAoNiRvy3r9GXKYMe5MmAW+7LfgsburkSDD2T6pIVGFhXrqFeyBoM5VdxjM6/xX3P78QMIjCWe/6ttXxKOW/sdYJ4JzE4bKGjIuYfTJv+0i8OZkAF/FvXHIKSm8jG0D/Li44mdqkqjAJGEtZwg9srd1Q47ovDJqfU3QaOz7F34UKA+VQ5WhcY8sO1GyjqPYMLxcgo794PsisD6/0pZPqtvBFW28e3sd/iedHI6adxgJs83k5ap/B5rhJY6AJcCjcEfO+Fi7b6CYRElRvWI1vSDIct251jOTZ51tt9T1kw1u6UhoJfIY/SmiEI6AgP3wBpESi7H+bnrX9/w/97V7tbdDclP09MgZqLrt4+ECvNLn04lXXLGQYAOglRm8Tixk1IN4LGV6TJtDngbwk+Be+Zn6kqvJ8bo0BOZJOhRAbgc1HF+kgV4z80aTtBILpbYo0uV/IQRElhU5/Y7sbVTDwRft/bzZxdTdUJN/vqvb+BAkiSbxWCGAE=","text":" weather information for Florence, Italy. I have access to a weather function that takes a location parameter. The location is clearly specified as \"Florence, Italy\" so I have all the required parameters to make the function call.","type":"reasoning.text"}],"reasoning":" weather information for Florence, Italy. I have access to a weather function that takes a location parameter. The location is clearly specified as \"Florence, Italy\" so I have all the required parameters to make the function call."},{"content":"40 C","tool_call_id":"toolu_vrtx_01HKfUyb4tpj4kvPgTuusByf","role":"tool"}],"model":"anthropic/claude-sonnet-4","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"}],"usage":{"include":true},"reasoning":{"effort":"medium"},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"The current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" weather in Florence, Italy shows","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" a","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" temperature of 40°C (104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"°F). That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"'s quite hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" It's a very","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" warm day in Florence.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773326267-RCoDFUZUJvX71yoT5AUB","object":"chat.completion.chunk","created":1773326267,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":549,"completion_tokens":37,"total_tokens":586,"cost":0.002202,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002202,"upstream_inference_prompt_cost":0.001647,"upstream_inference_completions_cost":0.000555},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.070964125s diff --git a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking.yaml deleted file mode 100644 index 53cac413b35b3d7e9f843e260500ce0421a7e64e..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4-sig/thinking.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 507 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773326261-pUI5KeUN113EFRmnGRdE\",\"object\":\"chat.completion\",\"created\":1773326261,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided the location as \\\"Florence, Italy\\\". I have all the required parameters to make the function call.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_vrtx_015EeDRWGA7dLHZpVKzpowig\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided the location as \\\"Florence, Italy\\\". I have all the required parameters to make the function call.\",\"format\":\"anthropic-claude-v1\",\"index\":0,\"signature\":\"Ep0DCkgICxACGAIqQJmzDCDSnhjTLtbQN/8+vA+ikDMrFxdtqj0wHvIeq2oQUBTAQ8VRUYbJXEAcf7aD0WdIMvG1i4JHgNBPvjXICfcSDHw8OBuN4XlGNfRIKxoM4AR3oB+wLCO9h+yDIjCMOl5LPYOG3MdocS6Yi4qPredgXsJ3VnsYteb+2RWXDwu5DdtpxKkHZM8ChTvK28MqggJFV0e2eifv3hGHmfYJ+G0ZmnaeBzlCOd6SvYTq1uKBlLsbsyfXa+o17HVa7lDQRYfDz1Sim54JdlRW1awVl5k8tOXFLyCtR1B7CJyYVjo+2k4bgF8yam6Q3YZwtb8ORR6X4/r1LBnDlkfh+1FjgfmAULXRkZ7/jxBC/2EAEbiDK8dYJWRtMdrKV2r2UmbBbfkp7r4t1RMHqmGSk0pg6lOjKbRdcXbAB8w2Bo+auQNlKOHQNN0PmBLjP69BzMgIQjx0m8byWjYOV6x4l8moRU8GiknhqN8ttSib2KLVlQlKScij8KG53tqF+ltGlhjWoH2PyOvpxIouwr0Bf9qtY+aBBMcYAQ==\"}]}}],\"usage\":{\"prompt_tokens\":424,\"completion_tokens\":110,\"total_tokens\":534,\"cost\":0.002922,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002922,\"upstream_inference_prompt_cost\":0.001272,\"upstream_inference_completions_cost\":0.00165},\"completion_tokens_details\":{\"reasoning_tokens\":61,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.118502s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1949 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"toolu_vrtx_015EeDRWGA7dLHZpVKzpowig","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"anthropic-claude-v1","index":0,"signature":"Ep0DCkgICxACGAIqQJmzDCDSnhjTLtbQN/8+vA+ikDMrFxdtqj0wHvIeq2oQUBTAQ8VRUYbJXEAcf7aD0WdIMvG1i4JHgNBPvjXICfcSDHw8OBuN4XlGNfRIKxoM4AR3oB+wLCO9h+yDIjCMOl5LPYOG3MdocS6Yi4qPredgXsJ3VnsYteb+2RWXDwu5DdtpxKkHZM8ChTvK28MqggJFV0e2eifv3hGHmfYJ+G0ZmnaeBzlCOd6SvYTq1uKBlLsbsyfXa+o17HVa7lDQRYfDz1Sim54JdlRW1awVl5k8tOXFLyCtR1B7CJyYVjo+2k4bgF8yam6Q3YZwtb8ORR6X4/r1LBnDlkfh+1FjgfmAULXRkZ7/jxBC/2EAEbiDK8dYJWRtMdrKV2r2UmbBbfkp7r4t1RMHqmGSk0pg6lOjKbRdcXbAB8w2Bo+auQNlKOHQNN0PmBLjP69BzMgIQjx0m8byWjYOV6x4l8moRU8GiknhqN8ttSib2KLVlQlKScij8KG53tqF+ltGlhjWoH2PyOvpxIouwr0Bf9qtY+aBBMcYAQ==","text":"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided the location as \"Florence, Italy\". I have all the required parameters to make the function call.","type":"reasoning.text"}],"reasoning":"The user is asking for the weather in Florence, Italy. I have access to a weather function that takes a location parameter. The user has provided the location as \"Florence, Italy\". I have all the required parameters to make the function call."},{"content":"40 C","tool_call_id":"toolu_vrtx_015EeDRWGA7dLHZpVKzpowig","role":"tool"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n{\"id\":\"gen-1773326263-swLXYBR1ICuR4npunGV5\",\"object\":\"chat.completion\",\"created\":1773326263,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in Florence, Italy is 40°C (104°F). That's quite hot! It's a very warm day in Florence right now.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":549,\"completion_tokens\":36,\"total_tokens\":585,\"cost\":0.002187,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002187,\"upstream_inference_prompt_cost\":0.001647,\"upstream_inference_completions_cost\":0.00054},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.089580291s diff --git a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking-streaming.yaml deleted file mode 100644 index 2417dbfda3f49cdbc42fcb3b4291522dd924a1e5..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking-streaming.yaml +++ /dev/null @@ -1,139 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 561 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The user is asking for weather information for","reasoning_details":[{"type":"reasoning.text","text":"The user is asking for weather information for","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence, Italy. I have access","reasoning_details":[{"type":"reasoning.text","text":" Florence, Italy. I have access","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to a weather function that requires","reasoning_details":[{"type":"reasoning.text","text":" to a weather function that requires","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a location parameter. The","reasoning_details":[{"type":"reasoning.text","text":" a location parameter. The","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user has provided the location as \"Florence","reasoning_details":[{"type":"reasoning.text","text":" user has provided the location as \"Florence","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":", Italy\".","reasoning_details":[{"type":"reasoning.text","text":", Italy\".","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I have","reasoning_details":[{"type":"reasoning.text","text":" I have","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" all the required parameters to make the","reasoning_details":[{"type":"reasoning.text","text":" all the required parameters to make the","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function call.","reasoning_details":[{"type":"reasoning.text","text":" function call.","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"toolu_vrtx_01NRAptSJVJEik354SSeQZAs","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"loca"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ti"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"on\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":": \"Florence,"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" I"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"taly\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning_details":[{"type":"reasoning.text","signature":"EqkDCkgICxACGAIqQPS7GVr0GXPH6M+WzQ1vKtUqRBHv1LhaC0/WFMQlYmVaM9CGfR2D2LPkjWcVDLyv3VhSBwhzqJ7/TqPBgU19uX8SDNcW4mQhOGZ8NT+CyxoMbbl8zeAq03liEOT4IjCrFqSXlBQ4fKC4vLk5pvUFsStMTVC7lQqOCgx9Wi8wbWQARs0NgwUqMGRaPvyqqKkqjgL/UoXjowlOTTm2Fr7eWoiV5ZakWSRVesu8jBjxWWADiYR6i7YMTq7J32a/5C9br4HoEiD8g8Qdt3wOqrFMZWNhAQQ7kTS6bxYNLPE9SIVRuLyVpcvjcXLZviedK3AJ+EZrO/mx4efFo9TFIQ5vf59fecRWPc4QwJ7bDK4v9s+SLrA6tulpJBmiC3c7ZoaHXRV/qIbBTUDG9yifohjgmYZHo/PARPH7dqxkwYS25UtZHa5r8ENHvPhCuK4CowY8+3dj1qi1NjbR6xJPIrCBW9OZCtIB8/0zdmz6LoY/CCYhuOKPKClNgMoxLUtA79MgcC/kMndvWauXkbk2g2hMRGnOD6yvhGU8Hs1q0y+5yTQYAQ==","format":"anthropic-claude-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773326256-GfjuN0tRbvSxE7XpT5vu","object":"chat.completion.chunk","created":1773326256,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":424,"completion_tokens":110,"total_tokens":534,"cost":0.002922,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002922,"upstream_inference_prompt_cost":0.001272,"upstream_inference_completions_cost":0.00165},"completion_tokens_details":{"reasoning_tokens":64,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.126881375s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1951 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"toolu_vrtx_01NRAptSJVJEik354SSeQZAs","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"anthropic-claude-v1","index":0,"signature":"EqkDCkgICxACGAIqQPS7GVr0GXPH6M+WzQ1vKtUqRBHv1LhaC0/WFMQlYmVaM9CGfR2D2LPkjWcVDLyv3VhSBwhzqJ7/TqPBgU19uX8SDNcW4mQhOGZ8NT+CyxoMbbl8zeAq03liEOT4IjCrFqSXlBQ4fKC4vLk5pvUFsStMTVC7lQqOCgx9Wi8wbWQARs0NgwUqMGRaPvyqqKkqjgL/UoXjowlOTTm2Fr7eWoiV5ZakWSRVesu8jBjxWWADiYR6i7YMTq7J32a/5C9br4HoEiD8g8Qdt3wOqrFMZWNhAQQ7kTS6bxYNLPE9SIVRuLyVpcvjcXLZviedK3AJ+EZrO/mx4efFo9TFIQ5vf59fecRWPc4QwJ7bDK4v9s+SLrA6tulpJBmiC3c7ZoaHXRV/qIbBTUDG9yifohjgmYZHo/PARPH7dqxkwYS25UtZHa5r8ENHvPhCuK4CowY8+3dj1qi1NjbR6xJPIrCBW9OZCtIB8/0zdmz6LoY/CCYhuOKPKClNgMoxLUtA79MgcC/kMndvWauXkbk2g2hMRGnOD6yvhGU8Hs1q0y+5yTQYAQ==","text":" Florence, Italy. I have access to a weather function that requires a location parameter. The user has provided the location as \"Florence, Italy\". I have all the required parameters to make the function call.","type":"reasoning.text"}],"reasoning":" Florence, Italy. I have access to a weather function that requires a location parameter. The user has provided the location as \"Florence, Italy\". I have all the required parameters to make the function call."},{"content":"40 C","tool_call_id":"toolu_vrtx_01NRAptSJVJEik354SSeQZAs","role":"tool"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"The current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" weather in Florence, Italy is ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"40°C (104°F).","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" That","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"'s quite hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" If","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" you're planning to visit or","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" are","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" currently there, make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" sure to stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" hydrated and seek","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" shade during the hottest parts","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":" of the day.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773326258-WHvws41Vctn3G2tYV7Ov","object":"chat.completion.chunk","created":1773326258,"model":"anthropic/claude-4-sonnet-20250522","provider":"Google","choices":[],"usage":{"prompt_tokens":549,"completion_tokens":54,"total_tokens":603,"cost":0.002457,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.002457,"upstream_inference_prompt_cost":0.001647,"upstream_inference_completions_cost":0.00081},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.487207542s diff --git a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking.yaml deleted file mode 100644 index 752cdb599437df7ccbea9da05b67f4a3e697c866..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/claude-sonnet-4/thinking.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 507 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773326252-Szns4H7bQ8CavE2ZWrAx\",\"object\":\"chat.completion\",\"created\":1773326252,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user is asking for weather information for Florence, Italy. I have a weather function available that takes a location parameter. The location is clearly specified as \\\"Florence, Italy\\\". I have all the required parameters to make this function call.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"toolu_vrtx_01HKcnQ9ZDwiuVXhno3dysoz\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\": \\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user is asking for weather information for Florence, Italy. I have a weather function available that takes a location parameter. The location is clearly specified as \\\"Florence, Italy\\\". I have all the required parameters to make this function call.\",\"format\":\"anthropic-claude-v1\",\"index\":0,\"signature\":\"EqYDCkgICxACGAIqQNsOj6PE+duVt8oIRuUmE1rZG5ZkPG2qzFQyFcuSsHBGk91owFsSSnL9aAHsCVfZBXLeVpw4G3cZkIT2ShMZgkISDKLmsYbF5oVpYVaVwxoMafxjLbaccu2R9CNlIjCiU/SRvlpBflE2InCBHRfWRVGRFjHaw/wSGCSlBdnECQGY9CZ0IQ4b2JzhmTbwSvgqiwIOyHzZtG7qhjvQS+TaGCajalAmW/yu1i+dH29Roi3n4hvCJAuvtH7aR5ilDXyEDXyEG2F6iFmCRmwAeVNBj6WK3f5ZiX4zKJo8I/GLU0J0JVXl5pmf4tHSVVPAQhcC7Y5qL0jCEJjkaDBWriyq7KzMaC23hwRmM35ptVLBqbokDeJiiQsuhVIyENfUd/Btn0VNlPq/Ux9Wd5+afPQa6mgywz+P3Ct3dcrHOKOL/Y+c27d8hmPMDofZLgI8MpN76ArcdL3PAyoNzYx+A5+ewmAHHFOy5i52sTy8vIa298z2M1XlCTp+oY8kT0LbVQX0po/+iaPnii98LVzgV0aWxjgIzVdhtE7C6mxVbgEYAQ==\"}]}}],\"usage\":{\"prompt_tokens\":424,\"completion_tokens\":108,\"total_tokens\":532,\"cost\":0.002892,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002892,\"upstream_inference_prompt_cost\":0.001272,\"upstream_inference_completions_cost\":0.00162},\"completion_tokens_details\":{\"reasoning_tokens\":63,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.615072s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1979 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"toolu_vrtx_01HKcnQ9ZDwiuVXhno3dysoz","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"anthropic-claude-v1","index":0,"signature":"EqYDCkgICxACGAIqQNsOj6PE+duVt8oIRuUmE1rZG5ZkPG2qzFQyFcuSsHBGk91owFsSSnL9aAHsCVfZBXLeVpw4G3cZkIT2ShMZgkISDKLmsYbF5oVpYVaVwxoMafxjLbaccu2R9CNlIjCiU/SRvlpBflE2InCBHRfWRVGRFjHaw/wSGCSlBdnECQGY9CZ0IQ4b2JzhmTbwSvgqiwIOyHzZtG7qhjvQS+TaGCajalAmW/yu1i+dH29Roi3n4hvCJAuvtH7aR5ilDXyEDXyEG2F6iFmCRmwAeVNBj6WK3f5ZiX4zKJo8I/GLU0J0JVXl5pmf4tHSVVPAQhcC7Y5qL0jCEJjkaDBWriyq7KzMaC23hwRmM35ptVLBqbokDeJiiQsuhVIyENfUd/Btn0VNlPq/Ux9Wd5+afPQa6mgywz+P3Ct3dcrHOKOL/Y+c27d8hmPMDofZLgI8MpN76ArcdL3PAyoNzYx+A5+ewmAHHFOy5i52sTy8vIa298z2M1XlCTp+oY8kT0LbVQX0po/+iaPnii98LVzgV0aWxjgIzVdhtE7C6mxVbgEYAQ==","text":"The user is asking for weather information for Florence, Italy. I have a weather function available that takes a location parameter. The location is clearly specified as \"Florence, Italy\". I have all the required parameters to make this function call.","type":"reasoning.text"}],"reasoning":"The user is asking for weather information for Florence, Italy. I have a weather function available that takes a location parameter. The location is clearly specified as \"Florence, Italy\". I have all the required parameters to make this function call."},{"content":"40 C","tool_call_id":"toolu_vrtx_01HKcnQ9ZDwiuVXhno3dysoz","role":"tool"}],"model":"anthropic/claude-sonnet-4","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n{\"id\":\"gen-1773326254-pDlQFWRf6TjfH8A3APlt\",\"object\":\"chat.completion\",\"created\":1773326254,\"model\":\"anthropic/claude-4-sonnet-20250522\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The current weather in Florence, Italy is 40°C (104°F). That's quite hot! Make sure to stay hydrated and seek shade if you're planning to be outdoors.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":547,\"completion_tokens\":43,\"total_tokens\":590,\"cost\":0.002286,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002286,\"upstream_inference_prompt_cost\":0.001641,\"upstream_inference_completions_cost\":0.000645},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.258792459s diff --git a/providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking-streaming.yaml deleted file mode 100644 index 1170fa78df3b433e0a275df785bb47a02fdf670f..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking-streaming.yaml +++ /dev/null @@ -1,87 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 563 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"google/gemini-3-pro-preview","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Assessing User Intent**\n\n\\n\\n\n\nI've begun to break down the user's query about Florence's weather. My focus is on extracting the core intent: the need for current weather data. I am dissecting the question to identify all key entities. Specifically, the location (Florence, Italy), and the desired information (weather). This should facilitate the correct function call.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Assessing User Intent**\n\n\\n\\n\n\nI've begun to break down the user's query about Florence's weather. My focus is on extracting the core intent: the need for current weather data. I am dissecting the question to identify all key entities. Specifically, the location (Florence, Italy), and the desired information (weather). This should facilitate the correct function call.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Pinpointing the Tool's Use**\n\n\\n\\n\n\nI'm solidifying the link between the extracted entities and the available tools. I've confirmed that the 'weather' tool is a direct match for the user's intent. Now, I'm concentrating on the parameters needed by this tool. It looks like the 'location' entity is the most critical parameter for the weather function call.\n\n\n","reasoning_details":[{"type":"reasoning.text","text":"**Pinpointing the Tool's Use**\n\n\\n\\n\n\nI'm solidifying the link between the extracted entities and the available tools. I've confirmed that the 'weather' tool is a direct match for the user's intent. Now, I'm concentrating on the parameters needed by this tool. It looks like the 'location' entity is the most critical parameter for the weather function call.\n\n\n","format":"google-gemini-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"CiUBjz1rX+QNZZDaA519jWkmEHkL1bakA2T4Xvum2KvF9e8Ip0JZCmYBjz1rXzYAg5DeuNR0igEJn1YkVzIDEDsN7c183Vby+BpOaHARLB3bHGv0e70ycuaWFo93c9Yrzt2M8YXDZ3QA6egDq8uyFl5d50PS2EkHhW2MAitddmo+CWEKR0/ArMSGIVtXNjoKWAGPPWtf82UQipGTeH2p9JXfgf77tsHltpd9eIOO+OWaVCCGo9sZmhRZli96b2418FXNchuxiGLM+NL6oVtpoS4TAuqrubnNOjRNW3HMQz++9XeCBrB0bpoKoAEBjz1rX4uy8Ad3E1qhSHtFO3Mcijzc8MrMY6p4uVMi15Yd0goRptdXcc8QwAFZQb1vWaZZu1qjycxo5t+a5zbb+VY4JNRAb60Ytc6/kvE/yHKFXUd9RV1fusEsfndZP8WoxsLky/bSDyCnpSdMh3mSzWZsPJbusTRoP4LuNYte4fgdCqDHVLaqc4eyRb/PSbFb6Re1d1GyAOC0JjEc4qEMCpkBAY89a18ChJiGTSg6PLZcSpJw6mic2L821YrJ5p2D08BpQSF+ntq803BNUTfNTqF9J4Za7GYqYob/3D86CHkAmlRgFWkMal7Boz/z4fonHgxmnCJ4x9TtE2w0YvBCrXSNDb30wg/DPHm8QGvj6kn1DEv0ZoKUeMmj6ZN8qWhhPHiKqQ/XgO2mRl7NLmFAey5HZv9OaNtNa768CkcBjz1rXw34o+sxxk0yPfe/P0+jPpB1ZQqPhIHI/pR4EwVJfUThCyILiIh0tJPqFuKAhaxE4CRwq06SvO2RkWTZFHQamLhSzQoiAY89a18xSodo3zwA3KYOLPuT8LyRSApnEE9lvwmPQ7X8iQ==","format":"google-gemini-v1","id":"tool_weather_wJMhKbJOiIeWsXDA84qT","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"tool_weather_wJMhKbJOiIeWsXDA84qT","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773324252-euYchQc6cJybvZVcHvS8","object":"chat.completion.chunk","created":1773324252,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":28,"completion_tokens":120,"total_tokens":148,"cost":0.001496,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.001496,"upstream_inference_prompt_cost":0.000056,"upstream_inference_completions_cost":0.00144},"completion_tokens_details":{"reasoning_tokens":111,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 6.221147583s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2677 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_wJMhKbJOiIeWsXDA84qT","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"google-gemini-v1","index":0,"text":"**Assessing User Intent**\n\n\\n\\n\n\nI''ve begun to break down the user''s query about Florence''s weather. My focus is on extracting the core intent: the need for current weather data. I am dissecting the question to identify all key entities. Specifically, the location (Florence, Italy), and the desired information (weather). This should facilitate the correct function call.\n\n\n**Pinpointing the Tool''s Use**\n\n\\n\\n\n\nI''m solidifying the link between the extracted entities and the available tools. I''ve confirmed that the ''weather'' tool is a direct match for the user''s intent. Now, I''m concentrating on the parameters needed by this tool. It looks like the ''location'' entity is the most critical parameter for the weather function call.\n\n\n","type":"reasoning.text"},{"data":"CiUBjz1rX+QNZZDaA519jWkmEHkL1bakA2T4Xvum2KvF9e8Ip0JZCmYBjz1rXzYAg5DeuNR0igEJn1YkVzIDEDsN7c183Vby+BpOaHARLB3bHGv0e70ycuaWFo93c9Yrzt2M8YXDZ3QA6egDq8uyFl5d50PS2EkHhW2MAitddmo+CWEKR0/ArMSGIVtXNjoKWAGPPWtf82UQipGTeH2p9JXfgf77tsHltpd9eIOO+OWaVCCGo9sZmhRZli96b2418FXNchuxiGLM+NL6oVtpoS4TAuqrubnNOjRNW3HMQz++9XeCBrB0bpoKoAEBjz1rX4uy8Ad3E1qhSHtFO3Mcijzc8MrMY6p4uVMi15Yd0goRptdXcc8QwAFZQb1vWaZZu1qjycxo5t+a5zbb+VY4JNRAb60Ytc6/kvE/yHKFXUd9RV1fusEsfndZP8WoxsLky/bSDyCnpSdMh3mSzWZsPJbusTRoP4LuNYte4fgdCqDHVLaqc4eyRb/PSbFb6Re1d1GyAOC0JjEc4qEMCpkBAY89a18ChJiGTSg6PLZcSpJw6mic2L821YrJ5p2D08BpQSF+ntq803BNUTfNTqF9J4Za7GYqYob/3D86CHkAmlRgFWkMal7Boz/z4fonHgxmnCJ4x9TtE2w0YvBCrXSNDb30wg/DPHm8QGvj6kn1DEv0ZoKUeMmj6ZN8qWhhPHiKqQ/XgO2mRl7NLmFAey5HZv9OaNtNa768CkcBjz1rXw34o+sxxk0yPfe/P0+jPpB1ZQqPhIHI/pR4EwVJfUThCyILiIh0tJPqFuKAhaxE4CRwq06SvO2RkWTZFHQamLhSzQoiAY89a18xSodo3zwA3KYOLPuT8LyRSApnEE9lvwmPQ7X8iQ==","format":"google-gemini-v1","id":"tool_weather_wJMhKbJOiIeWsXDA84qT","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"tool_weather_wJMhKbJOiIeWsXDA84qT","role":"tool"}],"model":"google/gemini-3-pro-preview","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324260-cfneHKlNa3n1Gl0DPBly","object":"chat.completion.chunk","created":1773324260,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"The weather in Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324260-cfneHKlNa3n1Gl0DPBly","object":"chat.completion.chunk","created":1773324260,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":", Italy, currently feels quite hot at 40°C.","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324260-cfneHKlNa3n1Gl0DPBly","object":"chat.completion.chunk","created":1773324260,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"STOP"}]} - - data: {"id":"gen-1773324260-cfneHKlNa3n1Gl0DPBly","object":"chat.completion.chunk","created":1773324260,"model":"google/gemini-3-pro-preview-20251117","provider":"Google","choices":[],"usage":{"prompt_tokens":56,"completion_tokens":18,"total_tokens":74,"cost":0.000328,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000328,"upstream_inference_prompt_cost":0.000112,"upstream_inference_completions_cost":0.000216},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 4.672774791s diff --git a/providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking.yaml deleted file mode 100644 index 26a9b853e3978851b7d0e599a84340ebeb94a940..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/gemini-3-pro-preview/thinking.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 509 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"google/gemini-3-pro-preview","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324241-tqjIYrNEmA40cPRRnkOm\",\"object\":\"chat.completion\",\"created\":1773324241,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Defining the User's Intent**\\n\\nI've just begun dissecting the user's request. I'm focusing on pinpointing the core need: the user desires current weather conditions, specifically for Florence, Italy. The key is understanding the type of information they seek and the specified location.\\n\\n\\n**Identifying Necessary Data Sources**\\n\\nNow, I'm concentrating on the resources needed. It's clear I'll require an external API or weather service to retrieve the Florence weather data. I'm considering which service would be most reliable and readily accessible. I will need to ensure the response adheres to the user's need, presenting current conditions.\\n\\n\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"tool_weather_Bn0mvxtpCZhM3MQlxpIi\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"**Defining the User's Intent**\\n\\nI've just begun dissecting the user's request. I'm focusing on pinpointing the core need: the user desires current weather conditions, specifically for Florence, Italy. The key is understanding the type of information they seek and the specified location.\\n\\n\\n**Identifying Necessary Data Sources**\\n\\nNow, I'm concentrating on the resources needed. It's clear I'll require an external API or weather service to retrieve the Florence weather data. I'm considering which service would be most reliable and readily accessible. I will need to ensure the response adheres to the user's need, presenting current conditions.\\n\\n\\n\",\"format\":\"google-gemini-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"CmIBjz1rX3+FHcC7Xt5yjwtDTiyVFmnBF0ZuAMrQYB/cbWdXb1BnYOjGOqnDrs6o7qQ4SXzsEsC1xHhreiaFBYcb2BsEjYgTFBOvdJFusPAtu72lR0J2xXkH6y/V2r3q7DC/GQpPAY89a1+2wNqcTWdwaHOIAln4Gq391baKoDXog6q3Kp5H8/bNOUUJ884J8TEcgrZ0MxmG+esM4gL9/3J23HyaEKDuP/5Vu+yLrDOmOuXeYwquAQGPPWtfkIXJnkFNsREe8hiB5gM6hLr2orWnRiOKGwlMMjJO05jXgWQZMTVh4TukZyaVCyJbzgqF+V/RVGx5k6uZcLD1K8r6kqKCYpXmef5ny0Be9XR7I0FxlWbdndPeAbWDPlAkxDCODjcKrD9bV0Mvia29CV/XWJ7mV96VoCQJECFMr7IHjkFely8OyagBDI0DAvGFfhm+S4REnVDK+mAIqkPVJ8MbismopLNWZAqlAQGPPWtfqrmAveUW67ZB0n+DaIRRCpWX4I6PWmo8H97Zk4BBM0wyW95ix4QjCY1GodCSev8PrkHTKTEc5KCZnBa7QZjwLFw97knBrLmMNvCRMEp+wJMNPyy9X3h7BqovTl4dT00gS+prCqSIvFsqAz0e8wmj21pp3pGb8Mc/P6gSfpVo4ie2GjBKaXeNbUpXNjtak39HRVrpdoqqm3JTRX8j/SNk5w==\",\"format\":\"google-gemini-v1\",\"id\":\"tool_weather_Bn0mvxtpCZhM3MQlxpIi\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":28,\"completion_tokens\":103,\"total_tokens\":131,\"cost\":0.001292,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.001292,\"upstream_inference_prompt_cost\":0.000056,\"upstream_inference_completions_cost\":0.001236},\"completion_tokens_details\":{\"reasoning_tokens\":94,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 5.58624325s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1615 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"tool_weather_Bn0mvxtpCZhM3MQlxpIi","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"CmIBjz1rX3+FHcC7Xt5yjwtDTiyVFmnBF0ZuAMrQYB/cbWdXb1BnYOjGOqnDrs6o7qQ4SXzsEsC1xHhreiaFBYcb2BsEjYgTFBOvdJFusPAtu72lR0J2xXkH6y/V2r3q7DC/GQpPAY89a1+2wNqcTWdwaHOIAln4Gq391baKoDXog6q3Kp5H8/bNOUUJ884J8TEcgrZ0MxmG+esM4gL9/3J23HyaEKDuP/5Vu+yLrDOmOuXeYwquAQGPPWtfkIXJnkFNsREe8hiB5gM6hLr2orWnRiOKGwlMMjJO05jXgWQZMTVh4TukZyaVCyJbzgqF+V/RVGx5k6uZcLD1K8r6kqKCYpXmef5ny0Be9XR7I0FxlWbdndPeAbWDPlAkxDCODjcKrD9bV0Mvia29CV/XWJ7mV96VoCQJECFMr7IHjkFely8OyagBDI0DAvGFfhm+S4REnVDK+mAIqkPVJ8MbismopLNWZAqlAQGPPWtfqrmAveUW67ZB0n+DaIRRCpWX4I6PWmo8H97Zk4BBM0wyW95ix4QjCY1GodCSev8PrkHTKTEc5KCZnBa7QZjwLFw97knBrLmMNvCRMEp+wJMNPyy9X3h7BqovTl4dT00gS+prCqSIvFsqAz0e8wmj21pp3pGb8Mc/P6gSfpVo4ie2GjBKaXeNbUpXNjtak39HRVrpdoqqm3JTRX8j/SNk5w==","format":"google-gemini-v1","id":"tool_weather_Bn0mvxtpCZhM3MQlxpIi","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"tool_weather_Bn0mvxtpCZhM3MQlxpIi","role":"tool"}],"model":"google/gemini-3-pro-preview","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324247-CXxmKIMUEgjDsHWB1jUV\",\"object\":\"chat.completion\",\"created\":1773324247,\"model\":\"google/gemini-3-pro-preview-20251117\",\"provider\":\"Google\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"STOP\",\"message\":{\"role\":\"assistant\",\"content\":\"It looks like it is currently 40°C (104°F) in Florence, Italy.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":54,\"completion_tokens\":23,\"total_tokens\":77,\"cost\":0.000384,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.000384,\"upstream_inference_prompt_cost\":0.000108,\"upstream_inference_completions_cost\":0.000276},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 4.894801375s diff --git a/providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking-streaming.yaml deleted file mode 100644 index c473020538fe41164a6d4f89026e3b8a6ac42f2d..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking-streaming.yaml +++ /dev/null @@ -1,347 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 548 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"z-ai/glm-4.6","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asking","reasoning_details":[{"type":"reasoning.text","text":" asking","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.text","text":" in","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.text","text":" have","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" access","reasoning_details":[{"type":"reasoning.text","text":" access","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.text","text":" that","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" can","reasoning_details":[{"type":"reasoning.text","text":" can","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" get","reasoning_details":[{"type":"reasoning.text","text":" get","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" The","reasoning_details":[{"type":"reasoning.text","text":" The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" requires","reasoning_details":[{"type":"reasoning.text","text":" requires","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"location","reasoning_details":[{"type":"reasoning.text","text":"location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.text","text":" parameter","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.text","text":" and","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" has","reasoning_details":[{"type":"reasoning.text","text":" has","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" provided","reasoning_details":[{"type":"reasoning.text","text":" provided","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.text","text":" \"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"Flo","reasoning_details":[{"type":"reasoning.text","text":"Flo","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"rence","reasoning_details":[{"type":"reasoning.text","text":"rence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.text","text":"\"","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" as","reasoning_details":[{"type":"reasoning.text","text":" as","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" they","reasoning_details":[{"type":"reasoning.text","text":" they","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" want","reasoning_details":[{"type":"reasoning.text","text":" want","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.text","text":" use","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" exact","reasoning_details":[{"type":"reasoning.text","text":" exact","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" value","reasoning_details":[{"type":"reasoning.text","text":" value","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.text","text":" location","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parameter","reasoning_details":[{"type":"reasoning.text","text":" parameter","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"I","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"'ll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" for","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_a0979b6107624af58e5b7301","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]} - - data: {"id":"gen-1773324289-yVgLDEWUCYmaq8QFAuyM","object":"chat.completion.chunk","created":1773324289,"model":"z-ai/glm-4.6","provider":"Novita","choices":[],"usage":{"prompt_tokens":173,"completion_tokens":93,"total_tokens":266,"cost":0.00022451,"is_byok":false,"prompt_tokens_details":{"cached_tokens":171,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00022451,"upstream_inference_prompt_cost":0.00001991,"upstream_inference_completions_cost":0.0002046},"completion_tokens_details":{"reasoning_tokens":67,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.196639625s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1277 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"call_a0979b6107624af58e5b7301","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":" user is asking for the weather in Florence, Italy. I have access to a weather function that can get weather information for a location. The function requires a \"location\" parameter, and the user has provided \"Florence, Italy\" as the location they want weather for. I should use this exact value for the location parameter.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_a0979b6107624af58e5b7301","role":"tool"}],"model":"z-ai/glm-4.6","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.text","text":"The","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.text","text":" weather","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.text","text":" function","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.text","text":" returned","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.text","text":" a","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" temperature","reasoning_details":[{"type":"reasoning.text","text":" temperature","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" of","reasoning_details":[{"type":"reasoning.text","text":" of","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.text","text":" ","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.text","text":"40","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"°C","reasoning_details":[{"type":"reasoning.text","text":"°C","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.text","text":" for","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.text","text":" Florence","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.text","text":",","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.text","text":" Italy","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" This","reasoning_details":[{"type":"reasoning.text","text":" This","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.text","text":" is","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" quite","reasoning_details":[{"type":"reasoning.text","text":" quite","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" hot","reasoning_details":[{"type":"reasoning.text","text":" hot","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.text","text":"!","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.text","text":" I","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" should","reasoning_details":[{"type":"reasoning.text","text":" should","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" present","reasoning_details":[{"type":"reasoning.text","text":" present","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" this","reasoning_details":[{"type":"reasoning.text","text":" this","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.text","text":" information","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" clearly","reasoning_details":[{"type":"reasoning.text","text":" clearly","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.text","text":" to","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.text","text":" the","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.text","text":" user","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.text","text":".","format":"unknown","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" which","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" quite","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" hot","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" It","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"'s","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" definitely","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" warm","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" there","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" right","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":" now","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"stop"}]} - - data: {"id":"gen-1773324292-Uc9rw1I8C32qLslHJqNy","object":"chat.completion.chunk","created":1773324292,"model":"z-ai/glm-4.6","provider":"Novita","choices":[],"usage":{"prompt_tokens":271,"completion_tokens":58,"total_tokens":329,"cost":0.00020097,"is_byok":false,"prompt_tokens_details":{"cached_tokens":172,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00020097,"upstream_inference_prompt_cost":0.00007337,"upstream_inference_completions_cost":0.0001276},"completion_tokens_details":{"reasoning_tokens":30,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.443023166s diff --git a/providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking.yaml deleted file mode 100644 index b8dc4e9e71bf70f2e4233c2d64e0f3976da19379..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/glm-4.6/thinking.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 494 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"z-ai/glm-4.6","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324264-zLIoP8fSCwx9eMKIQfaM\",\"object\":\"chat.completion\",\"created\":1773324264,\"model\":\"z-ai/glm-4.6\",\"provider\":\"Novita\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"tool_calls\",\"message\":{\"role\":\"assistant\",\"content\":\"I'll check the weather in Florence, Italy for you.\",\"refusal\":null,\"reasoning\":\"The user is asking for the weather in Florence, Italy. I have a weather function available that takes a location parameter. The user has provided the location as \\\"Florence, Italy\\\". I should use this exact value for the location parameter.\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_23a2f527539f497aba9f1a3f\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The user is asking for the weather in Florence, Italy. I have a weather function available that takes a location parameter. The user has provided the location as \\\"Florence, Italy\\\". I should use this exact value for the location parameter.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":173,\"completion_tokens\":74,\"total_tokens\":247,\"cost\":0.00023947,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":42,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00023947,\"upstream_inference_prompt_cost\":0.00007667,\"upstream_inference_completions_cost\":0.0001628},\"completion_tokens_details\":{\"reasoning_tokens\":48,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.5784375s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1136 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"content":"I''ll check the weather in Florence, Italy for you.","tool_calls":[{"id":"call_23a2f527539f497aba9f1a3f","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user is asking for the weather in Florence, Italy. I have a weather function available that takes a location parameter. The user has provided the location as \"Florence, Italy\". I should use this exact value for the location parameter.","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_23a2f527539f497aba9f1a3f","role":"tool"}],"model":"z-ai/glm-4.6","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324267-Nbo1eOWMmtUgtxF6g62q\",\"object\":\"chat.completion\",\"created\":1773324267,\"model\":\"z-ai/glm-4.6\",\"provider\":\"Together\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"message\":{\"role\":\"assistant\",\"content\":\"The weather in Florence, Italy is currently 40°C (104°F). That's quite hot! Make sure to stay hydrated and seek shade if you're out and about.\",\"refusal\":null,\"reasoning\":\"The weather function returned \\\"40 C\\\" which indicates the temperature is 40 degrees Celsius in Florence, Italy. That's quite hot! I should provide this information to the user in a clear and helpful way.\",\"reasoning_details\":[{\"type\":\"reasoning.text\",\"text\":\"The weather function returned \\\"40 C\\\" which indicates the temperature is 40 degrees Celsius in Florence, Italy. That's quite hot! I should provide this information to the user in a clear and helpful way.\",\"format\":\"unknown\",\"index\":0}]}}],\"usage\":{\"prompt_tokens\":253,\"completion_tokens\":79,\"total_tokens\":332,\"cost\":0.0003256,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.0003256,\"upstream_inference_prompt_cost\":0.0001518,\"upstream_inference_completions_cost\":0.0001738},\"completion_tokens_details\":{\"reasoning_tokens\":51,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 10.151799166s diff --git a/providertests/testdata/TestOpenRouterThinking/gpt-5/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/gpt-5/thinking-streaming.yaml deleted file mode 100644 index a400161df20134188aa199591441d035aa5f40b5..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/gpt-5/thinking-streaming.yaml +++ /dev/null @@ -1,307 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 548 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"openai/gpt-5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**Fetching","reasoning_details":[{"type":"reasoning.summary","summary":"**Fetching","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" info","reasoning_details":[{"type":"reasoning.summary","summary":" info","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"**\n\nI","reasoning_details":[{"type":"reasoning.summary","summary":"**\n\nI","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" see","reasoning_details":[{"type":"reasoning.summary","summary":" see","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" is","reasoning_details":[{"type":"reasoning.summary","summary":" is","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asking","reasoning_details":[{"type":"reasoning.summary","summary":" asking","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about","reasoning_details":[{"type":"reasoning.summary","summary":" about","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"’ll","reasoning_details":[{"type":"reasoning.summary","summary":"’ll","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" specifically","reasoning_details":[{"type":"reasoning.summary","summary":" specifically","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" calling","reasoning_details":[{"type":"reasoning.summary","summary":" calling","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" functions","reasoning_details":[{"type":"reasoning.summary","summary":" functions","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".weather","reasoning_details":[{"type":"reasoning.summary","summary":".weather","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.summary","summary":" with","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.summary","summary":" location","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" specified","reasoning_details":[{"type":"reasoning.summary","summary":" specified","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Since","reasoning_details":[{"type":"reasoning.summary","summary":" Since","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" only","reasoning_details":[{"type":"reasoning.summary","summary":" only","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.summary","summary":" need","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" use","reasoning_details":[{"type":"reasoning.summary","summary":" use","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" one","reasoning_details":[{"type":"reasoning.summary","summary":" one","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" don't","reasoning_details":[{"type":"reasoning.summary","summary":" don't","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.summary","summary":" have","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" worry","reasoning_details":[{"type":"reasoning.summary","summary":" worry","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about","reasoning_details":[{"type":"reasoning.summary","summary":" about","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" parallel","reasoning_details":[{"type":"reasoning.summary","summary":" parallel","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" wrapper","reasoning_details":[{"type":"reasoning.summary","summary":" wrapper","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" need","reasoning_details":[{"type":"reasoning.summary","summary":" need","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" keep","reasoning_details":[{"type":"reasoning.summary","summary":" keep","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" mind","reasoning_details":[{"type":"reasoning.summary","summary":" mind","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.summary","summary":" that","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" function","reasoning_details":[{"type":"reasoning.summary","summary":" function","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" might","reasoning_details":[{"type":"reasoning.summary","summary":" might","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" return","reasoning_details":[{"type":"reasoning.summary","summary":" return","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" mocked","reasoning_details":[{"type":"reasoning.summary","summary":" mocked","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" object","reasoning_details":[{"type":"reasoning.summary","summary":" object","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" but","reasoning_details":[{"type":"reasoning.summary","summary":" but","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"’ll","reasoning_details":[{"type":"reasoning.summary","summary":"’ll","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" proceed","reasoning_details":[{"type":"reasoning.summary","summary":" proceed","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" with","reasoning_details":[{"type":"reasoning.summary","summary":" with","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" call","reasoning_details":[{"type":"reasoning.summary","summary":" call","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" to","reasoning_details":[{"type":"reasoning.summary","summary":" to","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" get","reasoning_details":[{"type":"reasoning.summary","summary":" get","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.summary","summary":" information","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"!","reasoning_details":[{"type":"reasoning.summary","summary":"!","format":"openai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"gAAAAABpssfPPBuXIeT1toiuWv9_i_vBHisxGb9dWM1Por_xBibo5FCvcdZNYlOnt999JwMCbei0yQH2r_PrWzmnBEQpIVAKyLBm7bcvwCcr5-wfXy-XX26WXaQWJP_fwDnFcOmn0d0BfIfVQg56qKWBV5jtny9AYb-FvopEEXRtbLSgy1_PtKWMaqi8pD3zzkEoKucXPEMTkP0n0DtxAxDfvuYteixrJgrZ4qqwdMgKwnVsCrybtHARja7gpkc7qEV3xYbDak2SovVIE4lEXufYmfsDP3muyPhS8fBd5GdtgreE5EFXrzigbSZlHM93swhnb_J4Z4d3-Cr8mxEBemKhQFlXnLRKXaj16bqfE_2hvP6Z93IiGQFpw7lae5rYoldDV7hPO-RIiQKkdn1l5uFZhhFhRRRCHjVtsx0WcSe7ySYMUcSdYSwLO_HdGrWiO6LTSO05MstqmgedeG3UNiVsFJ1eE3G1mVoa-sQtdBSdCILHa5wSRHnwNsBXLjf-_Tqtr84sPynCALl7lEMl6eqd1xkFKXcowgVZlNaCpMFrW2742AyPziU1oShb4t2EiDgCxdZNWAz-vE1YoEry3nKXz4_HDH7m9MLqmAEFHJjMtG5y6z0uUGjKPAN-21Jrg5-waw7aIdDsdK5toNB2-DX19lKAK4ktdQMONTpYa7MEKH0ZQS_6HR04LB5n0sGpvdIpe_FlNT4uwIXvc-r5vRuSnwZjmewgxonFwWp57a6x4xaG0Ymf9QygIAiUtwtdYgI9Y_xbxAxlGoZbvNcst3X8CBwtMaZixA930BiqRHPtkgy_LojAK6bMOH5DoWU7yOTjMGt9vuy0BXbmewQ4IoxvC_mbjpi8s7I0EUZWMwi_WlKsdMgacxfkO4QRZWDm7V_b3denqESZI_7AVRu3BrNYXUOTXL8qGOuKlONCowKHhWjzqPdrwV9BvombARXAGFD3s7PeqYORZ8RGFgCcqpM8GMRblIlG5JRfQI1QjsVQBO8hDJTuLx2L4nAC1O3LTTbdqVCMdz-FKFacwdRo-kAl6K3XgZXAYYQgOe960kFeUGD7FAsQ9HYlUavKx_OdqUUZcseU59y5VwT_cjtTll2csudcV0TvvzD_2Qz7i7ZyMI7dRocgEU1n4XbwhSJyjtWd3fv8CO-tqcPGXNEZ3fTzZjyvUK7_qr9Pp54kUerDFcmx84hbiZF-z6RRZTBNW4B3pnXLkKYKcLJw2gkpB-5PeNV3OoXIaLiudg45_27_1v0IToREjpGTefLYoRbyJ8TDMDWVQZXbW5vEA8EeDLqsZteHz6ihj0o1J7eb8MlDlIqMYLvH5dbcXLBrByFWtznfnRX8TQdkz3jDtNEZ92TneK7GRzhkpAfaj1A88ItBDQysP36mWb3v3Lwa9UZ9B7_KGiO-Bs4OdOtYtzJa9kvVzf55wnnbgQ==","format":"openai-responses-v1","id":"rs_0b3e532ad7ee644a0169b2c7ca703c81949bc437e0c4c64b39","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_PMwetLXlgdc65yX0cHoLY3SM","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"location"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Flor"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ence"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":","}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" Italy"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773324233-7bbCvshdLdDQrXb5TMah","object":"chat.completion.chunk","created":1773324233,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":63,"completion_tokens":116,"total_tokens":179,"cost":0.00123875,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00123875,"upstream_inference_prompt_cost":0.00007875,"upstream_inference_completions_cost":0.00116},"completion_tokens_details":{"reasoning_tokens":64,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 463.578542ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2911 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_PMwetLXlgdc65yX0cHoLY3SM","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"openai-responses-v1","index":0,"summary":"**Fetching weather info**\n\nI see the user is asking about the weather in Florence, Italy. I’ll use the weather tool, specifically calling functions.weather with the location specified. Since I only need to use one tool, I don''t have to worry about the parallel tool wrapper. I need to keep in mind that the function might return a mocked object, but I’ll proceed with the call to get the information for the user!","type":"reasoning.summary"},{"data":"gAAAAABpssfPPBuXIeT1toiuWv9_i_vBHisxGb9dWM1Por_xBibo5FCvcdZNYlOnt999JwMCbei0yQH2r_PrWzmnBEQpIVAKyLBm7bcvwCcr5-wfXy-XX26WXaQWJP_fwDnFcOmn0d0BfIfVQg56qKWBV5jtny9AYb-FvopEEXRtbLSgy1_PtKWMaqi8pD3zzkEoKucXPEMTkP0n0DtxAxDfvuYteixrJgrZ4qqwdMgKwnVsCrybtHARja7gpkc7qEV3xYbDak2SovVIE4lEXufYmfsDP3muyPhS8fBd5GdtgreE5EFXrzigbSZlHM93swhnb_J4Z4d3-Cr8mxEBemKhQFlXnLRKXaj16bqfE_2hvP6Z93IiGQFpw7lae5rYoldDV7hPO-RIiQKkdn1l5uFZhhFhRRRCHjVtsx0WcSe7ySYMUcSdYSwLO_HdGrWiO6LTSO05MstqmgedeG3UNiVsFJ1eE3G1mVoa-sQtdBSdCILHa5wSRHnwNsBXLjf-_Tqtr84sPynCALl7lEMl6eqd1xkFKXcowgVZlNaCpMFrW2742AyPziU1oShb4t2EiDgCxdZNWAz-vE1YoEry3nKXz4_HDH7m9MLqmAEFHJjMtG5y6z0uUGjKPAN-21Jrg5-waw7aIdDsdK5toNB2-DX19lKAK4ktdQMONTpYa7MEKH0ZQS_6HR04LB5n0sGpvdIpe_FlNT4uwIXvc-r5vRuSnwZjmewgxonFwWp57a6x4xaG0Ymf9QygIAiUtwtdYgI9Y_xbxAxlGoZbvNcst3X8CBwtMaZixA930BiqRHPtkgy_LojAK6bMOH5DoWU7yOTjMGt9vuy0BXbmewQ4IoxvC_mbjpi8s7I0EUZWMwi_WlKsdMgacxfkO4QRZWDm7V_b3denqESZI_7AVRu3BrNYXUOTXL8qGOuKlONCowKHhWjzqPdrwV9BvombARXAGFD3s7PeqYORZ8RGFgCcqpM8GMRblIlG5JRfQI1QjsVQBO8hDJTuLx2L4nAC1O3LTTbdqVCMdz-FKFacwdRo-kAl6K3XgZXAYYQgOe960kFeUGD7FAsQ9HYlUavKx_OdqUUZcseU59y5VwT_cjtTll2csudcV0TvvzD_2Qz7i7ZyMI7dRocgEU1n4XbwhSJyjtWd3fv8CO-tqcPGXNEZ3fTzZjyvUK7_qr9Pp54kUerDFcmx84hbiZF-z6RRZTBNW4B3pnXLkKYKcLJw2gkpB-5PeNV3OoXIaLiudg45_27_1v0IToREjpGTefLYoRbyJ8TDMDWVQZXbW5vEA8EeDLqsZteHz6ihj0o1J7eb8MlDlIqMYLvH5dbcXLBrByFWtznfnRX8TQdkz3jDtNEZ92TneK7GRzhkpAfaj1A88ItBDQysP36mWb3v3Lwa9UZ9B7_KGiO-Bs4OdOtYtzJa9kvVzf55wnnbgQ==","format":"openai-responses-v1","id":"rs_0b3e532ad7ee644a0169b2c7ca703c81949bc437e0c4c64b39","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"call_PMwetLXlgdc65yX0cHoLY3SM","role":"tool"}],"model":"openai/gpt-5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"It","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"’s","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" about","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" Stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" hydrated","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" avoid","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" strenuous","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" activity","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" during","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" peak","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" afternoon","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":" heat","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773324239-e0BJ1jt1aVz5MikrC47p","object":"chat.completion.chunk","created":1773324239,"model":"openai/gpt-5-2025-08-07","provider":"OpenAI","choices":[],"usage":{"prompt_tokens":188,"completion_tokens":27,"total_tokens":215,"cost":0.000505,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000505,"upstream_inference_prompt_cost":0.000235,"upstream_inference_completions_cost":0.00027},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 501.2125ms diff --git a/providertests/testdata/TestOpenRouterThinking/gpt-5/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/gpt-5/thinking.yaml deleted file mode 100644 index a5798b1a88222da71c29317ff8bd13b04e4fb086..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/gpt-5/thinking.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 494 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"openai/gpt-5","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"}],"usage":{"include":true},"reasoning":{"effort":"medium"}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324215-D7lh5CAt7ZjqsjO9zT2D\",\"object\":\"chat.completion\",\"created\":1773324215,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"**Checking Florence's weather**\\n\\nI need to find out the weather in Florence, Italy. I have a tool called \\\"functions.weather\\\" to help with that. Since we only need one tool, I won't use the multi_tool_use.parallel wrapper. I'll call functions.weather with the location specified as \\\"Florence, Italy.\\\" The tool should return the weather data, so I need to access it through the commentary channel. Alright, let's get that information!\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_vYXwqorxYJ1SpkxBfbomGrs4\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Checking Florence's weather**\\n\\nI need to find out the weather in Florence, Italy. I have a tool called \\\"functions.weather\\\" to help with that. Since we only need one tool, I won't use the multi_tool_use.parallel wrapper. I'll call functions.weather with the location specified as \\\"Florence, Italy.\\\" The tool should return the weather data, so I need to access it through the commentary channel. Alright, let's get that information!\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpsse-I3DUazhapsT1MmHUYmjPW-feTxEb00nSJjtoH6gV_VS280fGY9VT2yKknwM0Aa2ypjI7rDew9B-o9fhwfpv2LHVD1l0pCh0Nqny-HFbOXLxMlaPXw48ysjMFkVDLXaQvCeMDt02gflkSwIubMS2PVTY3KtZ-YAlIKX133lav5jemWVmD006JPf4CV9931bdvsBIcpub27Zc79CYvbW81DweY0dNn6Zy0PqJRgOXN4RLSFgGOrTCiOuYUVzfPA49Q0SFILvkoJ8-1ZtTn0I3Spe_pMtED_VItwTdlSnVF28EgCMZafLs_EiROECRI76moLdURNk3cc5XM6Fk22OI3LHy5G9zO-VGcfVZiXDfRpJvUdYlGINdxzd3Yo0qhMY6r48luUM_WC8NY5qdV5MSuaZ5QkMHPQYj10Tdm4PTA85CHUeI4vVSkF_gMPI98ABGoq-YFlGN1KMzfHGpW-o_wn6GdXhmUUYOAUMcYHlgCh7vaQRbfShnm8YYOkPWkqON8NOOoC-JI7n_FgnK4Kz4F56bECUzS3nal1QoERK96ByoOR9mqVW21hauzeZhIUrpykI1hTaZiquWP0nacuDmW9n8CNboNQvrzCqclcKygMHL1St_kGGKMlnp72i6YBw-LFzYLNPwYT6Cr-Ru7wVSdL-UYN-hyqoPiRAqGzla4sLrWvn7bFv5g_GjgkAleHZzdwbLt9_1ICyOYMJVFTrfXJqjXU1XMnAhLU0Qn2nYRKy47M-R7HQoW51lmt4-_IdY_HQ7VISDpfWzCAYyyn-MuRoGhbJ2C8rSc1O07NXwYddFlTqwO8DKyMutCk7hkoMEUeSmnbIszN3oZfwxK-x9DKH7YX_0a_dBbe_WqlA9yJGLD19u78AGYoZ_NMSiGIp3O2Ihtc_FtVQkKuLU70aAP2OhuFtx3uLnBqEzw1ipzCwwyObD-Z3Ts1POtSveNfdNaLtzTLlgvO6DzoXqjIKdacwhDXpbmfDIFIufhwA5qRj7eMLg3VDx5QNW23aXe7_1YMcu_sVZOA2BZzvSkp2wfpKf7UzeBx8TWSav5PwO6HYEPsV61kxuUT6XJLpagFN6sRXYdtCVtu-Q3oBm4mWNv4-c1VsctE_AK21RLjtxZV70AXDbK-iS6-hr-1dgSKUYATofXRr4bbeKvev5CTirDgA4g593QzP0q0cGZbqClPzfRRF-cl82u4MAP7jWyeKaJ4B9NtIhYPSZxkhH0kUhak3iM6c-39LWApJu_Cj_NOvzBHSSgZj15tlX5WOR66gzOQgGWH4ODiBqr43miy6pyvm4nhKxJd1N7xtnT4kEXVEjdMz8RsP-fgyIcXC4wM8j7XojsChYI53pkUUzG8NbbdNw1yk0z41hY9dzaV8yyFaXhR8KjDsuY7MCzSDOX8KDdcUwQKU48jPAb6etYgKV9XBTgiIadnvdqLGDcA2Y_cTvE-c5-1uuX5tadJO0BB0-2cbqZxmHoaOLBVXlujTkzh5H1f98nhLf0XmDK5Qaps_OcpzOcGCkDfPjSwZ3_LrlnI2G3Mi6m9el54mKujXcSC-oVk0V2KB7H9U60xX1JiXFxDhw3xR6B0W_okMFkI-pbsTkLKOZVU_F6oFxpl9Q5cQCUebRYziAfj27FN_tpT_I=\",\"format\":\"openai-responses-v1\",\"id\":\"rs_0caf9667a75d08220169b2c7b86c9881969d898ea9b7780716\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":63,\"completion_tokens\":148,\"total_tokens\":211,\"cost\":0.00155875,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00155875,\"upstream_inference_prompt_cost\":0.00007875,\"upstream_inference_completions_cost\":0.00148},\"completion_tokens_details\":{\"reasoning_tokens\":64,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 555.081ms -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 2567 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_vYXwqorxYJ1SpkxBfbomGrs4","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"data":"gAAAAABpsse-I3DUazhapsT1MmHUYmjPW-feTxEb00nSJjtoH6gV_VS280fGY9VT2yKknwM0Aa2ypjI7rDew9B-o9fhwfpv2LHVD1l0pCh0Nqny-HFbOXLxMlaPXw48ysjMFkVDLXaQvCeMDt02gflkSwIubMS2PVTY3KtZ-YAlIKX133lav5jemWVmD006JPf4CV9931bdvsBIcpub27Zc79CYvbW81DweY0dNn6Zy0PqJRgOXN4RLSFgGOrTCiOuYUVzfPA49Q0SFILvkoJ8-1ZtTn0I3Spe_pMtED_VItwTdlSnVF28EgCMZafLs_EiROECRI76moLdURNk3cc5XM6Fk22OI3LHy5G9zO-VGcfVZiXDfRpJvUdYlGINdxzd3Yo0qhMY6r48luUM_WC8NY5qdV5MSuaZ5QkMHPQYj10Tdm4PTA85CHUeI4vVSkF_gMPI98ABGoq-YFlGN1KMzfHGpW-o_wn6GdXhmUUYOAUMcYHlgCh7vaQRbfShnm8YYOkPWkqON8NOOoC-JI7n_FgnK4Kz4F56bECUzS3nal1QoERK96ByoOR9mqVW21hauzeZhIUrpykI1hTaZiquWP0nacuDmW9n8CNboNQvrzCqclcKygMHL1St_kGGKMlnp72i6YBw-LFzYLNPwYT6Cr-Ru7wVSdL-UYN-hyqoPiRAqGzla4sLrWvn7bFv5g_GjgkAleHZzdwbLt9_1ICyOYMJVFTrfXJqjXU1XMnAhLU0Qn2nYRKy47M-R7HQoW51lmt4-_IdY_HQ7VISDpfWzCAYyyn-MuRoGhbJ2C8rSc1O07NXwYddFlTqwO8DKyMutCk7hkoMEUeSmnbIszN3oZfwxK-x9DKH7YX_0a_dBbe_WqlA9yJGLD19u78AGYoZ_NMSiGIp3O2Ihtc_FtVQkKuLU70aAP2OhuFtx3uLnBqEzw1ipzCwwyObD-Z3Ts1POtSveNfdNaLtzTLlgvO6DzoXqjIKdacwhDXpbmfDIFIufhwA5qRj7eMLg3VDx5QNW23aXe7_1YMcu_sVZOA2BZzvSkp2wfpKf7UzeBx8TWSav5PwO6HYEPsV61kxuUT6XJLpagFN6sRXYdtCVtu-Q3oBm4mWNv4-c1VsctE_AK21RLjtxZV70AXDbK-iS6-hr-1dgSKUYATofXRr4bbeKvev5CTirDgA4g593QzP0q0cGZbqClPzfRRF-cl82u4MAP7jWyeKaJ4B9NtIhYPSZxkhH0kUhak3iM6c-39LWApJu_Cj_NOvzBHSSgZj15tlX5WOR66gzOQgGWH4ODiBqr43miy6pyvm4nhKxJd1N7xtnT4kEXVEjdMz8RsP-fgyIcXC4wM8j7XojsChYI53pkUUzG8NbbdNw1yk0z41hY9dzaV8yyFaXhR8KjDsuY7MCzSDOX8KDdcUwQKU48jPAb6etYgKV9XBTgiIadnvdqLGDcA2Y_cTvE-c5-1uuX5tadJO0BB0-2cbqZxmHoaOLBVXlujTkzh5H1f98nhLf0XmDK5Qaps_OcpzOcGCkDfPjSwZ3_LrlnI2G3Mi6m9el54mKujXcSC-oVk0V2KB7H9U60xX1JiXFxDhw3xR6B0W_okMFkI-pbsTkLKOZVU_F6oFxpl9Q5cQCUebRYziAfj27FN_tpT_I=","format":"openai-responses-v1","id":"rs_0caf9667a75d08220169b2c7b86c9881969d898ea9b7780716","index":0,"type":"reasoning.encrypted"}]},{"content":"40 C","tool_call_id":"call_vYXwqorxYJ1SpkxBfbomGrs4","role":"tool"}],"model":"openai/gpt-5","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324223-JDEFwUnlS1HuYBH5OHWH\",\"object\":\"chat.completion\",\"created\":1773324223,\"model\":\"openai/gpt-5-2025-08-07\",\"provider\":\"OpenAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"It’s currently about 40°C (104°F) in Florence, Italy.\",\"refusal\":null,\"reasoning\":\"**Presenting weather data**\\n\\nThe tool returned \\\"40 C,\\\" which is a bit strange since it only gives temperature. The user asked for the weather in Florence, Italy, so we should report that.\\n\\nI'll state: \\\"The current temperature in Florence is 40°C.\\\" It’s also helpful to convert that to Fahrenheit, which comes out to about 104°F. I’ll keep the response concise and straightforward, adding that if the user wants more details, they can ask for those follow-ups!\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"**Presenting weather data**\\n\\nThe tool returned \\\"40 C,\\\" which is a bit strange since it only gives temperature. The user asked for the weather in Florence, Italy, so we should report that.\\n\\nI'll state: \\\"The current temperature in Florence is 40°C.\\\" It’s also helpful to convert that to Fahrenheit, which comes out to about 104°F. I’ll keep the response concise and straightforward, adding that if the user wants more details, they can ask for those follow-ups!\",\"format\":\"openai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"gAAAAABpssfJ2sB0Lk_aBGulzBjUnqJmhQxwIkby7uQi0SH3JqBDPO8YpTn2NQeEeMGZxW9lnrBnuCUeNdrJsUyWA4hZ7yOmwG0kC_iz16d5SXzifVKAyNA7a3P-ohxGmJ0jN8F5RBWZXY-_BYN-zUYkzpTsDjQHR4vlg18Ve0-wAHA_6hWUFZerZPzYK6z3eIu6WngGTzzVxzlxFb4OOAc2c75tQBwCX9ppGW5hWGA5uNVX8TyC_WCiHxURvhKgGPi8YzTtEtHh3dr8SM8xuarF-ev6X9sEsRhzoaT_-N4d2w21WnbHkuHyXwsri1UtCEM0OQk7_RpmVG_WEzqCG_XCgIa0MqzKK0xOVkLWN1OACtdGE0ObVL1tsAEbwN46DII1R-G3j80_vkeg3Yz91vSqPpxaRPJljZzNs8sDwXc_Pa-ouPtHooUB6fbBcZ76wC2FBNND8k0YLwhPK_N7vFjbtng9P6HuML4hM39QNXSxIRyjt2vrwN9NBz0hgCpwLngf1cRxx8F83a4AxdFqB3NeoYn-XsFWq0nVGMOtlNeQ8aqfre1B9thoc9UctFk-YhVKGOWJIshWZvcp1NEcaMteZVA7FWXx42nUNBMChTyLIrGBk75BcLhLW0XTFWsbK5bjCImQ1emnEI18kaJVTCQzIbIkMQECKugkenT5wwd30RHCavQPB4wBcw-GtjGAydEXWbYY4IT6EzY3ge31SaOzSRnoqjgSJQn5lFO44w-gqhVsLECmpvXbarkthwTTBB6DnL4Tg0eA0096NNDGgjr-HN5AMiPehhhaVF22oU63hZ5HVV70Ux-YFsJ8-XXsFFuJWyt7UqOXu_bKcoYXImXh22yhkFdOlJ9ODXqL3CB_5v51wuNUv7jnGKWZ8pDeBOTKyjK6ASyaxm6f2JJ-GplhlVRponypzz5NV_uBRtBNLobJC-2OdS2ZQ6zWFqXuk5WGWxSuOSIZ2PxOFO7RjJlxX6IjUWGZLX5njcSkLgk7koTyA-q0iEijY3sy9_FOnnrr-mfBwvWrpE52dJQpObcyrRw903lKU3Hpf2h_fxU8nSwR75aOEHGn9-Co_1ywWn9qV0HLzvF9jQxfcEhFNKByHIwxM0yrRa_WJ5-AGd9eMQQGgkk7njf8oQNSftth0KutvfKZPpWpvBFtrB9Nh1bXV-I3zjKgEGOYh3LE4HVNckxioBD4KXfAUJDRz3wSJhcaRtXfuIWpF6Oty1-pSALWdQ4RyyBf-HB1WBfgif1GrHxOWjwereNX3PjpruRAiR-cxX867TdzgC4YkAJ2z0Zv-aLFo5LgyIw_EWTIp3C3vCJHHtszdmSYXm79dBZZQSREnIO4ntgSxPSEW0ltWDOtpXdMl7BXS8fg6k3MiPmtB0yoc_RwO5P4cghhXojNtRyv3tae_2QPhm8FZJ6T4WjRqo5RKLm7YBZ4gOatAcOVxSnJW5rAvVR_G99J-XRaVmCGl6fX--8x3t03AxNTGEac8FeJsQInv0jVvzgW7pWCtsXthvX3flUScK8wFrb4xmLpBfoee0uDD7Q-QgUnZ8xFtGzAb91fSXdOp6zCkU8b45IDR7QOD5DjFwROwF1olDDO0Gr1EV1aFo_XOWe65I79zliGibdbVripwAogNhC1JSyDayLLXPcGTknpYggbHeXtvxqyVX5_fzsodMSov8qJYR8V5W5uOAujh5T83Tw113HcqgRMDb1vMmTEe3AtPkc37Ph-pI6vh61HBsdMSDFXtggGbN3kTSbHB_kcCLL7VYaHkwRUAPNhNYWTr14iEsHsgqkvUpyq--wQ0aLQGzr6qcICnhrxZlDpdmqyeCsT_zlI2eYoEhLaOPV8ZT0j8ov4OLsggOkJHQ9H-ByCYqyAmUrPeJ0QxF5mztpfcWC4UGIddWUYgyGfeRJHSduboX4IALiFGha5UZVgMZGQwuSfv_057CpYM42jfG2Q9G6TfZ3OiJ9fG_yFqruE0-I0LYgmOSyZDUaBSdIUIhfZDRtKOijlhKOZ98PjShifBHUbRp4s5Zi_a7KJZOoCuedeGl5CG9FE6hC2\",\"format\":\"openai-responses-v1\",\"id\":\"rs_0caf9667a75d08220169b2c7bfb03c8196bc6bad11c56fb974\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":220,\"completion_tokens\":231,\"total_tokens\":451,\"cost\":0.002585,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.002585,\"upstream_inference_prompt_cost\":0.000275,\"upstream_inference_completions_cost\":0.00231},\"completion_tokens_details\":{\"reasoning_tokens\":192,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 416.259041ms diff --git a/providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking-streaming.yaml b/providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking-streaming.yaml deleted file mode 100644 index 9498ab4536cd8b9d87fdc9c42c4113ea1932008c..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking-streaming.yaml +++ /dev/null @@ -1,287 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 557 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"x-ai/grok-code-fast-1","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"The","reasoning_details":[{"type":"reasoning.summary","summary":"The","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about","reasoning_details":[{"type":"reasoning.summary","summary":" about","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" have","reasoning_details":[{"type":"reasoning.summary","summary":" have","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" called","reasoning_details":[{"type":"reasoning.summary","summary":" called","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"weather","reasoning_details":[{"type":"reasoning.summary","summary":"weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\"","reasoning_details":[{"type":"reasoning.summary","summary":"\"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" that","reasoning_details":[{"type":"reasoning.summary","summary":" that","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" can","reasoning_details":[{"type":"reasoning.summary","summary":" can","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" get","reasoning_details":[{"type":"reasoning.summary","summary":" get","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" information","reasoning_details":[{"type":"reasoning.summary","summary":" information","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" for","reasoning_details":[{"type":"reasoning.summary","summary":" for","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" a","reasoning_details":[{"type":"reasoning.summary","summary":" a","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" location","reasoning_details":[{"type":"reasoning.summary","summary":" location","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.summary","summary":".\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"JN5ZxXFPqRd1TvB7IyRpv0ykVIA/YBcBngANiKMzjAyW1p/fa7zrGz0v5RwIbks6b0yBPaweN+kthv2N64vsrnSe5tmbFJMPhchPTRA/CqU0MK+aETiS+PDZhPy4ourYkSi7dTa8thUTOmjbym0C2da0FOGRjuqftyT+bkq9t03vKBJJr/skYXY7LEStoD+nZ0kSbRi1PddbVBIYHtmZ6zmXCdcfVsN9PU2U3g1JDobc21hrgMy5xCL+ZNDKFLQzHyUUd+MFTKIt8haCY1dd3VB3rwGU4juFn++9YQddZA9+8JtERXQNiXdXrDg5a44LajNgnJC4aAdccw88Gt0XQBvuVAVQxvr0YUP3z834ZMomxSjnYQn8+tvxJtVZOTGOVtbM3LUAG+VELpSVG+Yf1TlYijnG5gF3sq0y69ffFDabYNtzm3EvyX2cr8O+owNI53oQG2LdpYUjrw/Cja4nAmD2KUphHBWlaCRCKoGHtckIfCedFQRH2FxCzJF1HG3vAdHJ6YtqU1UKHU5cL1pffbduzu3rtAXSLIQWwehbgSE","format":"xai-responses-v1","id":"rs_3103b38f-8e06-f4e5-316b-8f60d1b0fbd7","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"call_93874608","type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\"location\":\"Florence, Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"tool_calls","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773324199-u7H8ZzKQTajh6yfKrLBe","object":"chat.completion.chunk","created":1773324199,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":395,"completion_tokens":113,"total_tokens":508,"cost":0.00021394,"is_byok":false,"prompt_tokens_details":{"cached_tokens":192,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00021394,"upstream_inference_prompt_cost":0.00004444,"upstream_inference_completions_cost":0.0001695},"completion_tokens_details":{"reasoning_tokens":87,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 1.735396416s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1000 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_93874608","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"text":"The user asked about the weather in Florence, Italy. I have a tool called \"weather\" that can get weather information for a location.\n","type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_93874608","role":"tool"}],"model":"x-ai/grok-code-fast-1","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true},"stream":true}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - body: |+ - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"First","reasoning_details":[{"type":"reasoning.summary","summary":"First","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" user","reasoning_details":[{"type":"reasoning.summary","summary":" user","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" asked","reasoning_details":[{"type":"reasoning.summary","summary":" asked","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" about","reasoning_details":[{"type":"reasoning.summary","summary":" about","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" in","reasoning_details":[{"type":"reasoning.summary","summary":" in","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Florence","reasoning_details":[{"type":"reasoning.summary","summary":" Florence","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Italy","reasoning_details":[{"type":"reasoning.summary","summary":" Italy","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".","reasoning_details":[{"type":"reasoning.summary","summary":".","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" used","reasoning_details":[{"type":"reasoning.summary","summary":" used","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" the","reasoning_details":[{"type":"reasoning.summary","summary":" the","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" weather","reasoning_details":[{"type":"reasoning.summary","summary":" weather","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" tool","reasoning_details":[{"type":"reasoning.summary","summary":" tool","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":",","reasoning_details":[{"type":"reasoning.summary","summary":",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" and","reasoning_details":[{"type":"reasoning.summary","summary":" and","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" it","reasoning_details":[{"type":"reasoning.summary","summary":" it","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" returned","reasoning_details":[{"type":"reasoning.summary","summary":" returned","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" \"","reasoning_details":[{"type":"reasoning.summary","summary":" \"","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.summary","summary":"40","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" C","reasoning_details":[{"type":"reasoning.summary","summary":" C","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"\",","reasoning_details":[{"type":"reasoning.summary","summary":"\",","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" which","reasoning_details":[{"type":"reasoning.summary","summary":" which","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" I","reasoning_details":[{"type":"reasoning.summary","summary":" I","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" assume","reasoning_details":[{"type":"reasoning.summary","summary":" assume","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" means","reasoning_details":[{"type":"reasoning.summary","summary":" means","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" ","reasoning_details":[{"type":"reasoning.summary","summary":" ","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":"40","reasoning_details":[{"type":"reasoning.summary","summary":"40","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" degrees","reasoning_details":[{"type":"reasoning.summary","summary":" degrees","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":" Celsius","reasoning_details":[{"type":"reasoning.summary","summary":" Celsius","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":".\n","reasoning_details":[{"type":"reasoning.summary","summary":".\n","format":"xai-responses-v1","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null,"reasoning_details":[{"type":"reasoning.encrypted","data":"hPSLft4MI+wm9EOj9LRYNU06eOzvlkJFUxLwamZDCcVwucChIoZUZUVnOym3RzPh6HHEP/HvlkofgnvNAWnYlHcLQaBzIHTRwEdk+XWWA8xKMIb1es5CpBtclzDZRDckEjMeWAmFyyMSxqXtlnZzE6tgm8FOkhNxNiVfyoNiA6g60GpYsx/vI/rjnrBL6GaaeOQo6hH/U6D1MAHsUfYROLu99NCAS9WUfUFnUKzgcyfrlX3RQAyPu/b16ImumIjhwPgrH9Mq0aCZK2kGuBX34jWAhn+4OYYyWK2+ep6UFPTQvImbSnKlzPZYFrbqkYBgDCxN/r9XUdiFLQgxOk8EmplFSWfWm9cmtMButfrdRRm9co/uaPcQkjMkL1hnR89q1Yj0saB5PzitU7S71rYleBqpatF27ySia7GucZ6MW/EapZZ1GLr7VE+Y9baGDT6EAD0fk1nKwyTqzEiF5AEpWEP5uUeFA24nGZxc6sd3l/zYBSqLenbfJX9JGjJNxMCiRTytkuvoaaO12zQOQqSStQSSGeHXfRo+FowcM1mLOTjZ66aG5+XiT9KQN2WHMqp7Z06sPmwSp77kJsM4XRYAPobMbmZkn+nXOWdpG12+7/brIxSQqKy7RLxNADNgq7vEiQswTg2Q9n9VYy6ITITfJMAIWrFVsYm/ehZLbSQs7V3HbXUWDM1XDcPb627v+tiFF5RIoQ5X7YZz3uW0m/oSSdVD1JMFC8uDwzmnDcDi1YoUI3PfTz8eircO0vjfARWEbP8jSdLlZBE2NM68NLcXbDgbC6MtVKgK0KWzWfESeq9/hMpeVZh64Ktj519DpLprLL0kynKJU20/0gcR9oFVTjhbZdM64aExjnTLSDwC/PrudKdIzSRMW/OnMzLZJMh/mc6BZ8JF/2q3Dj52i7IXo/SNQOt/u/GWL9gCuHogFcxlHP1reZbjRu9pYs5qFu7LGldo/eLF0iA+QmsJYnwgvX2l+ayfCXu1LWvr6auK0RDkVMOUy3/fUtjoh4a/jFVNQxkxHselYugM6jzQJVmdZzvLRhQVIkz276C4bcRzL/BqCI049kt/En76aDtAireLgdxt3/IR972AX9DwLGk+WSJUw2dvASkPHZUvXfEBXUs5tSvbyRm/3cnCcpSL7KNyG9XBsQ9y6U+ZcWVElqi7VGYrJOV24nj7BiBqxiEkTssd3d9v/C0lAYzgml+GqtCqtwSrnBJp+A2dKzRbfEC9BDEw0e7UoXDSjXag8tDSQ9T0txQmCSE9IgL4FT5PFG6E0hLjrPd/Mg6efYBH597ILPd7ipWdcavgkAhMX/0K0gQFmPp6ninD1xZTDU9xviN1by+2fbGf+MXmUIHcTV5FyAWUD/PesxeySd06WBLnTGnQxAUpeAQkDUhBcX1m47tI0C6G9vmeQ1MFbbSljy/XMjQVshXY0YJTWSuZPNm6Gp5QNS9gDxwtNLOIGOJRWLxzuaAIibW24WjVbgQ+eXn5Y96mb+nRJVnySqQTDAjzX4BpfIG2W6RAL9OCtqpllhvI/y2T+G61eGXxnuZLeN2oDF8gEC/MVRieAKjbWXXeRxBADcOBIh3rGZJ+NTW8ZZ2EvNsBXT6bGRy1DL0FgHBSZmvzWShNq39nT7zq8JgfcVb8i5MDWzCRrv8lXy6AJkAP4pU0LAndTPlLMNobjHq2v7bgtvovnkj1ALsqWUeSc9ndsZejd1D/IM+JNJ4YBH5ApjuyLARwBxKjVxF6W2xz9OGEbs54dST38VsNMxryYS0+cPADrkwSrlfJRZXpOfo7nI95Sqpi8cdS6eNz2jLu4OKtZKZx6SDk98uafNUXeMy78y31D3sA7mKksn73lPteVz13OzmMh+4s8Qa4vleGzrsOPwjOjM38jCIF2HjriKoIGKqd3cRaVfXqb6SLOxWkPfzBddRP+sd9odC8fTO6woVqeo+BJz1Lk4CRScHCycY","format":"xai-responses-v1","id":"rs_9ac4f520-46de-dbfa-9dfa-861791f2b5ce","index":0}]},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"The","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" weather","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" Florence","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" Italy","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" is","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" currently","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" around","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" ","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"40","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"°C","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" (","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"104","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"°F","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":").","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" Make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" sure","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" stay","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" hydrated","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" if","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" you're","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" there","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" If","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" need","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" more","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" details","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" like","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" humidity","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" or","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" forecasts","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":",","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" let","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" me","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":" know","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[{"index":0,"delta":{"content":"","role":"assistant","reasoning":null},"finish_reason":"stop","native_finish_reason":"completed"}]} - - data: {"id":"gen-1773324201-C2KUxR3O4WjjkF94mnD8","object":"chat.completion.chunk","created":1773324201,"model":"x-ai/grok-code-fast-1","provider":"xAI","choices":[],"usage":{"prompt_tokens":433,"completion_tokens":350,"total_tokens":783,"cost":0.00054248,"is_byok":false,"prompt_tokens_details":{"cached_tokens":384,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00054248,"upstream_inference_prompt_cost":0.00001748,"upstream_inference_completions_cost":0.000525},"completion_tokens_details":{"reasoning_tokens":311,"image_tokens":0,"audio_tokens":0}}} - - data: [DONE] - - headers: - Content-Type: - - text/event-stream - status: 200 OK - code: 200 - duration: 2.094028333s diff --git a/providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking.yaml b/providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking.yaml deleted file mode 100644 index 9a9b2e55033f8c3219caceedfde7d6c954e02beb..0000000000000000000000000000000000000000 --- a/providertests/testdata/TestOpenRouterThinking/grok-code-fast-1/thinking.yaml +++ /dev/null @@ -1,63 +0,0 @@ ---- -version: 2 -interactions: -- id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 503 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"}],"model":"x-ai/grok-code-fast-1","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"}],"reasoning":{"effort":"medium"},"usage":{"include":true}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324191-SpiL1utrerwh5rpnlk8y\",\"object\":\"chat.completion\",\"created\":1773324191,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"tool_calls\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":null,\"refusal\":null,\"reasoning\":\"The user asked: \\\"What's the weather in Florence, Italy?\\\"\\n\",\"tool_calls\":[{\"type\":\"function\",\"index\":0,\"id\":\"call_84645216\",\"function\":{\"name\":\"weather\",\"arguments\":\"{\\\"location\\\":\\\"Florence, Italy\\\"}\"}}],\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"The user asked: \\\"What's the weather in Florence, Italy?\\\"\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"4mPGeaXJQZqEG30dcn2yfv9/Nj7vlj7eJoFiSDliZMh4ViiiIITa5mPjoXSytidiEUzMz6t8g6vU9gMcbpVYDGcpUREfDDjjcU/jhCwviu7763ix8drmNSZQ9lRLirYd9hKBxrM6siw1S/h5DAkPGzFbloPngNkE23R3lLOAxgHJO9DcLFOjoA3RJN5SG2JVOsqtXwWylO0UP5I6ZQXHIaAmwjIWI/6wRARQ3YEzO42kbnddvXjToIl879jbPwKX2c5IhmBQ8w2H4F6gNSkfUyrFk+cikgA2+5SY5ySmnaJmmG1m1/cJlfy103mnfTrP/TWfKNAWDC9LO+x6G/CDrMwzSQGOBIY2sffb93yPfXKUaiw9v7PVgO04mCO3xlaJofnRkERzdss7dNcNkFVG+N/nL+hONq4TeB/A6FEJDJKSEZKfykEI/ZtVLohIwCROrtWsNp7fwxeo0E/1lSTvS+3FeAA/NnY021d6OuQtoxaFgRgmXa41VXT/hKRReWwcvzfkeM12unVoubvkZ/A1sBGt/XdUymVwbPs6WqoXUlUxfk6LzC3pnb2KFiq9hHFpgeJbbQ1bIbu6KgJHv0C6NqJWuDv+H/R6z+574vZ+1KbJ3xnWfIh2mTy3yMLhcY8yDQlH7DTAz40B1UohaF2GRrZCQIPHOgZ7ngx4gJdCSGUcmtGpvdesvsLfTN3CXzH9cAnQ9dDlDFAMxCK2g7Ueu6Ek1vJUYa1Ad8UZjTuDB9jjI1rVoLQM5wjIIszG6Uv+//DdXki89rrDPt2rU42XsyTd3wdOIKRctBy0KiISDcbVLUaRZyVsvYVsOdy1s+WcfHi9BnyR4R/I6fl2f8K2C+dLW564ihszpaIsh4GFuJ03xsdmh7X+6m4CMjz0KBzQhCP+dTvKsH461OZhdzhlY5Oc9DxgnONAQsNl5ylUPXJc6e17Quz2PBOAWaOszSCBfJ8uI35HYq2aJTQ3+VNbhuItFIKzuMEr\",\"format\":\"xai-responses-v1\",\"id\":\"rs_2eb9d62a-ef47-c651-d166-91cc28b76633\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":395,\"completion_tokens\":189,\"total_tokens\":584,\"cost\":0.00032794,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00032794,\"upstream_inference_prompt_cost\":0.00004444,\"upstream_inference_completions_cost\":0.0002835},\"completion_tokens_details\":{\"reasoning_tokens\":163,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.207088667s -- id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 800 - host: "" - body: '{"messages":[{"content":"You are a helpful assistant","role":"system"},{"content":"What''s the weather in Florence, Italy?","role":"user"},{"tool_calls":[{"id":"call_84645216","function":{"arguments":"{\"location\":\"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant","reasoning_details":[{"format":"unknown","index":0,"type":"reasoning.text"}]},{"content":"40 C","tool_call_id":"call_84645216","role":"tool"}],"model":"x-ai/grok-code-fast-1","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"}],"usage":{"include":true},"reasoning":{"effort":"medium"}}' - headers: - Accept: - - application/json - Content-Type: - - application/json - User-Agent: - - OpenAI/Go 2.7.1 - url: https://openrouter.ai/api/v1/chat/completions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - content_length: -1 - uncompressed: true - body: "\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n{\"id\":\"gen-1773324194-80TorHtaBY2SILgLpfYX\",\"object\":\"chat.completion\",\"created\":1773324194,\"model\":\"x-ai/grok-code-fast-1\",\"provider\":\"xAI\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"completed\",\"message\":{\"role\":\"assistant\",\"content\":\"The current temperature in Florence, Italy is 40°C. For more detailed weather information, feel free to ask!\",\"refusal\":null,\"reasoning\":\"First, the user asked for the weather in Florence, Italy. I used the weather tool, and the response was \\\"40 C\\\", which means 40 degrees Celsius.\\n\",\"reasoning_details\":[{\"type\":\"reasoning.summary\",\"summary\":\"First, the user asked for the weather in Florence, Italy. I used the weather tool, and the response was \\\"40 C\\\", which means 40 degrees Celsius.\\n\",\"format\":\"xai-responses-v1\",\"index\":0},{\"type\":\"reasoning.encrypted\",\"data\":\"5C6juowZE2uM8fyHx0cTSpSgOjt7iiQYASU4qvGUL5d4fieZk5/pjpvssQLxysFkTD5KUvV1/i4+mDAaksJKYkx8rKsp3a4Ppnci6ILEmAK5qGcaxFbuiPxVGcb19WrSaoOMIISeMwg7ROQs0Arl0UsFPcOKYeKIih+7/itWl7xBMyr8HrwZwBHA+AyfIhfEkDOa1aP//wbjUkIwjOMWVTpcpSG0mrnqzKBUzEEaheYrST5YlJwSy4CuSBZABc9kZb3d7u98wXXgvkmxgoRiBtfpBfaVgJneMbAGgErihDaj3T9elShkUsqk8pmI/5ACXWJqDGAimI7cTBkFDc1x8IUBHbFvKSgj2lobYAxPABeI2cqDAlZ4sHePw6flGzODZHsK2O76b7Uzs4PsT0qV4uxl/3GmJg8rBK8irK28AEEKdD3cewV2hgjJHV84DNU6JuFEG6vn7rUbE7dwjxqs1KXUnpGubnOZkjy9JxeeS+y/m44JU9w6aS0f+OKOAK+nuElsCKM4475JRIpcW3DP40+VThXskEVjFmQqVuekIjkLXP9FN2IcBgxiQgjX0qP5kPjrp8Gp/FRhakBr93z5f0jpZ4bFMeJnBTMSlSmYRb9NfC9jnC5wJw0P8DUXiX9pHCa1D7KoPmz6BQXBUlwz5JlRlI61uz4Es6kTNNs16mkMYiocEcIJ1lpmelKytAk4Gx9+NVap9qLPC8TVM8Jf40VsK0UXGU/TgmhTuCmxPzfrSWv+7Z0nrzY4odPos7FExgLT5FYr5TYN2xPJ2WkrR86JBuNoXHJqCne7NgTjXqlk3eIrJkcc6gx9UtSqjFWcTJ+iYufqH7gMcHSRmmgOKUGeBckgeDeXtI34LX6eTQgVZotA/rIlieHQS7/jvZ1v+Gp+kskb8hnmy3ikQO+b0QOcgReuaAxga62UqKeJaicy5OPJA+CnHxve3RFrLMhhUlqJ6NWyJ1VsnOOpqhBglAVCvSxsf3uR6mF9ppwiglfTvKqB9lTVHaWzMGL+gZuH3+DCd2hCKD0IhJsr/8C4i5D1lM4+edWy+ICBJPeRJEcOBQd3FrS1x0dhJVuPDJDCQjM54OVcDjZJ080QlYvWusjlBdXcMfOesQdVxSSRP7taW6oaukOaQYniEJsuzlGWjnmWcD74G3zQ2G29/MrQBYpx7q0I+SzTyO0iGYVOz5esDcEac3SEY4ZN6u56JZQsrwnHcukI2/y3VfkqBh1+0u54SNrGXtNEusQEzJHReI2sxabJ/wtFXhSlVSTsItiP+riIzBkwPxd0426vRi9qWxQ499aPi3GyDRLyS8WbBkdES1kXwCMiyMWamRSnka8zTb1Cg7MF0GvWCL10EHEB4bZwCN+SoSM9jkf8T6SsByNOhm7aCciWZBtBTof35u7IbRhJQBdhEcyQYxpcJVZWAbKvjUPc/m2unS/Yhun6vxDuTSyr/RYk+drZd3YrGg2ERbQ+OamkmFKVxPXN/4MQVEwTqbzABz9tBeLr3FUudPouDmyUx3H2Y7HuWg\",\"format\":\"xai-responses-v1\",\"id\":\"rs_90d46d25-fda9-829e-5f8c-d63c0c938cf7\",\"index\":1}]}}],\"usage\":{\"prompt_tokens\":433,\"completion_tokens\":272,\"total_tokens\":705,\"cost\":0.00046004,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":192,\"cache_write_tokens\":0,\"audio_tokens\":0,\"video_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":0.00046004,\"upstream_inference_prompt_cost\":0.00005204,\"upstream_inference_completions_cost\":0.000408},\"completion_tokens_details\":{\"reasoning_tokens\":249,\"image_tokens\":0,\"audio_tokens\":0}}}" - headers: - Content-Type: - - application/json - status: 200 OK - code: 200 - duration: 1.174056917s