MCPcopy Index your code
hub / github.com/coder/mux / encodingName

Function encodingName

src/node/utils/main/tokenizer.worker.ts:38–42  ·  view source on GitHub ↗
(modelName: ModelName)

Source from the content-addressed store, hash-verified

36}
37
38export function encodingName(modelName: ModelName): string {
39 const model = models[modelName];
40 assert(model, `Unknown tokenizer model '${modelName}'`);
41 return model.encoding;
42}
43
44// Handle messages from main thread
45if (parentPort) {

Callers 1

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected