mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
Merge 4c2f73b648 into 240c795efe
This commit is contained in:
commit
ac161e0922
1 changed files with 6 additions and 1 deletions
|
|
@ -3516,7 +3516,12 @@
|
|||
const toolIds = [];
|
||||
const toolServerIds = [];
|
||||
|
||||
for (const toolId of selectedToolIds) {
|
||||
// Include this model's own attached tools so they apply in multi-model chats,
|
||||
// independent of the composer's selectedToolIds lifecycle.
|
||||
const modelDefaultToolIds = (model?.info?.meta?.toolIds ?? []).filter((id) =>
|
||||
$tools.find((t) => t.id === id)
|
||||
);
|
||||
for (const toolId of [...new Set([...selectedToolIds, ...modelDefaultToolIds])]) {
|
||||
if (toolId.startsWith('direct_server:')) {
|
||||
let serverId = toolId.replace('direct_server:', '');
|
||||
// Check if serverId is a number
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue