mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 17:57:57 -05:00
On a connection with API type "responses", a forced tool choice sent in the Chat Completions shape was forwarded to the provider unchanged, so providers that validate the Responses API schema rejected the request. A non-streaming reply that carried a function call was also flattened to empty text with finish_reason "stop", so API clients never saw the tool call. The request converter now flattens a forced function choice to the Responses API shape, and the result converter turns every function_call output item into a Chat Completions tool_calls entry, mirroring the existing Responses output mapping in utils/misc.py. Fixes #30085