mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
ignore: logs
This commit is contained in:
parent
b5f44ae13f
commit
8131bee49a
1 changed files with 4 additions and 3 deletions
|
@ -412,9 +412,7 @@ export namespace Session {
|
|||
)
|
||||
const result = streamText({
|
||||
onStepFinish: async (step) => {
|
||||
log.info("step finish", {
|
||||
finishReason: step.finishReason,
|
||||
})
|
||||
log.info("step finish", { finishReason: step.finishReason })
|
||||
const assistant = next.metadata!.assistant!
|
||||
const usage = getUsage(model.info, step.usage, step.providerMetadata)
|
||||
assistant.cost += usage.cost
|
||||
|
@ -430,6 +428,9 @@ export namespace Session {
|
|||
text = undefined
|
||||
},
|
||||
async onFinish(input) {
|
||||
log.info("message finish", {
|
||||
reason: input.finishReason,
|
||||
})
|
||||
const assistant = next.metadata!.assistant!
|
||||
const usage = getUsage(model.info, input.usage, input.providerMetadata)
|
||||
assistant.cost = usage.cost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue