Skip to content

Commit 285379d

Browse files
committed
refac
1 parent 5ab012e commit 285379d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/lib/components/chat/Chat.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,10 +2530,8 @@
25302530
} else {
25312531
toolServerIds.push(serverId);
25322532
}
2533-
} else if (toolId.startsWith('server:') || $config?.features?.enable_plugins) {
2534-
toolIds.push(toolId);
25352533
} else {
2536-
continue;
2534+
toolIds.push(toolId);
25372535
}
25382536
}
25392537
@@ -2561,10 +2559,7 @@
25612559
25622560
files: (files?.length ?? 0) > 0 ? files : undefined,
25632561
2564-
filter_ids:
2565-
$config?.features?.enable_plugins && selectedFilterIds.length > 0
2566-
? selectedFilterIds
2567-
: undefined,
2562+
filter_ids: selectedFilterIds.length > 0 ? selectedFilterIds : undefined,
25682563
tool_ids: toolIds.length > 0 ? toolIds : undefined,
25692564
skill_ids: skillIds.length > 0 ? skillIds : undefined,
25702565
terminal_id: terminalEnabled ? (activeTerminalId ?? undefined) : undefined,

0 commit comments

Comments
 (0)