File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
articles/ai-foundry/model-inference/includes Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,9 @@ author: santiagxf
12
12
Install the package ` azure-ai-inference ` using your package manager, like pip:
13
13
14
14
``` bash
15
- pip install azure-ai-inference> =1.0.0b5
15
+ pip install azure-ai-inference
16
16
```
17
17
18
- > [ !WARNING]
19
- > Azure AI Services resource requires the version ` azure-ai-inference>=1.0.0b5 ` for Python.
20
-
21
18
Then, you can use the package to consume the model. The following example shows how to create a client to consume chat completions:
22
19
23
20
``` python
@@ -132,7 +129,7 @@ __Request__
132
129
133
130
``` HTTP/1.1
134
131
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 >
136
133
Content-Type: application/json
137
134
```
138
- ---
135
+ ---
You can’t perform that action at this time.
0 commit comments