Skip to content

Commit

Permalink
fix: export encodeGenerator (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsteven authored Apr 18, 2023
1 parent 30d5c41 commit 7b9e7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function bpe(token: string, cache: Map<string, string> = new Map()): string {
return result
}

function* encodeGenerator(
export function* encodeGenerator(
text: string,
cache: Map<string, string> = new Map(),
): Generator<number[], void, undefined> {
Expand Down

0 comments on commit 7b9e7fd

Please sign in to comment.