MCPcopy
hub / github.com/continuedev/continue / encode

Method encode

core/llm/countTokens.ts:43–45  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

41 async close(): Promise<void> {}
42
43 async encode(text: string): Promise<number[]> {
44 return this.encoding.encode(text);
45 }
46
47 async decode(tokens: number[]): Promise<string> {
48 return this.encoding.decode(tokens);

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected