with verbose secretmanager

This commit is contained in:
ishaan-jaff 2023-08-17 17:36:08 -07:00
parent 829a3c2bed
commit 11ea802759
4 changed files with 6 additions and 15 deletions

View file

@ -836,6 +836,8 @@ def get_secret(secret_name):
secret = litellm.secret_manager_client.get_secret(secret_name).secret_value
if secret != None:
return secret # if secret found in secret manager return it
else:
raise ValueError(f"Secret '{secret_name}' not found in secret manager")
elif litellm.api_key != None: # if users use litellm default key
return litellm.api_key
else: