Skip to content

Commit

Permalink
Fix wrong result for None
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed Mar 5, 2023
1 parent 33207e6 commit 2370284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl Tiktoken {
._encode_native(
&text,
&allowed_tokens.iter().map(AsRef::as_ref).collect(),
Some(0),
None,
)
.0)
}
Expand Down

0 comments on commit 2370284

Please sign in to comment.