mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 07:03:45 +00:00
feat: better compaction
This commit is contained in:
@@ -29,7 +29,7 @@ export namespace SessionCompaction {
|
||||
}
|
||||
|
||||
const COMPACTION_BUFFER = 20_000
|
||||
const COMPACTION_BUFFER_TOOTHFAIRYAI = 100_000
|
||||
const COMPACTION_BUFFER_TOOTHFAIRYAI = 250_000
|
||||
|
||||
export async function isOverflow(input: { tokens: MessageV2.Assistant["tokens"]; model: Provider.Model }) {
|
||||
const config = await Config.get()
|
||||
|
||||
Reference in New Issue
Block a user