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

Method encode

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

Source from the content-addressed store, hash-verified

27
28class LlamaEncoding implements Encoding {
29 encode(text: string): number[] {
30 return llamaTokenizer.encode(text);
31 }
32
33 decode(tokens: number[]): string {
34 return llamaTokenizer.decode(tokens);

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected