Skip to content

Commit 821bca3

Browse files
authored
feat(local): tiktoken cache within repo for offline (#1467)
1 parent 02dc83e commit 821bca3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

private_gpt/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
# Disable chromaDB telemetry
2323
# It is already disabled, see PR#1144
2424
# os.environ["ANONYMIZED_TELEMETRY"] = "False"
25+
26+
# adding tiktoken cache path within repo to be able to run in offline environment.
27+
os.environ["TIKTOKEN_CACHE_DIR"] = "tiktoken_cache"

tiktoken_cache/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)