Detailed changes
@@ -21,6 +21,7 @@ func TestOpenRouterCommon(t *testing.T) {
models := []openrouterModel{
kimiK2(),
grokCodeFast1(),
+ claudeSonnet4(),
}
for _, model := range models {
@@ -85,3 +86,23 @@ func grokCodeFast1() openrouterModel {
},
}
}
+
+func claudeSonnet4() openrouterModel {
+ return openrouterModel{
+ name: "claude-sonnet-4",
+ builderFunc: func(r *recorder.Recorder) (ai.LanguageModel, error) {
+ provider := openrouter.New(
+ openrouter.WithAPIKey(os.Getenv("OPENROUTER_API_KEY")),
+ openrouter.WithHTTPClient(&http.Client{Transport: r}),
+ )
+ return provider.LanguageModel("anthropic/claude-sonnet-4")
+ },
+ providers: []string{
+ "google-vertex",
+ "google-vertex/global",
+ "anthropic",
+ "google-vertex/europe",
+ "amazon-bedrock",
+ },
+ }
+}
@@ -0,0 +1,63 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 877
+ 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,"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"}],"provider":{"only":["amazon-bedrock"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 872
+ 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,"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"}],"provider":{"only":["anthropic"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 876
+ 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,"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},"provider":{"only":["google-vertex"]}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+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":"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"}],"provider":{"only":["google-vertex/europe"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+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":"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"}],"provider":{"only":["google-vertex/global"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,133 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 931
+ 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"}],"provider":{"only":["amazon-bedrock"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"I","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"'ll","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":" add and multiply the","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":" numbers","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":" 2 an","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"d 3 for","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":" you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_bdrk_01K7wpQi9Yovsdmi5etWgAFd","index":0,"type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_bdrk_01Am4YPKG82JDEaf5fgMVRLM","index":1,"type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703536-4vhJkPCJGMrh5CnnHJ3L","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703536,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.659447667s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 1449
+ host: ""
@@ -0,0 +1,123 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 926
+ 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"}],"provider":{"only":["anthropic"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll add an","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"d multiply the numbers 2 and 3 for","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":" you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_017ez6Y11aFqR8qmZrK7Btae","index":0,"type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_019WhQ1ADmF3pqwZB7JowE1A","index":1,"type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"{\"a"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":", \"b\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":" 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703483-LOuy7QTH8TDyNbgY30TV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703483,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.673370291s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 1424
+ host: ""
@@ -0,0 +1,131 @@
+---
+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. 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"}],"provider":{"only":["google-vertex"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll add an","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"d multiply the numbers","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":" 2 and 3 for","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":" you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_01DnmZCpDRnkL5Vr8MhcYtS9","index":0,"type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":", \"b"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_0116gPZpAB1R3ic89xkD3X7f","index":1,"type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":", "}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"\"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703430-Rk2SW4cOp81eByfgrDeu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703430,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.211935542s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 1448
+ host: ""
@@ -0,0 +1,131 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 937
+ 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"}],"provider":{"only":["google-vertex/europe"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll add an","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"d multiply the","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":" numbers","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":" 2 and 3 for","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":" you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_014BnWyeLJKnwd8vwN2Tqb1P","index":0,"type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"a\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_014kjgdkPQosBq4VdJzKeBhS","index":1,"type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":", \"b\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703507-qvBSOm5047lKGDodXLIc","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703507,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.564185917s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 1455
+ host: ""
@@ -0,0 +1,131 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 937
+ 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"}],"provider":{"only":["google-vertex/global"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll add an","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"d multiply the numbers","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":" 2 and 3 for","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":" you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_01SHr5ifKaWhjY1X96UmUrYz","index":0,"type":"function","function":{"name":"add","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":", \"b"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"\": "}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_013eyJswYZfviqphDrSVgvDC","index":1,"type":"function","function":{"name":"multiply","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":"{\"a\": 2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"type":"function","function":{"arguments":", \"b\": 3}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703449-yeZI523TurVN5Lz44q5X","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703449,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":502,"completion_tokens":137,"total_tokens":639,"cost":0.003561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001506,"upstream_inference_completions_cost":0.002055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.428779375s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 1455
+ host: ""
@@ -0,0 +1,33 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 239
+ 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,"provider":{"only":["amazon-bedrock"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703512-Gm4spW8xO5nbEhiclJq1\",\"provider\":\"Amazon Bedrock\",\"model\":\"anthropic/claude-sonnet-4\",\"object\":\"chat.completion\",\"created\":1758703513,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"index\":0,\"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,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.000105},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0}}}"
+ headers:
+ Content-Type:
+ - application/json
+ status: 200 OK
+ code: 200
+ duration: 2.448192541s
@@ -0,0 +1,33 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 234
+ 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},"provider":{"only":["anthropic"]}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703454-UI2RCuSlPnY6RYEfhxoh\",\"provider\":\"Anthropic\",\"model\":\"anthropic/claude-sonnet-4\",\"object\":\"chat.completion\",\"created\":1758703454,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"index\":0,\"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,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.000105},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0}}}"
+ headers:
+ Content-Type:
+ - application/json
+ status: 200 OK
+ code: 200
+ duration: 1.994516958s
@@ -0,0 +1,33 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 238
+ 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,"provider":{"only":["google-vertex"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703408-y7IKlbobhYKwJ6L3egiy\",\"provider\":\"Google\",\"model\":\"anthropic/claude-sonnet-4\",\"object\":\"chat.completion\",\"created\":1758703408,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Olá! \\n\\n(That's \\\"hi\\\" in Portuguese!)\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":18,\"total_tokens\":34,\"cost\":0.000318,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.00027},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0}}}"
+ headers:
+ Content-Type:
+ - application/json
+ status: 200 OK
+ code: 200
+ duration: 2.225140833s
@@ -0,0 +1,33 @@
+---
+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":"anthropic/claude-sonnet-4","max_tokens":4000,"provider":{"only":["google-vertex/europe"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703489-fCFoX3Q2TlwGqElD2Ukf\",\"provider\":\"Google\",\"model\":\"anthropic/claude-sonnet-4\",\"object\":\"chat.completion\",\"created\":1758703489,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Olá! (Hello!)\\n\\nOr you could also say \\\"Oi!\\\" which is a more casual way to say hi in Portuguese.\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":33,\"total_tokens\":49,\"cost\":0.000543,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.000495},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0}}}"
+ headers:
+ Content-Type:
+ - application/json
+ status: 200 OK
+ code: 200
+ duration: 1.344501125s
@@ -0,0 +1,33 @@
+---
+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":"anthropic/claude-sonnet-4","max_tokens":4000,"provider":{"only":["google-vertex/global"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703435-rmbIOBbD9iDRHTQ4CHjT\",\"provider\":\"Google\",\"model\":\"anthropic/claude-sonnet-4\",\"object\":\"chat.completion\",\"created\":1758703435,\"choices\":[{\"logprobs\":null,\"finish_reason\":\"stop\",\"native_finish_reason\":\"stop\",\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Olá! \\n\\n(That's \\\"hi\\\" in Portuguese!)\",\"refusal\":null,\"reasoning\":null}}],\"usage\":{\"prompt_tokens\":16,\"completion_tokens\":18,\"total_tokens\":34,\"cost\":0.000318,\"is_byok\":false,\"prompt_tokens_details\":{\"cached_tokens\":0,\"audio_tokens\":0},\"cost_details\":{\"upstream_inference_cost\":null,\"upstream_inference_prompt_cost\":0.000048,\"upstream_inference_completions_cost\":0.00027},\"completion_tokens_details\":{\"reasoning_tokens\":0,\"image_tokens\":0}}}"
+ headers:
+ Content-Type:
+ - application/json
+ status: 200 OK
+ code: 200
+ duration: 1.191377875s
@@ -0,0 +1,48 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 293
+ 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},"provider":{"only":["amazon-bedrock"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":"Olá! ","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":"\n\n(That's \"hi\" in Portuguese!)","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703515-7P3UtpyYBMgVQX1Q7pDa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703515,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":16,"completion_tokens":18,"total_tokens":34,"cost":0.000318,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.00027},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.071447959s
@@ -0,0 +1,54 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 288
+ 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},"provider":{"only":["anthropic"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"Olá!","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"\n\n(That's \"hello\" in Portuguese.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":" You could also say \"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"Oi!\" for a more casual \"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"hi!\")","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703457-azEEMuDqqKhlLMdpq4jl","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703457,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":16,"completion_tokens":33,"total_tokens":49,"cost":0.000543,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.000495},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.166245167s
@@ -0,0 +1,60 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 292
+ 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},"provider":{"only":["google-vertex"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"Olá! (","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"That's \"hi","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"\" in Portuguese)","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"\n\nYou can also say","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":" \"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"Oi!\" which is a","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":" more casual way to say hi","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":" in Portuguese.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703410-VHZouOacr7dEmAytFMJv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703410,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":16,"completion_tokens":38,"total_tokens":54,"cost":0.000618,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.00057},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.17237075s
@@ -0,0 +1,86 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 299
+ 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},"provider":{"only":["google-vertex/europe"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"Olá! (","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"Oh","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"-LA","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"H","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":")","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"\n\nThis","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" is the","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" most common","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" way","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" to say \"hi\" in Portuguese.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" You","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" coul","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"d also use","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" \"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"Oi!\"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" (","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"OY","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":")","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" which","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" is more","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":" casual and friendly.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703491-ae2BWYa9Vz5ViELaIMv9","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703491,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":16,"completion_tokens":48,"total_tokens":64,"cost":0.000768,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.00072},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.528290833s
@@ -0,0 +1,46 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 299
+ 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},"provider":{"only":["google-vertex/global"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703436-WC0BFNzETFmaPHLJTryv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703436,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703436-WC0BFNzETFmaPHLJTryv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703436,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703436-WC0BFNzETFmaPHLJTryv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703436,"choices":[{"index":0,"delta":{"role":"assistant","content":"Olá!","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703436-WC0BFNzETFmaPHLJTryv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703436,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703436-WC0BFNzETFmaPHLJTryv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703436,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703436-WC0BFNzETFmaPHLJTryv","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703436,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":16,"completion_tokens":7,"total_tokens":23,"cost":0.000153,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000048,"upstream_inference_completions_cost":0.000105},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.38509775s
@@ -0,0 +1,63 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 531
+ 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"}],"provider":{"only":["amazon-bedrock"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 526
+ 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"}],"provider":{"only":["anthropic"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 530
+ 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},"provider":{"only":["google-vertex"]}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+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":"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"}],"provider":{"only":["google-vertex/europe"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,63 @@
+---
+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":"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"}],"provider":{"only":["google-vertex/global"]},"usage":{"include":true}}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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
@@ -0,0 +1,119 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 585
+ 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"}],"provider":{"only":["amazon-bedrock"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll get the weather information","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":" for Florence, Italy for you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_bdrk_013pCiWByeyQJP6mCFLWb3y3","index":0,"type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"loca"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"tion\": \"F"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"lorence"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":",Ital"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"y\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703523-RvVV9U7LMp8PSHwBqyFa","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703523,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":394,"completion_tokens":67,"total_tokens":461,"cost":0.002187,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.001005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.730769417s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 923
+ 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_bdrk_013pCiWByeyQJP6mCFLWb3y3","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_bdrk_013pCiWByeyQJP6mCFLWb3y3","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"}],"provider":{"only":["amazon-bedrock"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":"The current","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":" temperature in Florence, Italy is 40°","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":"C (104°F). That's quite","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":" hot! If you're planning to","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":" visit or are currently there, make sure to","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":" stay hydrated and seek shade during the hottest parts of the","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":" day.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703526-qwN9g0fFIE8IDXhx6MJO","provider":"Amazon Bedrock","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703527,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":476,"completion_tokens":54,"total_tokens":530,"cost":0.002238,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001428,"upstream_inference_completions_cost":0.00081},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.336130292s
@@ -0,0 +1,121 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 580
+ 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"}],"provider":{"only":["anthropic"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll get","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":" the weather information for Florence, Italy for you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_01GJYtQvdcS73pmDMzbEaxxo","index":0,"type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"location"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"\": \"Flore"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"nce,I"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"taly"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703468-PZBsTS61Zv8dC4gFmkdP","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703468,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":394,"completion_tokens":67,"total_tokens":461,"cost":0.002187,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.001005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.985700666s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 908
+ 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_01GJYtQvdcS73pmDMzbEaxxo","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_01GJYtQvdcS73pmDMzbEaxxo","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"}],"provider":{"only":["anthropic"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"The current","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":" weather in Florence, Italy shows","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":" a temperature of 40°C (","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"104°F). That's quite hot","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"! Make sure to","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":" stay hydrated and seek","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":" shade if you're planning","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":" to be outdoors.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703472-eEvBb5ewHGcTPuquejTV","provider":"Anthropic","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703472,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":476,"completion_tokens":46,"total_tokens":522,"cost":0.002118,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001428,"upstream_inference_completions_cost":0.00069},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.426378875s
@@ -0,0 +1,125 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 584
+ 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"}],"provider":{"only":["google-vertex"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll get the weather information","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":" for Florence, Italy for you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_01KAtCYAhJncFvXBrmP8TvYj","index":0,"type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"location\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":": \"Flo"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"ren"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"ce,Italy\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703419-91uUKXxCtEVQul9RRUiN","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703419,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":394,"completion_tokens":67,"total_tokens":461,"cost":0.002187,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.001005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.208934459s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 922
+ 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_01KAtCYAhJncFvXBrmP8TvYj","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_01KAtCYAhJncFvXBrmP8TvYj","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"}],"provider":{"only":["google-vertex"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"The","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":" current","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":" weather in Florence, Italy is 40","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"°C (104°F). That","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"'s quite","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":" hot! It","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"'s a","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":" very","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":" warm day in","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":" Florence","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":".","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703422-TIBE56DbHfmidVSPDzKu","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703423,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":476,"completion_tokens":34,"total_tokens":510,"cost":0.001938,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001428,"upstream_inference_completions_cost":0.00051},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.153385584s
@@ -0,0 +1,137 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 591
+ 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"}],"provider":{"only":["google-vertex/europe"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll get the weather information","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":" for Florence, Italy for you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_018gxNZKGPB561WXyjqCZDPA","index":0,"type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"location\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":" \"Fl"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"orence"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":",I"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"taly\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703498-fM9ZsDQAfy71vyjAQGOF","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703498,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":394,"completion_tokens":67,"total_tokens":461,"cost":0.002187,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.001005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 2.036525917s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 929
+ 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_018gxNZKGPB561WXyjqCZDPA","function":{"arguments":"{\"location\": \"Florence,Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_018gxNZKGPB561WXyjqCZDPA","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"}],"provider":{"only":["google-vertex/europe"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"The current","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" temperature","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" in Florence, Italy is 40°","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"C (104°F). That","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"'s quite hot","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"! If","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" you're planning to visit or","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" are currently","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" there","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":", make","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" sure to","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" stay","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" hydrated and seek","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" shade during the hottest parts","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":" of the day.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703501-F3TPZJvH25uBXpA02kYe","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703501,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":476,"completion_tokens":54,"total_tokens":530,"cost":0.002238,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001428,"upstream_inference_completions_cost":0.00081},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.330429834s
@@ -0,0 +1,133 @@
+---
+version: 2
+interactions:
+ - id: 0
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 591
+ 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"}],"provider":{"only":["google-vertex/global"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll get","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":" the current","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":" weather information","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":" for Florence, Italy for you.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"toolu_vrtx_018YAYcRRh2FsSEMXgs9sADK","index":0,"type":"function","function":{"name":"weather","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"{\"location\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":" \"Flore"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"nce, Italy"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"type":"function","function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+
+ data: {"id":"gen-1758703441-x2a6sIg6KNtgAe47OkdJ","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703441,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":394,"completion_tokens":68,"total_tokens":462,"cost":0.002202,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001182,"upstream_inference_completions_cost":0.00102},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 1.352287166s
+ - id: 1
+ request:
+ proto: HTTP/1.1
+ proto_major: 1
+ proto_minor: 1
+ content_length: 938
+ 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 for you.","tool_calls":[{"id":"toolu_vrtx_018YAYcRRh2FsSEMXgs9sADK","function":{"arguments":"{\"location\": \"Florence, Italy\"}","name":"weather"},"type":"function"}],"role":"assistant"},{"content":"40 C","tool_call_id":"toolu_vrtx_018YAYcRRh2FsSEMXgs9sADK","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"}],"provider":{"only":["google-vertex/global"]},"usage":{"include":true},"stream":true}'
+ headers:
+ Accept:
+ - application/json
+ Content-Type:
+ - application/json
+ User-Agent:
+ - OpenAI/Go 2.3.0
+ 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-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"The current","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" temperature","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" in Florence, Italy is 40°","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"C (104°F). That","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"'s quite","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" hot! Make","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" sure to","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" stay","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" hydrated and seek","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" shade if","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" you're planning to be","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":" out","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"doors.","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":"","reasoning":null,"reasoning_details":[]},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+
+ data: {"id":"gen-1758703443-tUSMqvyVWt5awRRvXeqm","provider":"Google","model":"anthropic/claude-sonnet-4","object":"chat.completion.chunk","created":1758703443,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":477,"completion_tokens":43,"total_tokens":520,"cost":0.002076,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.001431,"upstream_inference_completions_cost":0.000645},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+
+ data: [DONE]
+
+ headers:
+ Content-Type:
+ - text/event-stream
+ status: 200 OK
+ code: 200
+ duration: 937.009042ms