diff --git a/.env.example b/.env.example index d99c05d37..c87c2ef8f 100644 --- a/.env.example +++ b/.env.example @@ -19,4 +19,4 @@ REPLICATE_API_TOKEN = "" # Anthropic ANTHROPIC_API_KEY = "" # Infisical -INFISICAL_TOKEN = "" \ No newline at end of file +INFISICAL_TOKEN = "" diff --git a/litellm/main.py b/litellm/main.py index 4de27dee1..f12725e61 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -214,6 +214,7 @@ def completion( ): # allow user to make an openai call with a custom base openai.api_type = "openai" # note: if a user sets a custom base - we should ensure this works + # allow for the setting of dynamic and stateful api-bases api_base = ( custom_api_base or litellm.api_base or get_secret("OPENAI_API_BASE") or "https://api.openai.com/v1" )