Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/continuedev/continue
/ encode
Method
encode
core/llm/asyncEncoder.ts:6–6 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
4
5
export
interface
AsyncEncoder {
6
encode(text: string): Promise<number[]>;
7
decode(tokens: number[]): Promise<string>;
8
close(): Promise<void>;
9
}
Callers
15
start
Function · 0.65
encode
Method · 0.65
encode
Method · 0.65
countTokensAsync
Function · 0.65
countTokens
Function · 0.65
count
Function · 0.65
pruneStringFromBottom
Function · 0.65
pruneStringFromTop
Function · 0.65
mapCharactersToTokenIds
Method · 0.65
decode
Method · 0.65
testCase
Method · 0.65
asyncEncoder.test.ts
File · 0.65
Implementers
3
LlamaAsyncEncoder
core/llm/asyncEncoder.ts
GPTAsyncEncoder
core/llm/asyncEncoder.ts
NonWorkerAsyncEncoder
core/llm/countTokens.ts
Calls
no outgoing calls
Tested by
no test coverage detected