mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-26 02:20:11 +00:00
- Add OpenAITokenCounter using POST /v1/responses/input_tokens endpoint - Add litellm.acount_tokens() public async API that auto-routes to provider APIs - Add proxy endpoint POST /v1/responses/input_tokens for OpenAI-compatible counting - Transform chat tools format to Responses API format for correct token counting - Fall back to local tiktoken when provider API unavailable Fixes #22302