mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Improve code formatting and allow configurable litellm config path via environment variable.
This commit is contained in:
parent
a9ebf1b6ab
commit
52fdfe5819
2 changed files with 16 additions and 14 deletions
|
@ -9,7 +9,7 @@ import operator
|
|||
config_filename = "litellm.secrets.toml"
|
||||
# Using appdirs to determine user-specific config path
|
||||
config_dir = appdirs.user_config_dir("litellm")
|
||||
user_config_path = os.path.join(config_dir, config_filename)
|
||||
user_config_path = os.getenv("LITELLM_CONFIG_PATH", os.path.join(config_dir, config_filename))
|
||||
|
||||
load_dotenv()
|
||||
from importlib import resources
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue