The Vercel AI SDK's fullStream may emit a finish event with incomplete or zero usage data. The correct usage is available via the stream.usage Promise which resolves after the stream completes. Changed strategy: - convertVercelStream now skips the finish event entirely (returns null) - After consuming fullStream, we await stream.usage Promise - Emit usage chunk with complete data from the Promise This fixes the "expected 0 to be greater than 0" test failures. Co-authored-by: nate <nate@continue.dev> Generated with [Continue](https://continue.dev) |
||
|---|---|---|
| .. | ||
| config-types | ||
| config-yaml | ||
| continue-sdk | ||
| fetch | ||
| hub | ||
| llm-info | ||
| openai-adapters | ||
| terminal-security | ||
| shared-release.config.js | ||