mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-05 07:57:06 +00:00
The tool loop builds `output` once per request but runs many rounds inside it, and each round skips a function_call whose id appears anywhere in `output` - including rounds already completed. Results are rebuilt per round and appended regardless, so an id a later round reuses loses its call and keeps its result. The turn then holds function_call_output items with no function_call, and the next request fails at the provider with "tool message tool_call_id '...' does not match any tool call in the preceding assistant messages". The malformed turn is persisted, so retrying cannot succeed and every later message in that chat fails the same way. Renaming a reused id restores the pairing. Scoped to ids that are already answered, so the case the dedup exists for - Responses API items already in `output` and still awaiting a result - is untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 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 | ||