mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
chore: format code
This commit is contained in:
@@ -111,7 +111,9 @@ export namespace SessionCompaction {
|
||||
draft.time.compacting = undefined
|
||||
})
|
||||
})
|
||||
const toSummarize = await Session.messages({ sessionID: input.sessionID }).then(MessageV2.filterCompacted)
|
||||
const toSummarize = await Session.messages({ sessionID: input.sessionID }).then(
|
||||
MessageV2.filterCompacted,
|
||||
)
|
||||
const model = await Provider.getModel(input.providerID, input.modelID)
|
||||
const system = [
|
||||
...SystemPrompt.summarize(model.providerID),
|
||||
|
||||
@@ -434,7 +434,9 @@ export namespace SessionPrompt {
|
||||
providerID: string
|
||||
signal: AbortSignal
|
||||
}) {
|
||||
let msgs = await Session.messages({ sessionID: input.sessionID }).then(MessageV2.filterCompacted)
|
||||
let msgs = await Session.messages({ sessionID: input.sessionID }).then(
|
||||
MessageV2.filterCompacted,
|
||||
)
|
||||
const lastAssistant = msgs.findLast((msg) => msg.info.role === "assistant")
|
||||
if (
|
||||
lastAssistant?.info.role === "assistant" &&
|
||||
|
||||
Reference in New Issue
Block a user