mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
feat: Properly handle tool calls for the gpt-oss model #5969
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EntropyYue on GitHub (Aug 5, 2025).
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Problem Description
When using the gpt-oss model in ollama, it will call the tool without ending the reasoning, which will cause the reasoning block before the tool call to fail to end correctly:
Desired Solution you'd like
The reasoning block cannot be closed normally
Alternatives Considered
Perhaps the tool call can be placed inside a reasoning block when encountering this situation, like this:
Additional Context
No response
@tjbck commented on GitHub (Aug 6, 2025):
Addressed with
2e36540023in dev!