mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
issue: API Requests involving tools fail with 400 due to validation error #4743
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 @CooperCorona on GitHub (Apr 6, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.16
Ollama Version (if applicable)
0.6.1
Operating System
Ubuntu 20.04.6
Browser (if applicable)
Chrome Version 134.0.6998.166
Confirmation
README.md.Expected Behavior
OpenWebUI will successfully interpret API requests (via the Ollama endpoint) that involve tool calling, specifically the Goose agent (see also the bug I filed against Goose; I'm not sure what program the bug is in).
Actual Behavior
OpenWebUI fails with
Field required [type=missing, input_value={'role': 'assistant', 'to...', 'type': 'function'}]}, input_type=dict]Steps to Reproduce
goose configure. Select OpenAI anda. Configure the host to be your OpenWebUI instance.
b. Configure the base path to be
ollama/v1/chat/completions.c. Select
qwen2.5-coder:1.5bas the model.goose sessionLogs & Screenshots
Docker logs:
Additional Information
When I use Goose via Ollama directly (on the same machine that Goose is running, as opposed to the different machine on which OpenWebUI is running, with its own instance of Ollama), everything works. This is why I believe it may be a bug in OpenWebUI, not Goose.
@tjbck commented on GitHub (Apr 6, 2025):
Ollama endpoint will only support Ollama, please use OpenAI connections for other inference services.