mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix checks on litellm license
This commit is contained in:
parent
2116dbcdc1
commit
50443d3d48
1 changed files with 6 additions and 3 deletions
|
@ -67,11 +67,14 @@ class LicenseCheck:
|
||||||
try:
|
try:
|
||||||
if self.license_str is None:
|
if self.license_str is None:
|
||||||
return False
|
return False
|
||||||
elif self.verify_license_without_api_request(
|
elif (
|
||||||
public_key=self.public_key, license_key=self.license_str
|
self.verify_license_without_api_request(
|
||||||
|
public_key=self.public_key, license_key=self.license_str
|
||||||
|
)
|
||||||
|
is True
|
||||||
):
|
):
|
||||||
return True
|
return True
|
||||||
elif self._verify(license_str=self.license_str):
|
elif self._verify(license_str=self.license_str) is True:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue