continue-custom/packages
Nate Sesti 0a5acb1f32
feat: add token usage tracking to OpenAI adapter (#7900)
* feat: add token usage tracking to OpenAI adapter

- Modified OpenAI adapter to properly handle and emit usage chunks in streaming responses
- Added logic to store usage chunks and emit them at the end of the stream
- Verified Anthropic and Gemini adapters already have complete token usage implementations
- Added comprehensive tests for token usage tracking across all three providers
- All tests passing with provided API keys

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: tests

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-12 16:52:37 -07:00
..
config-types move context restriction properties to model level autocompleteOptions 2025-08-08 11:50:14 -04:00
config-yaml Add apiKey field to mcpServers block schema for Bearer token auth (#8120) 2025-10-08 08:33:30 -07:00
continue-sdk chore(deps): bump axios and @openapitools/openapi-generator-cli 2025-09-30 18:24:12 +00:00
fetch chore: bumps all around 2025-09-15 19:44:27 -07:00
hub chore: bumps all around 2025-09-15 19:44:27 -07:00
llm-info fix: core mcp test with invalid type 2025-09-25 17:45:57 -07:00
openai-adapters feat: add token usage tracking to OpenAI adapter (#7900) 2025-10-12 16:52:37 -07:00
terminal-security build(deps-dev): bump vite in /packages/terminal-security 2025-09-11 01:41:52 +00:00
shared-release.config.js fix prettier 2025-07-18 19:20:13 +02:00