immediately return initialed tiktokenizer instance and remove dead code in usage of tiktokenizer (#17957)

This commit is contained in:
Bowen Liang 2025-04-30 16:07:20 +08:00 committed by GitHub
commit 12c96b93d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 73 deletions

View file

@ -77,7 +77,7 @@ dependencies = [
"sentry-sdk[flask]~=1.44.1",
"sqlalchemy~=2.0.29",
"starlette==0.41.0",
"tiktoken~=0.8.0",
"tiktoken~=0.9.0",
"tokenizers~=0.15.0",
"transformers~=4.35.0",
"unstructured[docx,epub,md,ppt,pptx]~=0.16.1",