mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix(aws_secret_manager.py): fix litellm license check
This commit is contained in:
parent
19c982d0f9
commit
a3e9bc4ae2
1 changed files with 7 additions and 1 deletions
|
|
@ -79,7 +79,13 @@ class AWSKeyManagementService_V2:
|
|||
raise ValueError("Missing required environment variable - AWS_REGION_NAME")
|
||||
|
||||
## CHECK IF LICENSE IN ENV ## - premium feature
|
||||
if os.getenv("LITELLM_LICENSE", None) is None:
|
||||
is_litellm_license_in_env: bool = False
|
||||
|
||||
if os.getenv("LITELLM_LICENSE", None) is not None:
|
||||
is_litellm_license_in_env = True
|
||||
elif os.getenv("LITELLM_SECRET_AWS_KMS_LITELLM_LICENSE", None) is not None:
|
||||
is_litellm_license_in_env = True
|
||||
if is_litellm_license_in_env is False:
|
||||
raise ValueError(
|
||||
"AWSKeyManagementService V2 is an Enterprise Feature. Please add a valid LITELLM_LICENSE to your envionment."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue