mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #21368] [CLOSED] fix: Pass configured tools to models in multi-model comparison mode #49097
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21368
Author: @YannickPezeu
Created: 2/13/2026
Status: ❌ Closed
Base:
main← Head:multi_model_tools📝 Commits (2)
7330af9feat: add admin setting for citation content format (plain text or markdown)a1ce0eaFix tools not passed to models in multi-model comparison mode📊 Changes
6 files changed (+42 additions, -2 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/routers/auths.py(+4 -0)📝
src/lib/components/admin/Settings/General.svelte(+13 -0)📝
src/lib/components/chat/Chat.svelte(+7 -1)📝
src/lib/components/chat/Messages/Citations/CitationModal.svelte(+9 -1)📄 Description
Summary
Root cause
In
Chat.svelte,setDefaults()returns early when multiple models are selected, skipping tool loading. ThesendMessageSocket()function used the globalselectedToolIdswhich was empty in multi-model mode.Fix
In
sendMessageSocket(), merge model-configured tools (model.info.meta.toolIds) with user-selected tools before sending to the backend, ensuring each model gets its own correct set of tools.Test plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.