mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
fix: max count should not apply to knowledge
This commit is contained in:
@@ -95,17 +95,7 @@
|
|||||||
const inputFilesHandler = async (inputFiles) => {
|
const inputFilesHandler = async (inputFiles) => {
|
||||||
console.log('Input files handler called with:', 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) => {
|
inputFiles.forEach(async (file) => {
|
||||||
console.log('Processing file:', {
|
console.log('Processing file:', {
|
||||||
|
|||||||
Reference in New Issue
Block a user