Skip to content

Commit 8691dfc

Browse files
authored
Update code-create-chat-client.md
1 parent bdca7d7 commit 8691dfc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

articles/ai-foundry/model-inference/includes/code-create-chat-client.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ author: santiagxf
1212
Install the package `azure-ai-inference` using your package manager, like pip:
1313

1414
```bash
15-
pip install azure-ai-inference>=1.0.0b5
15+
pip install -U azure-ai-inference
1616
```
1717

18-
> [!WARNING]
19-
> Azure AI Services resource requires the version `azure-ai-inference>=1.0.0b5` for Python.
20-
2118
Then, you can use the package to consume the model. The following example shows how to create a client to consume chat completions:
2219

2320
```python
@@ -115,7 +112,7 @@ __Request__
115112

116113
```HTTP/1.1
117114
POST https://<resource>.services.ai.azure.com/models/chat/completions?api-version=2024-05-01-preview
118-
Authorization: Bearer <bearer-token>
115+
api-key: <api-key>
119116
Content-Type: application/json
120117
```
121-
---
118+
---

0 commit comments

Comments
 (0)