mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
docs update
This commit is contained in:
parent
7a9ab0da9b
commit
b4456a0f0f
1 changed files with 16 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ See our live dashboard 👉 [admin.litellm.ai](https://admin.litellm.ai/)
|
|||
|
||||
## Persisting your dashboard
|
||||
If you want to use the same dashboard for your project set
|
||||
`litellm.token` in code or your .env as `LITELLM_TOKEN
|
||||
`litellm.token` in code or your .env as `LITELLM_TOKEN`
|
||||
All generated dashboards come with a token
|
||||
```python
|
||||
import litellm
|
||||
|
|
@ -60,8 +60,23 @@ Navigate to the 'Add New LLM' Section:
|
|||
* Select Provider
|
||||
* Select your LLM
|
||||
* Add your LLM Key
|
||||
|
||||
<Image img={require('../../img/add_model.png')} alt="Dashboard" />
|
||||
|
||||
After adding your new LLM, LiteLLM securely stores your API key and model configs.
|
||||
## Using `completion() with LiteLLM Client
|
||||
Once you've added your selected models LiteLLM allows you to make `completion` calls
|
||||
|
||||
```python
|
||||
import litellm
|
||||
from litellm import completion
|
||||
litellm.token = "80888ede-4881-4876-ab3f-765d47282e66" # set your token
|
||||
messages = [{ "content": "Hello, how are you?" ,"role": "user"}]
|
||||
|
||||
# no need to set key, LiteLLM Client reads your set key
|
||||
response = completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}])
|
||||
```
|
||||
|
||||
|
||||
## LiteLLM Dashboard - Debug Logs
|
||||
All your `completion()` and `embedding()` call logs are available on `admin.litellm.ai/<your-token>`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue