mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
This commit is contained in:
parent
ef8630d556
commit
975f7b868a
1 changed files with 7 additions and 2 deletions
|
|
@ -2530,8 +2530,10 @@
|
|||
} else {
|
||||
toolServerIds.push(serverId);
|
||||
}
|
||||
} else {
|
||||
} else if (toolId.startsWith('server:') || $config?.features?.enable_plugins) {
|
||||
toolIds.push(toolId);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2559,7 +2561,10 @@
|
|||
|
||||
files: (files?.length ?? 0) > 0 ? files : undefined,
|
||||
|
||||
filter_ids: selectedFilterIds.length > 0 ? selectedFilterIds : undefined,
|
||||
filter_ids:
|
||||
$config?.features?.enable_plugins && selectedFilterIds.length > 0
|
||||
? selectedFilterIds
|
||||
: undefined,
|
||||
tool_ids: toolIds.length > 0 ? toolIds : undefined,
|
||||
skill_ids: skillIds.length > 0 ? skillIds : undefined,
|
||||
terminal_id: terminalEnabled ? (activeTerminalId ?? undefined) : undefined,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue