summaryrefslogtreecommitdiffhomepage
path: root/packages/kernel/src/runtime/dispatch.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-21 22:16:39 +0900
committerAdam Malczewski <[email protected]>2026-06-21 22:16:39 +0900
commit6cdbc1a645a625a7419b91ddada7ed06f475bed4 (patch)
tree95aaa64b44d91f6906ca6b8f9ac5ab76d4d9adc3 /packages/kernel/src/runtime/dispatch.ts
parent4a71e0672f7433f2e29df16fa2865f2702a64db2 (diff)
downloaddispatch-6cdbc1a645a625a7419b91ddada7ed06f475bed4.tar.gz
dispatch-6cdbc1a645a625a7419b91ddada7ed06f475bed4.zip
fix(openai-stream): omit usage attrs from spans when provider doesn't report
When a provider doesn't include a usage field in the SSE stream, the span attributes (usage.inputTokens, usage.outputTokens) are now absent instead of defaulting to 0. This makes it clear in the journal that the provider didn't report usage, rather than looking like 0 tokens were used.
Diffstat (limited to 'packages/kernel/src/runtime/dispatch.ts')
0 files changed, 0 insertions, 0 deletions