diff --git a/litellm/main.py b/litellm/main.py index eaad2226178..bf4132863d3 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -805,7 +805,6 @@ def completion( or None # default - https://github.com/openai/openai-python/blob/284c1799070c723c6a553337134148a7ab088dd8/openai/util.py#L105 ) # set API KEY - api_key = ( api_key or litellm.api_key # for deepinfra/perplexity/anyscale we check in get_llm_provider and pass in the api key from there