Originally created by @LikeSundayLikeRain on GitHub (Apr 1, 2025).
Check Existing Issues
I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
Installation Method
Docker
Open WebUI Version
0.6.0
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
Browser (if applicable)
Chrome 134.0.6998.166
Confirmation
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have listed steps to reproduce the bug in detail.
Expected Behavior
Tool call should execute successfully
Actual Behavior
Wrong argument is sent to the tool call and failed to execute.
Fail case:
response stream:
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"role":"assistant","content":""}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"The"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" user"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" is"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" asking about the current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" weather in"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" New York."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" I"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" shoul"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"d use"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" the `"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"get_current_"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"weather` function"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" to retrieve"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" this"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" information."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"\n\nFor"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" the `"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"get_current_"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"weather` function,"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" I nee"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"d to provide a city"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" parameter"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":". In"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" this case, the"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" city"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" is \"New York"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"\"."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"\n\nSo I"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"'ll"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" make"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" a function"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" call to"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" `get_current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"_weather` with"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" \""}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"New York\" as"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" the city parameter."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":"I'll"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" check"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" the current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" weather in"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" New York for"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" you."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"id":"tooluse_2ZNq3zQIQ9aCmam84oskoA","type":"function","function":{"name":"get_current_weather","arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536581,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"city\": \"N"}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536581,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ew York\"}"}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536581,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":"tool_calls","logprobs":null,"delta":{}}],"object":"chat.completion.chunk","usage":null}
Works fine when disable the thinking:
response stream:
{"id":"chatcmpl-81c73838","created":1743536498,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"role":"assistant","content":""}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536498,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":"I'll"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" check the current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" weather in New York"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" for you."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"id":"tooluse_Q8vD2dCXTN60sQl_EX8XcA","type":"function","function":{"name":"get_current_weather","arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"city\": \""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"New "}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"York\"}"}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":"tool_calls","logprobs":null,"delta":{}}],"object":"chat.completion.chunk","usage":null}
Steps to Reproduce
add default tool in workspace
initial a tool call conversation with models that generates reasoning content
Logs & Screenshots
container logs showing normal 200
Additional Information
No response
Originally created by @LikeSundayLikeRain on GitHub (Apr 1, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### Installation Method
Docker
### Open WebUI Version
0.6.0
### Ollama Version (if applicable)
_No response_
### Operating System
macOS Sonoma
### Browser (if applicable)
Chrome 134.0.6998.166
### Confirmation
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have listed steps to reproduce the bug in detail.
### Expected Behavior
Tool call should execute successfully
### Actual Behavior
Wrong argument is sent to the tool call and failed to execute.
### Fail case:

#### response stream:
```
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"role":"assistant","content":""}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"The"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" user"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" is"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" asking about the current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" weather in"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" New York."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" I"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" shoul"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"d use"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" the `"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"get_current_"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"weather` function"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" to retrieve"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" this"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" information."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"\n\nFor"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" the `"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"get_current_"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"weather` function,"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" I nee"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536578,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"d to provide a city"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" parameter"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":". In"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" this case, the"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" city"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" is \"New York"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"\"."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"\n\nSo I"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"'ll"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" make"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" a function"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" call to"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" `get_current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"_weather` with"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" \""}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":"New York\" as"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536579,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"reasoning_content":" the city parameter."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":"I'll"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" check"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" the current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" weather in"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" New York for"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" you."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"id":"tooluse_2ZNq3zQIQ9aCmam84oskoA","type":"function","function":{"name":"get_current_weather","arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536580,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"function":{"arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536581,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"city\": \"N"}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536581,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ew York\"}"}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-63471c7a","created":1743536581,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":"tool_calls","logprobs":null,"delta":{}}],"object":"chat.completion.chunk","usage":null}
```
### Works fine when disable the thinking:

#### response stream:
```
{"id":"chatcmpl-81c73838","created":1743536498,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"role":"assistant","content":""}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536498,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":"I'll"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" check the current"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" weather in New York"}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"content":" for you."}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"id":"tooluse_Q8vD2dCXTN60sQl_EX8XcA","type":"function","function":{"name":"get_current_weather","arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536499,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"city\": \""}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"New "}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":null,"logprobs":null,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"York\"}"}}]}}],"object":"chat.completion.chunk","usage":null}
{"id":"chatcmpl-81c73838","created":1743536500,"model":"us.anthropic.claude-3-7-sonnet-20250219-v1:0","system_fingerprint":"fp","choices":[{"index":0,"finish_reason":"tool_calls","logprobs":null,"delta":{}}],"object":"chat.completion.chunk","usage":null}
```
### Steps to Reproduce
1. add default tool in workspace
2. initial a tool call conversation with models that generates reasoning content
### Logs & Screenshots
container logs showing normal 200
### Additional Information
_No response_
GiteaMirror
added the bug label 2025-11-11 16:00:00 -06:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @LikeSundayLikeRain on GitHub (Apr 1, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.0
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
Browser (if applicable)
Chrome 134.0.6998.166
Confirmation
README.md.Expected Behavior
Tool call should execute successfully
Actual Behavior
Wrong argument is sent to the tool call and failed to execute.
Fail case:
response stream:
Works fine when disable the thinking:
response stream:
Steps to Reproduce
Logs & Screenshots
container logs showing normal 200
Additional Information
No response