continue-custom/packages/openai-adapters/src
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
..
apis feat: add token usage tracking to OpenAI adapter (#7900) 2025-10-12 16:52:37 -07:00
test feat: add token usage tracking to OpenAI adapter (#7900) 2025-10-12 16:52:37 -07:00
util append path to url if not present 2025-09-19 12:01:29 +05:30
index.ts feat: add OpenRouter API with Anthropic prompt caching support (#8100) 2025-10-05 16:09:28 -07:00
types.ts feat: add API key authentication support for Bedrock provider (#8101) 2025-10-05 16:53:49 -07:00
util.ts fix type errors 2025-08-20 22:24:40 -07:00