mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
docs
This commit is contained in:
parent
05e82b3b77
commit
34758219d2
2 changed files with 8 additions and 4 deletions
|
@ -8,8 +8,9 @@ LiteLLM offers a UI to:
|
||||||
<Image img={require('../../img/dashboard.png')} alt="Dashboard" />
|
<Image img={require('../../img/dashboard.png')} alt="Dashboard" />
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
All LiteLLM completion() calls auto-create a LiteLLM Client Dashboard
|
Make a `litellm.completion()` call 👉 get your debugging dashboard
|
||||||
Example code snippet to create your dashboard:
|
|
||||||
|
Example Code - Normal `litellm.completion()` call:
|
||||||
```python
|
```python
|
||||||
from litellm import completion
|
from litellm import completion
|
||||||
messages = [{ "content": "Hello, how are you?" ,"role": "user"}]
|
messages = [{ "content": "Hello, how are you?" ,"role": "user"}]
|
||||||
|
@ -17,8 +18,11 @@ response = completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content
|
||||||
```
|
```
|
||||||
|
|
||||||
### Output with dashboard
|
### Output with dashboard
|
||||||
All completion calls link to your session dashboard
|
All `completion()` calls print with a link to your session dashboard
|
||||||
```
|
|
||||||
|
<Image img={require('../../img/dash_output.png')} alt="Dashboard" />
|
||||||
|
|
||||||
|
```bash
|
||||||
Here's your LiteLLM Dashboard 👉 https://admin.litellm.ai/88911906-d786-44f2-87c7-9720e6031b45
|
Here's your LiteLLM Dashboard 👉 https://admin.litellm.ai/88911906-d786-44f2-87c7-9720e6031b45
|
||||||
<OpenAIObject chat.completion id=chatcmpl-7r6LtlUXYYu0QayfhS3S0OzroiCel at 0x7fb307375030> JSON: {
|
<OpenAIObject chat.completion id=chatcmpl-7r6LtlUXYYu0QayfhS3S0OzroiCel at 0x7fb307375030> JSON: {
|
||||||
"id": "chatcmpl-7r6LtlUXYYu0QayfhS3S0OzroiCel",
|
"id": "chatcmpl-7r6LtlUXYYu0QayfhS3S0OzroiCel",
|
||||||
|
|
BIN
docs/my-website/img/dash_output.png
Normal file
BIN
docs/my-website/img/dash_output.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 KiB |
Loading…
Add table
Add a link
Reference in a new issue