MCPcopy
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

1import assert from "node:assert";
2import { parentPort } from "node:worker_threads";
3import { Tokenizer, models } from "ai-tokenizer";
4import type { ModelName } from "ai-tokenizer";

Callers

nothing calls this directly

Calls 5

getErrorMessageFunction · 0.90
encodingNameFunction · 0.85
onMethod · 0.80
countTokensFunction · 0.70
postMessageMethod · 0.45

Tested by

no test coverage detected