forked from phoenix/litellm-mirror
updating docs
This commit is contained in:
parent
b47cb95b90
commit
a00fa60080
2 changed files with 10 additions and 21 deletions
|
@ -1,42 +1,31 @@
|
||||||
import Image from '@theme/IdealImage';
|
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 UI to debug your calls + add new models at (https://admin.litellm.ai/). This is useful if you're testing your LiteLLM server and need to see if the API calls were made successfully **or** want to add new models without going into code.
|
||||||
|
|
||||||
**Needs litellm>=0.1.438***
|
**Needs litellm>=0.1.438***
|
||||||
|
|
||||||
You can enable this setting `litellm.debugger=True`.
|
## Setup
|
||||||
|
|
||||||
|
Once created, your dashboard is viewable at - `admin.litellm.ai/<your_email>` [👋 Tell us if you need better privacy controls](https://calendly.com/d/4mp-gd3-k5k/berriai-1-1-onboarding-litellm-hosted-version?month=2023-08)
|
||||||
|
|
||||||
|
You can set your user email in 2 ways.
|
||||||
|
- By setting it on the module - `litellm.email=<your_email>`.
|
||||||
|
- By setting it as an environment variable - `os.environ["LITELLM_EMAIL"] = "your_email"`.
|
||||||
|
|
||||||
<Image img={require('../../img/dashboard.png')} alt="Dashboard" />
|
<Image img={require('../../img/dashboard.png')} alt="Dashboard" />
|
||||||
|
|
||||||
See our live dashboard 👉 [admin.litellm.ai](https://admin.litellm.ai/)
|
See our live dashboard 👉 [admin.litellm.ai](https://admin.litellm.ai/)
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
By default, your dashboard is viewable at `admin.litellm.ai/<your_email>`.
|
|
||||||
|
|
||||||
```
|
|
||||||
import litellm, os
|
|
||||||
|
|
||||||
## Set your email
|
|
||||||
os.environ["LITELLM_EMAIL"] = "your_user_email"
|
|
||||||
|
|
||||||
## Set debugger to true
|
|
||||||
litellm.debugger = True
|
|
||||||
```
|
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
import litellm
|
import litellm
|
||||||
from litellm import embedding, completion
|
from litellm import embedding, completion
|
||||||
import os
|
|
||||||
|
|
||||||
## Set ENV variable
|
|
||||||
os.environ["LITELLM_EMAIL"] = "your_email"
|
|
||||||
|
|
||||||
## Set debugger to true
|
## Set your email
|
||||||
litellm.debugger = True
|
litellm.email = "test_email@test.com"
|
||||||
|
|
||||||
user_message = "Hello, how are you?"
|
user_message = "Hello, how are you?"
|
||||||
messages = [{ "content": user_message,"role": "user"}]
|
messages = [{ "content": user_message,"role": "user"}]
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 534 KiB After Width: | Height: | Size: 523 KiB |
Loading…
Add table
Add a link
Reference in a new issue