mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #14360] issue: unable to query large OpenAPI endpoints using native function calling #32750
Reference in New Issue
Block a user
Originally created by @ciejer on GitHub (May 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14360
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.6.10
Ollama Version (if applicable)
No response
Operating System
Debian 12, Docker Compose
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Querying an LLM using native functions with a large OpenAPI tool equipped should provide some way of filtering or disabling available endpoints down to a subset of functionality, to remain within LLM limits.
I have observed this issue on two separate OpenWebUI instances, both with external OpenAPI endpoints and also via MCPO.
Actual Behavior
Adding the OpenWebUI openapi.json as a system-wide tool, and querying GPT-4.1 with that tool equipped, produces an error 400: Invalid 'tools': array too long. Expected an array with maximum length 128, but got an array with length 315 instead.
Steps to Reproduce
Logs & Screenshots
Browser Console Logs:
openwebui.dataops.nz-1748294240937.log
Docker Logs:
docker_logs.txt
Additional Information
No response
@tjbck commented on GitHub (May 26, 2025):
OpenAI needs to support more tools to be included in the chat request.