mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
chore: format code
This commit is contained in:
parent
e45e94634f
commit
2bcc00dbf0
2 changed files with 6 additions and 2 deletions
|
|
@ -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" &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue