mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-23 09:39:19 +00:00
Do not override TIKTOKEN_CACHE_DIR if the user has set it
This commit is contained in:
parent
b7ee43788d
commit
8f42012a9e
@ -24,4 +24,5 @@ os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
|
||||
# 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"
|
||||
# Only set to cache within the repo if the user has not declared a cache path
|
||||
os.environ.setdefault("TIKTOKEN_CACHE_DIR", "tiktoken_cache")
|
||||
|
Loading…
Reference in New Issue
Block a user