Tok - مُقدّر الرموز

أداة تقدير رموز تحت الميكروثانية تدعم 100+ نماذج ذكاء اصطناعي. تتعامل مع مطالبات بحجم ميغابايت مع اعتمادات منخفضة وصيغة متوسط للتوافق بين النماذج.

2025ابتكار الذكاء الاصطناعيPublished

الميزات الرئيسية

  • 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

الأثر

- **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

مكدس التكنولوجيا

المكدس الأساسي

TypeScriptJavaScriptNode.js
  • TypeScript/JavaScript
  • Node.js 18.0.0+
  • Plugin-based provider system
  • Averaging formula for token estimation

العلامات

الذكاء الاصطناعيتقدير الرموزتحسين التكلفةLLM-costsأصغر من الميكروثانيةمتعدد الموفرينخفيف الوزنOpenAIAnthropicClaudeGPT-4أدوات المطورحزمة npm