Fix condition in supaMemory.ts to use greater than instead of less than

This commit is contained in:
kwaroran
2024-04-13 17:28:55 +09:00
parent c4f1f6d28b
commit c810a64a0f

View File

@@ -283,7 +283,7 @@ export async function supaMemory(
while(currentTokens > maxContextTokens){
const beforeToken = currentTokens
let maxChunkSize = Math.floor(maxContextTokens / 3)
if(db.maxSupaChunkSize > maxChunkSize){
if(db.maxSupaChunkSize < maxChunkSize){
maxChunkSize = db.maxSupaChunkSize
}
let summarized = false