Files
open-webui/backend/open_webui
Classic298 d5cacb3c0a fix: convert forced tool_choice and non-streaming tool calls for Responses API connections (#30095)
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
2026-09-18 19:18:26 -04:00
..
2026-09-06 17:13:32 -04:00
2026-08-25 16:53:53 -04:00
2026-09-17 20:11:05 -04:00
2026-09-16 22:47:37 -04:00
2026-09-06 17:27:30 -04:00
2026-09-06 17:13:32 -04:00
2026-09-16 10:38:46 -04:00
2026-09-18 11:31:59 -04:00
2026-08-29 16:14:32 -04:00
2026-08-16 23:21:00 -07:00
2026-09-17 19:49:35 -04:00