Skip to content

Commit e7ba6b5

Browse files
authored
Update rest.md
1 parent 384687b commit e7ba6b5

File tree

1 file changed

+6
-6
lines changed
  • articles/ai-foundry/model-inference/includes/use-image-embeddings

1 file changed

+6
-6
lines changed

articles/ai-foundry/model-inference/includes/use-image-embeddings/rest.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ To use embedding models in your application, you need:
3333
To use the text embeddings, use the route `/images/embeddings` appended to your base URL along with your credential indicated in `api-key`. `Authorization` header is also supported with the format `Bearer <key>`.
3434

3535
```http
36-
POST https://<resource>.services.ai.azure.com/models/images/embeddings
36+
POST https://<resource>.services.ai.azure.com/models/images/embeddings?api-version=2024-05-01-preview
3737
Content-Type: application/json
3838
api-key: <key>
3939
```
4040

4141
If you configured the resource with **Microsoft Entra ID** support, pass you token in the `Authorization` header:
4242

4343
```http
44-
POST https://<resource>.services.ai.azure.com/models/images/embeddings
44+
POST https://<resource>.services.ai.azure.com/models/images/embeddings?api-version=2024-05-01-preview
4545
Content-Type: application/json
4646
Authorization: Bearer <token>
4747
```
@@ -52,7 +52,7 @@ To create image embeddings, you need to pass the image data as part of your requ
5252

5353
```json
5454
{
55-
"model": "${varients-sample}",
55+
"model": "Cohere-embed-v3-english",
5656
"input": [
5757
{
5858
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUh..."
@@ -103,7 +103,7 @@ Some models can generate embeddings from images and text pairs. In this case, yo
103103

104104
```json
105105
{
106-
"model": "${varients-sample}",
106+
"model": "Cohere-embed-v3-english",
107107
"input": [
108108
{
109109
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUh...",
@@ -122,7 +122,7 @@ The following example shows how to create embeddings that are used to create an
122122

123123
```json
124124
{
125-
"model": "${varients-sample}",
125+
"model": "Cohere-embed-v3-english",
126126
"input": [
127127
{
128128
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUh..."
@@ -137,7 +137,7 @@ When you work on a query to retrieve such a document, you can use the following
137137

138138
```json
139139
{
140-
"model": "${varients-sample}",
140+
"model": "Cohere-embed-v3-english",
141141
"input": [
142142
{
143143
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUh..."

0 commit comments

Comments
 (0)