1
0
mirror of https://github.com/imartinez/privateGPT.git synced 2025-05-03 22:06:59 +00:00

feat(local): tiktoken cache within repo for offline ()

This commit is contained in:
Arun Yadav 2024-03-12 03:25:13 +05:30 committed by GitHub
parent 02dc83e8e9
commit 821bca32e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions
private_gpt
tiktoken_cache

View File

@ -22,3 +22,6 @@ os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
# Disable chromaDB telemetry
# It is already disabled, see PR#1144
# os.environ["ANONYMIZED_TELEMETRY"] = "False"
# adding tiktoken cache path within repo to be able to run in offline environment.
os.environ["TIKTOKEN_CACHE_DIR"] = "tiktoken_cache"

2
tiktoken_cache/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore