mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-11 02:46:47 +08:00
- Refactored token counting logic into a reusable `countXAIInputTokens` function for better readability and maintainability. - Replaced direct encoder usage with structured input handling, including JSON parsing and segment collection. - Switched tokenizer from `Cl100kBase` to `O200kBase` to support larger contexts. Closes: #4492