mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
bug fix - issue 277
This commit is contained in:
parent
3e5c972e91
commit
8f5e2d0013
2 changed files with 1 additions and 2 deletions
|
@ -1977,8 +1977,6 @@ def get_secret(secret_name):
|
|||
except:
|
||||
secret = None
|
||||
return secret
|
||||
elif litellm.api_key != None: # if users use litellm default key
|
||||
return litellm.api_key
|
||||
else:
|
||||
return os.environ.get(secret_name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue