最后活跃于 1730064573

README.md 原始文件
1. Install LiteLLM. 2. Edit `venv/lib/python3.XX/site-packages/litellm/proxy/auth/litellm_license.py`
litellm_license.py 原始文件
1# What is this?
2## If litellm license in env, checks if it's valid
3import base64
4import json
5import os
6import traceback
7from datetime import datetime
8
9from litellm._logging import verbose_proxy_logger
10from litellm.llms.custom_httpx.http_handler import HTTPHandler
11
12
13class LicenseCheck:
14 """
15 - Check if license in env
16 - Returns if license is valid
17 """
18
19 base_url = "https://license.litellm.ai"
20
21 def __init__(self) -> None:
22 self.license_str = "GET FUCKED LOL"
23 verbose_proxy_logger.debug("License Str value - {}".format(self.license_str))
24 self.http_handler = HTTPHandler()
25 self.public_key = None
26 self.read_public_key()
27
28 def read_public_key(self):
29 return
30
31 def _verify(self, license_str: str) -> bool:
32 return True
33
34 def is_premium(self) -> bool:
35 return True
36
37 def verify_license_without_api_request(self, public_key, license_key):
38 return Ture