Adding max record limt in settings

This commit is contained in:
sjiampojamarn
2025-04-06 11:42:12 -07:00
parent 8097610baf
commit 02f5739070
4 changed files with 70 additions and 3 deletions

View File

@@ -101,6 +101,12 @@ const checkConfig = async (
localStorage.setItem('userSessionId', userSessionId!)
}
let maxRecordLimit = localStorage.getItem('maxRecordLimit');
if (!maxRecordLimit) {
maxRecordLimit = '20';
localStorage.setItem('maxRecordLimit', maxRecordLimit);
}
if (
!embeddingModelProviders ||
Object.keys(embeddingModelProviders).length === 0