mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(time_to_first_token.tsx): require enterprise license for usage
This commit is contained in:
parent
3400596dd2
commit
8d1067c81c
6 changed files with 69 additions and 38 deletions
|
@ -35,8 +35,11 @@ class LicenseCheck:
|
|||
return False
|
||||
|
||||
def is_premium(self) -> bool:
|
||||
if self.license_str is None:
|
||||
try:
|
||||
if self.license_str is None:
|
||||
return False
|
||||
elif self._verify(license_str=self.license_str):
|
||||
return True
|
||||
return False
|
||||
except Exception as e:
|
||||
return False
|
||||
elif self._verify(license_str=self.license_str):
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue