mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-11 19:28:33 +00:00
fix gpt compaction issue
This commit is contained in:
@@ -390,7 +390,7 @@ export namespace SessionPrompt {
|
||||
|
||||
// pending compaction
|
||||
if (task?.type === "compaction") {
|
||||
await SessionCompaction.process({
|
||||
const result = await SessionCompaction.process({
|
||||
messages: msgs,
|
||||
parentID: lastUser.id,
|
||||
abort,
|
||||
@@ -400,6 +400,7 @@ export namespace SessionPrompt {
|
||||
},
|
||||
sessionID,
|
||||
})
|
||||
if (result === "stop") break
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user