mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-09 19:57:17 -05:00
[GH-ISSUE #21557] bug: /api/v1/chat/completions ignores caller tools and may advertise unavailable server tools #90256
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 @exxocism on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21557
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
dev (v0.8.3)
Ollama Version (if applicable)
No response
Operating System
any
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When I send
POST /api/v1/chat/completionswith an explicit OpenAI-styletoolsarray, only those caller-provided tools should be advertised/exposed to the model and used for tool calling.Server-side tools (
tool_ids,tool_servers, builtin native tools) should not override the request payload whentoolsis explicitly provided.Actual Behavior
/api/v1/chat/completionscan ignore the caller-providedtoolspayload and replace it with server-resolved tools (including builtin native tools), causing:toolsSteps to Reproduce
dev(or latest) and configure any working OpenAI-compatible model.get_current_timestamp) even though requesttoolsonly containedonly_allowed_tool.tool_idsand confirm those server-side tools appear/are used instead of caller payload.Logs & Screenshots
Additional Information
Relevant configuration/assumptions for repro:
params.function_callingis set to"native"in request body.builtin_toolsdefaults to enabled unless explicitly disabled in model metadata.@pr-validator-bot commented on GitHub (Feb 18, 2026):
⚠️ Missing Issue Title Prefix
@exxocism, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@tjbck commented on GitHub (Feb 23, 2026):
Good catch, addressed in dev!