mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix: disable 'load_dotenv' for prod environments
This commit is contained in:
parent
298fd9b25c
commit
1ab4974773
2 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,9 @@ sys.path.append(os.getcwd())
|
|||
|
||||
config_filename = "litellm.secrets"
|
||||
|
||||
load_dotenv()
|
||||
litellm_mode = os.getenv("LITELLM_PRODUCTION_MODE", "DEV") # "PRODUCTION", "DEV"
|
||||
if litellm_mode == "DEV":
|
||||
load_dotenv()
|
||||
from importlib import resources
|
||||
import shutil
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue