mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
docs(assistants.md): update assistants doc with azure tutorial
This commit is contained in:
parent
650ea6d0c3
commit
fb12bc70c4
2 changed files with 12 additions and 5 deletions
|
|
@ -135,10 +135,17 @@ print(f"run_thread: {run_thread}")
|
|||
</TabItem>
|
||||
<TabItem value="proxy" label="PROXY">
|
||||
|
||||
```bash
|
||||
$ export OPENAI_API_KEY="sk-..."
|
||||
```yaml
|
||||
assistant_settings:
|
||||
custom_llm_provider: azure
|
||||
litellm_params:
|
||||
api_key: os.environ/AZURE_API_KEY
|
||||
api_base: os.environ/AZURE_API_BASE
|
||||
api_version: os.environ/AZURE_API_VERSION
|
||||
```
|
||||
|
||||
$ litellm
|
||||
```bash
|
||||
$ litellm --config /path/to/config.yaml
|
||||
|
||||
# RUNNING on http://0.0.0.0:4000
|
||||
```
|
||||
|
|
|
|||
|
|
@ -6039,12 +6039,12 @@ async def get_messages(
|
|||
)
|
||||
|
||||
|
||||
@router.get(
|
||||
@router.post(
|
||||
"/v1/threads/{thread_id}/runs",
|
||||
dependencies=[Depends(user_api_key_auth)],
|
||||
tags=["assistants"],
|
||||
)
|
||||
@router.get(
|
||||
@router.post(
|
||||
"/threads/{thread_id}/runs",
|
||||
dependencies=[Depends(user_api_key_auth)],
|
||||
tags=["assistants"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue