mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-05-20 01:09:54 +08:00
- Implemented `TokenCount` transform method across translators to calculate token usage. - Integrated token counting logic into executor pipelines for Claude, Gemini, and CLI translators. - Added corresponding API endpoints and handlers (`/messages/count_tokens`) for token usage retrieval. - Enhanced translation registry to support `TokenCount` functionality alongside existing response types.
11 KiB
11 KiB