mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
68d1af1838
commit
77676fa94e
1 changed files with 1 additions and 8 deletions
|
|
@ -352,10 +352,6 @@ export namespace Session {
|
|||
const model = await Provider.getModel(input.providerID, input.modelID)
|
||||
let msgs = await messages(input.sessionID)
|
||||
const session = await get(input.sessionID)
|
||||
<<<<<<< Updated upstream
|
||||
|
||||
=======
|
||||
>>>>>>> Stashed changes
|
||||
const previous = msgs.filter((x) => x.info.role === "assistant").at(-1)?.info as MessageV2.Assistant
|
||||
const outputLimit = Math.min(model.info.limit.output, OUTPUT_TOKEN_MAX) || OUTPUT_TOKEN_MAX
|
||||
|
||||
|
|
@ -950,10 +946,8 @@ export namespace Session {
|
|||
}
|
||||
}
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
export async function revert(_input: { sessionID: string; messageID: string; part: number }) {}
|
||||
=======
|
||||
export async function revert(input: { sessionID: string; messageID: string; partID: string }) {
|
||||
const all = await messages(input.sessionID)
|
||||
const message = await getMessage(input.sessionID, input.messageID)
|
||||
const parts = await getParts(input.sessionID, input.messageID)
|
||||
const index = parts.findIndex((x) => x.id === input.partID)
|
||||
|
|
@ -989,7 +983,6 @@ export namespace Session {
|
|||
})
|
||||
*/
|
||||
}
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
export async function summarize(input: { sessionID: string; providerID: string; modelID: string }) {
|
||||
using abort = lock(input.sessionID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue