From 9f5c90559272c024dd408b934736463269215a4f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 24 Jul 2025 19:43:17 +0400 Subject: [PATCH] fix: max count should not apply to knowledge --- src/lib/components/workspace/Models/Knowledge.svelte | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib/components/workspace/Models/Knowledge.svelte b/src/lib/components/workspace/Models/Knowledge.svelte index ee81b756c..683f2a284 100644 --- a/src/lib/components/workspace/Models/Knowledge.svelte +++ b/src/lib/components/workspace/Models/Knowledge.svelte @@ -95,17 +95,7 @@ const inputFilesHandler = async (inputFiles) => { console.log('Input files handler called with:', inputFiles); - if ( - ($config?.file?.max_count ?? null) !== null && - files.length + inputFiles.length > $config?.file?.max_count - ) { - toast.error( - $i18n.t(`You can only chat with a maximum of {{maxCount}} file(s) at a time.`, { - maxCount: $config?.file?.max_count - }) - ); - return; - } + inputFiles.forEach(async (file) => { console.log('Processing file:', {