Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/continuedev/continue
/ tokenizer.test.ts
File
tokenizer.test.ts
extensions/cli/src/util/tokenizer.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ ModelConfig } from
"@continuedev/config-yaml"
;
2
import
type
{ ChatHistoryItem } from
"core/index.js"
;
3
import
{ beforeEach, describe, expect, it, vi } from
"vitest"
;
4
Callers
nothing calls this directly
Calls
10
getModelContextLimit
Function · 0.85
countChatHistoryItemTokens
Function · 0.85
countChatHistoryTokens
Function · 0.85
calculateContextUsagePercentage
Function · 0.85
createModel
Function · 0.85
calculateThreshold
Function · 0.85
createChatHistory
Function · 0.85
shouldAutoCompact
Function · 0.85
countToolDefinitionTokens
Function · 0.85
mock
Method · 0.80
Tested by
no test coverage detected