Skip to content

Commit

Permalink
feat(local): tiktoken cache within repo for offline (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadav-arun authored Mar 11, 2024
1 parent 02dc83e commit 821bca3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions private_gpt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@
# 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 changes: 2 additions & 0 deletions tiktoken_cache/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 821bca3

Please sign in to comment.