Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/coder/mux
/ tokenizer.worker.ts
File
tokenizer.worker.ts
src/node/utils/main/tokenizer.worker.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
assert from
"node:assert"
;
2
import
{ parentPort } from
"node:worker_threads"
;
3
import
{ Tokenizer, models } from
"ai-tokenizer"
;
4
import
type
{ ModelName } from
"ai-tokenizer"
;
Callers
nothing calls this directly
Calls
5
getErrorMessage
Function · 0.90
encodingName
Function · 0.85
on
Method · 0.80
countTokens
Function · 0.70
postMessage
Method · 0.45
Tested by
no test coverage detected