mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-03 02:23:51 +00: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 |
||
|---|---|---|
| .. | ||
| data | ||
| internal | ||
| migrations | ||
| models | ||
| retrieval | ||
| routers | ||
| socket | ||
| static | ||
| storage | ||
| tools | ||
| utils | ||
| __init__.py | ||
| alembic.ini | ||
| config.py | ||
| constants.py | ||
| env.py | ||
| events.py | ||
| functions.py | ||
| main.py | ||
| tasks.py | ||