mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #13325] issue: Unnecessary type parameter added during OpenAPI to tool spec conversion #32416
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 @YorhaL on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13325
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.5
Ollama Version (if applicable)
No response
Operating System
macOS
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The
functiondefinition within the generated tool spec should not contain atypeparameter. When the API is called based on OpenAI spec, notypeparameter should be passed underfunction.Actual Behavior
When converting an OpenAPI specification to a tool spec, an unnecessary
typeparameter is being added under thefunctiondefinition in the resulting tool spec.Steps to Reproduce
Logs & Screenshots
tools[0]from Open WebUI,tools[1]andtools[2]from OpenAPI Tool Server,Additional Information
I think the problem is in the following code:
852d9dcbe9/backend/open_webui/utils/tools.py (L360-L420)@tjbck commented on GitHub (Apr 29, 2025):
How is this a bug? Correct me if i'm wrong but this should be the intended behaviour.