Skip to content

Commit

Permalink
chore: use tiktoken to calcualte token length
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Nov 15, 2024
1 parent 6402015 commit 40ce4a8
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 139 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions services/appflowy-collaborate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ itertools = "0.12.0"
validator = "0.16.1"
rayon.workspace = true
tiktoken-rs = "0.6.0"
unicode-segmentation = "1.9.0"
unicode-normalization = "0.1.24"

[dev-dependencies]
rand = "0.8.5"
workspace-template.workspace = true
unicode-normalization = "0.1.24"
Loading

0 comments on commit 40ce4a8

Please sign in to comment.