mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
feat: better compaction
This commit is contained in:
parent
ee358a01eb
commit
b893490db0
2
bun.lock
2
bun.lock
@ -381,7 +381,7 @@
|
||||
},
|
||||
"packages/tfcode": {
|
||||
"name": "tfcode",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.10",
|
||||
"bin": {
|
||||
"tfcode": "./bin/tfcode",
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.10",
|
||||
"name": "tfcode",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user