mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
(docs) azure
This commit is contained in:
parent
a0b42d84f3
commit
2bdf16dac9
1 changed files with 13 additions and 0 deletions
|
|
@ -26,4 +26,17 @@ messages = [{ "content": "Hello, how are you?","role": "user"}]
|
|||
|
||||
# azure call
|
||||
response = completion("azure/<your_deployment_name>", messages)
|
||||
```
|
||||
|
||||
### Set API Key, API Base, API Version in Completion()
|
||||
|
||||
```python
|
||||
import litellm
|
||||
response = litellm.completion(
|
||||
model = "azure/<your deployment name>", # model = azure/<your deployment name>
|
||||
api_base = "", # azure api base
|
||||
api_version = "", # azure api version
|
||||
api_key = "", # azure api key
|
||||
messages = [{"role": "user", "content": "good morning"}],
|
||||
)
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue