Fix: added environment() to summarize() (#1290)

pull/1294/head^2
Filip 2025-07-25 00:24:54 +02:00 committed by GitHub
parent 4306f1a339
commit 01f75839a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1141,7 +1141,11 @@ export namespace Session {
const filtered = msgs.filter((msg) => !lastSummary || msg.info.id >= lastSummary.info.id)
const model = await Provider.getModel(input.providerID, input.modelID)
const app = App.info()
const system = [...SystemPrompt.summarize(input.providerID), ...(await SystemPrompt.custom())]
const system = [
...SystemPrompt.summarize(input.providerID),
...(await SystemPrompt.environment()),
...(await SystemPrompt.custom()),
]
const next: MessageV2.Info = {
id: Identifier.ascending("message"),