docs(assistants.md): update assistants doc with azure tutorial

This commit is contained in:
Krrish Dholakia 2024-06-04 16:53:07 -07:00
parent 650ea6d0c3
commit fb12bc70c4
2 changed files with 12 additions and 5 deletions

View file

@ -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
```

View file

@ -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"],