feat: improved compation

This commit is contained in:
Gab 2026-03-26 22:26:45 +11:00
parent 6234611db1
commit f12a1e34a5

View File

@ -29,7 +29,7 @@ export namespace SessionCompaction {
} }
const COMPACTION_BUFFER = 20_000 const COMPACTION_BUFFER = 20_000
const COMPACTION_BUFFER_TOOTHFAIRYAI = 250_000 const COMPACTION_BUFFER_TOOTHFAIRYAI = 0
export async function isOverflow(input: { tokens: MessageV2.Assistant["tokens"]; model: Provider.Model }) { export async function isOverflow(input: { tokens: MessageV2.Assistant["tokens"]; model: Provider.Model }) {
const config = await Config.get() const config = await Config.get()