forked from phoenix/litellm-mirror
add dashboard link in init
This commit is contained in:
parent
bee0b9f171
commit
9922e1032f
3 changed files with 5 additions and 2 deletions
|
@ -3,6 +3,8 @@ import Image from '@theme/IdealImage';
|
||||||
# Debugging Dashboard
|
# Debugging Dashboard
|
||||||
LiteLLM offers a free hosted debugger UI for your api calls (https://admin.litellm.ai/). Useful if you're testing your LiteLLM server and need to see if the API calls were made successfully.
|
LiteLLM offers a free hosted debugger UI for your api calls (https://admin.litellm.ai/). Useful if you're testing your LiteLLM server and need to see if the API calls were made successfully.
|
||||||
|
|
||||||
|
**Needs litellm>=0.1.438***
|
||||||
|
|
||||||
You can enable this setting `lite_debugger` as a callback.
|
You can enable this setting `lite_debugger` as a callback.
|
||||||
|
|
||||||
<Image img={require('../../img/dashboard.png')} alt="Dashboard" />
|
<Image img={require('../../img/dashboard.png')} alt="Dashboard" />
|
||||||
|
@ -11,7 +13,7 @@ See our live dashboard 👉 [admin.litellm.ai](https://admin.litellm.ai/)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
By default, your dashboard is viewable at `admin.litellm.ai/<your_email>`
|
By default, your dashboard is viewable at `admin.litellm.ai/<your_email>`.
|
||||||
|
|
||||||
```
|
```
|
||||||
## Set your email
|
## Set your email
|
||||||
|
|
|
@ -10,6 +10,7 @@ class LiteDebugger:
|
||||||
def validate_environment(self):
|
def validate_environment(self):
|
||||||
try:
|
try:
|
||||||
self.user_email = os.getenv("LITELLM_EMAIL")
|
self.user_email = os.getenv("LITELLM_EMAIL")
|
||||||
|
print(f"Here's your free Dashboard 👉 {'https://admin.litellm.ai/' + self.user_email}")
|
||||||
if self.user_email == None:
|
if self.user_email == None:
|
||||||
raise Exception("[Non-Blocking Error] LiteLLMDebugger: Missing LITELLM_EMAIL. Set it in your environment. Eg.: os.environ['LITELLM_EMAIL']= <your_email>")
|
raise Exception("[Non-Blocking Error] LiteLLMDebugger: Missing LITELLM_EMAIL. Set it in your environment. Eg.: os.environ['LITELLM_EMAIL']= <your_email>")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "litellm"
|
name = "litellm"
|
||||||
version = "0.1.438"
|
version = "0.1.439"
|
||||||
description = "Library to easily interface with LLM API providers"
|
description = "Library to easily interface with LLM API providers"
|
||||||
authors = ["BerriAI"]
|
authors = ["BerriAI"]
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue