continue-custom/core
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
..
.vscode 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
__mocks__/@continuedev/fetch llm pre-fetch tests: nested dependency mocks for continue fetch 2025-06-06 17:39:28 -07:00
autocomplete Merge pull request #8367 from Ayyanaruto/f/optimize-autocompletelru-cache 2025-11-18 18:26:45 -08:00
codeRenderer feat: next edit char-level diff (#7776) 2025-09-19 00:25:33 -07:00
commands chore: mcp 1.24.0 (#8974) 2025-12-04 12:58:28 -08:00
config support relative path for workspace dirs 2026-01-15 19:00:09 +05:30
context fix: skip cmd.exe wrapping for MCP servers when Windows host connects to WSL 2026-01-21 01:32:12 -07:00
continueServer remove legacy config.js 2025-01-24 20:45:07 -08:00
control-plane Make account level MCPs generally available (#8493) 2025-10-31 11:52:08 -07:00
data fix types 2025-08-13 22:12:33 -07:00
deploy clean up URLs 2024-10-15 12:00:05 -07:00
diff refactor: remove unused code 2025-07-28 17:10:45 -07:00
edit fix tests 2025-12-04 18:36:15 +05:30
indexing Test fix. 2025-12-11 03:16:59 +07:00
llm Move getAdjustedTokenCountFromModel from CLI to core 2026-01-28 06:27:16 +00:00
nextEdit add current file path to prompt 2025-12-04 12:37:53 -08:00
promptFiles fix: show md rules and prompts in respective sections (#8178) 2025-10-27 15:25:03 -07:00
protocol provision to delete rule file 2026-01-16 15:51:42 +05:30
tag-qry 🚧 WIP on indexing for code context provider 2024-03-03 20:22:08 -05:00
test Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00
tools fix: support object-type arguments in tool call parsing 2026-01-21 18:16:12 +08:00
util Merge pull request #9576 from uinstinct/remove-rule-button 2026-01-22 14:49:34 -08:00
utils prettier and code cleanup 2025-07-13 14:47:54 -07:00
vendor fix: upgrade @huggingface/jinja from 0.1.3 to 0.5.3 2026-01-24 07:46:52 +00:00
.eslintrc.json chore: ignore max-lines-per-function in tests (#6825) 2025-07-28 09:04:13 -07:00
.gitignore feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
.npmignore 🔥 add tests to .npmignore 2024-03-19 12:54:17 -07:00
core.ts verify that deleted filepath is a rules file 2026-01-19 19:48:07 +05:30
index.d.ts add provision to remove a file from ide 2026-01-16 15:42:30 +05:30
jest.config.js Reapply "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 14:15:49 -07:00
package-lock.json chore(deps): bump lodash from 4.17.21 to 4.17.23 in /core 2026-01-23 21:08:16 +00:00
package.json chore(deps): bump diff from 7.0.0 to 8.0.3 in /core 2026-01-15 07:51:58 +00:00
rules.md new rules 2025-06-20 16:06:03 -07:00
tsconfig.json feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
tsconfig.npm.json ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
vitest.config.ts test only .vitest.ts files 2025-06-17 10:28:02 +05:30