forked from phoenix/litellm-mirror
docs(assistants.md): update quickstart with azure example
This commit is contained in:
parent
a804dfd1b6
commit
eaa5e0f747
1 changed files with 6 additions and 0 deletions
|
@ -34,10 +34,16 @@ Call an existing Assistant.
|
||||||
from litellm import get_assistants, aget_assistants
|
from litellm import get_assistants, aget_assistants
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
# setup env
|
||||||
os.environ["OPENAI_API_KEY"] = "sk-.."
|
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="openai")
|
||||||
|
|
||||||
|
assistants = get_assistants(custom_llm_provider="azure")
|
||||||
|
|
||||||
### ASYNC USAGE ###
|
### ASYNC USAGE ###
|
||||||
# assistants = await aget_assistants(custom_llm_provider="openai")
|
# assistants = await aget_assistants(custom_llm_provider="openai")
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue