diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 22:16:39 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 22:16:39 +0900 |
| commit | 6cdbc1a645a625a7419b91ddada7ed06f475bed4 (patch) | |
| tree | 95aaa64b44d91f6906ca6b8f9ac5ab76d4d9adc3 /packages/kernel/src/runtime | |
| parent | 4a71e0672f7433f2e29df16fa2865f2702a64db2 (diff) | |
| download | dispatch-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')
0 files changed, 0 insertions, 0 deletions
