Compare commits
1 Commits
scripts
...
add_tiktok
Author | SHA1 | Date | |
---|---|---|---|
![]() |
801c146348 |
100256
unit_tests/tools/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4
Normal file
100256
unit_tests/tools/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,8 @@
|
||||
import os
|
||||
import tiktoken
|
||||
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
os.environ['TIKTOKEN_CACHE_DIR'] = os.path.join(script_dir, 'tiktoken_cache')
|
||||
|
||||
def get_encoding(encoding_name: str):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user