continue-custom/extensions
RomneyDa 8da07defb4 Move getAdjustedTokenCountFromModel from CLI to core
- Moved getAdjustedTokenCountFromModel function from CLI tokenizer to core/llm/countTokens.ts
- Updated core countTokens() to use getAdjustedTokenCountFromModel for all models
- Added comprehensive tests for getAdjustedTokenCountFromModel in core
- Updated CLI tokenizer to import getAdjustedTokenCountFromModel from core
- Removed duplicate implementation and constants from CLI

This consolidates the token adjustment logic in one place and ensures
consistent token counting across CLI and core. The llama tokenizer is
now used for all models with appropriate multipliers for Claude (1.23x),
Gemini (1.18x), and Mistral family (1.26x) models.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: dallin <dallin@continue.dev>
2026-01-28 06:27:16 +00:00
..
cli Move getAdjustedTokenCountFromModel from CLI to core 2026-01-28 06:27:16 +00:00
intellij chore: vscode 30, jetbrains 59 2026-01-23 12:24:16 -08:00
vscode Merge pull request #9832 from continuedev/dallin/vs30jb59 2026-01-26 12:57:29 -08:00