add step finish part
publish / publish (push) Has been cancelled

This commit is contained in:
Dax Raad
2025-07-10 16:21:26 -04:00
parent 0479cab022
commit 93eda31be4
4 changed files with 149 additions and 18 deletions
+5
View File
@@ -721,6 +721,11 @@ export namespace Session {
const usage = getUsage(model.info, value.usage, value.providerMetadata)
next.cost += usage.cost
next.tokens = usage.tokens
next.parts.push({
type: "step-finish",
tokens: usage.tokens,
cost: usage.cost,
})
break
case "text-start":