continue-custom/packages
continue[bot] 7d3fa6daa9 fix(openai-adapters): Add defensive type checks for stream.usage Promise
Added type validation for stream.usage values to prevent NaN:
- Check if promptTokens is a number before using
- Check if completionTokens is a number before using
- Calculate totalTokens from components if not provided
- Default to 0 for any undefined/invalid values

This prevents NaN errors when stream.usage Promise resolves with
unexpected/undefined values in the fallback path.

Co-authored-by: nate <nate@continue.dev>
Generated with [Continue](https://continue.dev)
2025-12-10 19:50:18 +00:00
..
config-types fix: upgrade zod from 3.24.2 to 3.25.76 2025-11-04 07:18:35 +00:00
config-yaml merge main 2025-12-02 12:25:02 -08:00
continue-sdk fix: packages/continue-sdk/python/api/requirements.txt to reduce vulnerabilities 2025-12-08 08:04:54 +00:00
fetch feat: simplify onboarding 2025-12-03 16:21:28 -08:00
hub chore: config yaml 36, fetch 6 (#8906) 2025-12-01 11:27:26 -08:00
llm-info merge main 2025-12-02 12:25:02 -08:00
openai-adapters fix(openai-adapters): Add defensive type checks for stream.usage Promise 2025-12-10 19:50:18 +00:00
terminal-security style: run prettier on terminal security code 2025-10-30 00:56:55 +00:00
shared-release.config.js fix prettier 2025-07-18 19:20:13 +02:00