open-webui/backend/open_webui
Classic298 88720c6928
fix: tool calls get mixed up between rounds when the model reuses tool call ids (#31887)
Some providers, like Kimi K3 on OpenRouter, number their tool calls from zero again each time the model calls tools within the same reply. A later batch of calls then overwrote the earlier calls with the same id, so the saved chat showed the earlier calls with the later arguments, and the model was sent its earlier results next to the wrong arguments. A new tool call whose id is already used in the same reply now gets a fresh id, so every call keeps its own arguments and result, and providers that send unique ids are untouched. Tested before and after against a mock provider that reuses ids on every round.

Fixes #28305
2026-10-05 11:19:45 +04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal fix: non-English text is missed by searches and counted six times against size limits (#31615) 2026-09-30 19:19:29 +04:00
migrations chore: format 2026-08-25 16:53:53 -04:00
models refac 2026-10-05 10:46:08 +04:00
retrieval fix: send the query embedding as a vector in external pgvector retrieval (#31112) 2026-10-01 07:51:32 +04:00
routers refac 2026-10-05 10:56:06 +04:00
socket fix: large pastes into a note are lost after a reload (#31893) 2026-10-03 17:05:00 +04:00
static refac 2026-09-06 17:27:30 -04:00
storage fix: read S3 files with long non-ASCII names (#30418) 2026-09-23 23:30:55 -04:00
tools refac: calendar event tools use the calendar's access check (#31537) 2026-09-30 19:29:19 +04:00
utils fix: tool calls get mixed up between rounds when the model reuses tool call ids (#31887) 2026-10-05 11:19:45 +04:00
__init__.py refactor: use secrets module for generated secret key (#30441) 2026-09-23 23:36:26 -04:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py refac 2026-10-05 09:56:10 +04:00
constants.py fix: SSO login failures show the email/password error (#31629) 2026-09-30 19:07:49 +04:00
env.py refac 2026-10-01 03:31:20 +04:00
events.py refac 2026-10-01 03:31:20 +04:00
functions.py refac 2026-10-01 03:31:20 +04:00
main.py refac 2026-10-05 10:48:41 +04:00
tasks.py refac 2026-09-21 08:59:39 -04:00