mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #16232] issue: Function calling parameter has 1 extra parameter, not exactly following openai's function calling standard #33363
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 @tan-yong-sheng on GitHub (Aug 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16232
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.18
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
With reference to openai's documentation: https://platform.openai.com/docs/guides/function-calling?api-mode=chat&lang=curl, I found OpenWebUI client did send an extra parameter as follows:
I am using LiteLLM to orchestrate all my LLM api, and here are my LiteLLM's logs:
(i) mistral/magistral-medium-latest requests sent from OpenWebUI client (X)

(ii) openai/gpt-4.1 requests sent from OpenWebUI client (/)
Although it's still successful for openai request, but may not for other models which strictly follow the openai-compatible API format for function calling

Actual Behavior
The correct parameter should be:
(i) mistral/magistral-medium-latest requests after removing the extra parameter (/)

(ii) Tested again to openai model to ensure no impact after removing this extra parameter (/)
Thanks.
Steps to Reproduce
Mentioned as above. Or can look back into this: https://platform.openai.com/docs/guides/function-calling?api-mode=chat
Logs & Screenshots
As shown as above
Additional Information
No response
@tjbck commented on GitHub (Aug 2, 2025):
This definitely does not provide all the necessary details, are you using external tool servers? built-in tools?
@tan-yong-sheng commented on GitHub (Aug 2, 2025):
Thanks for follow up, I am using external tool server.
And I set function calling parameter to 'native' when running these models
@tjbck commented on GitHub (Aug 2, 2025):
Might be addressed with
00084c6ca6, testing wanted here!@tan-yong-sheng commented on GitHub (Aug 3, 2025):
Hi @tjbck, the error still persist. Noting that I am using docker image:
ghcr.io/open-webui/open-webui:dev.Also, I just tested with built-in tools, it also output the extra parameter just like tool server. Thanks.
@tjbck commented on GitHub (Aug 4, 2025):
@tan-yong-sheng are you sure you're using the latest image?
Also I'm unable to reproduce the issue with built-in tools.