feat: max token

This commit is contained in:
archer
2023-09-10 11:52:54 +08:00
parent 48908106af
commit ce47c96b9f
2 changed files with 2 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ const CsvImport = ({ kbId }: { kbId: string }) => {
.flat()
.filter((item) => item?.q);
const filterChunks = chunks.filter((item) => item.q.length < maxToken);
const filterChunks = chunks.filter((item) => item.q.length < maxToken * 1.5);
if (filterChunks.length !== chunks.length) {
toast({