mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 00:23:19 +00:00
docs(assistants.md): update quickstart with azure example
This commit is contained in:
@@ -34,10 +34,16 @@ Call an existing Assistant.
|
||||
from litellm import get_assistants, aget_assistants
|
||||
import os
|
||||
|
||||
# setup env
|
||||
os.environ["OPENAI_API_KEY"] = "sk-.."
|
||||
os.environ["AZURE_API_KEY"] = "sk-.."
|
||||
os.environ["AZURE_API_BASE"] = "https://..."
|
||||
os.environ["AZURE_API_VERSION"] = "2024-02-15-preview"
|
||||
|
||||
assistants = get_assistants(custom_llm_provider="openai")
|
||||
|
||||
assistants = get_assistants(custom_llm_provider="azure")
|
||||
|
||||
### ASYNC USAGE ###
|
||||
# assistants = await aget_assistants(custom_llm_provider="openai")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user