Опубликовано
Tok - Оценщик токенов
Инструмент для оценки токенов с субмикросекундной точностью, поддерживающий 100+ ИИ‑моделей. Обрабатывает запросы размером в мегабайты с минимальными зависимостями и формулой усреднения для совместимости между моделями.
Влияние
- Sub-microsecond performance for instant token estimation
- 100+ model support through averaging formula approach
- MB-scale prompt handling with minimal dependencies
- 20MB size reduction by removing TIC token dependency
- Developer Efficiency: Instant cost visibility prevents budget overruns
- Enterprise Ready: Supports programmatic budget management
- Global Adoption: Used worldwide via npm registry
- Performance Optimization: Trade-off of precision for significant performance gains
Основные функции
- Multi-provider support: 'OpenAI, Anthropic, OpenRouter, Llama models'
- Enterprise features: Per-million token pricing with separate prompt/completion rates
- Lightweight design: Minimal dependencies for maximum performance
Продолжить чтение