Skip to content

Commit 7156b1d

Browse files
authored
Update code-create-embeddings-client.md
1 parent 98d5cfa commit 7156b1d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

articles/ai-foundry/model-inference/includes/code-create-embeddings-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 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
@@ -132,7 +129,7 @@ __Request__
132129

133130
```HTTP/1.1
134131
POST https://<resource>.services.ai.azure.com/models/embeddings?api-version=2024-05-01-preview
135-
Authorization: Bearer <bearer-token>
132+
api-key: <api-key>
136133
Content-Type: application/json
137134
```
138-
---
135+
---

0 commit comments

Comments
 (0)