mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
acreate thin-client
This commit is contained in:
parent
29daeddb41
commit
3d9518abbb
7 changed files with 27 additions and 10 deletions
|
@ -3,14 +3,14 @@ import requests, traceback, json, os
|
|||
class LiteDebugger:
|
||||
user_email = None
|
||||
dashboard_url = None
|
||||
def __init__(self):
|
||||
def __init__(self, email=None):
|
||||
self.api_url = "https://api.litellm.ai/debugger"
|
||||
self.validate_environment()
|
||||
self.validate_environment(email)
|
||||
pass
|
||||
|
||||
def validate_environment(self):
|
||||
def validate_environment(self, email):
|
||||
try:
|
||||
self.user_email = os.getenv("LITELLM_EMAIL")
|
||||
self.user_email = os.getenv("LITELLM_EMAIL") or email
|
||||
self.dashboard_url = 'https://admin.litellm.ai/' + self.user_email
|
||||
print(f"Here's your free Dashboard 👉 {self.dashboard_url}")
|
||||
if self.user_email == None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue