mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 14:52:25 +00:00
message storage performance improvements
This commit is contained in:
@@ -111,9 +111,7 @@ export namespace SessionCompaction {
|
||||
draft.time.compacting = undefined
|
||||
})
|
||||
})
|
||||
const toSummarize = await Session.messages({ sessionID: input.sessionID }).then(
|
||||
MessageV2.filterCompacted,
|
||||
)
|
||||
const toSummarize = await MessageV2.filterCompacted(Session.messageStream(input.sessionID))
|
||||
const model = await Provider.getModel(input.providerID, input.modelID)
|
||||
const system = [
|
||||
...SystemPrompt.summarize(model.providerID),
|
||||
|
||||
Reference in New Issue
Block a user