Skip to content

Commit d049f8f

Browse files
committed
version
1 parent 099b6fc commit d049f8f

6 files changed

+13
-13
lines changed

articles/machine-learning/reference-model-inference-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following example shows a request passing the parameter `safe_prompt` suppor
7575
__Request__
7676

7777
```HTTP/1.1
78-
POST /chat/completions?api-version=2024-05-01-preview
78+
POST /chat/completions?api-version=2024-04-01-preview
7979
Authorization: Bearer <bearer-token>
8080
Content-Type: application/json
8181
extra-parameters: allow
@@ -112,7 +112,7 @@ The following example shows the response for a chat completion request indicatin
112112
__Request__
113113

114114
```HTTP/1.1
115-
POST /chat/completions?api-version=2024-05-01-preview
115+
POST /chat/completions?api-version=2024-04-01-preview
116116
Authorization: Bearer <bearer-token>
117117
Content-Type: application/json
118118
```
@@ -198,7 +198,7 @@ wget -d --header="Authorization: Bearer <TOKEN>" <ENDPOINT_URI>/swagger.json
198198
Use the **Endpoint URI** and the **Key** to submit requests. The following example sends a request to a Cohere embedding model:
199199

200200
```HTTP/1.1
201-
POST /embeddings?api-version=2024-05-01-preview
201+
POST /embeddings?api-version=2024-04-01-preview
202202
Authorization: Bearer <bearer-token>
203203
Content-Type: application/json
204204
```

articles/machine-learning/reference-model-inference-chat-completions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.custom:
2020
Creates a model response for the given chat conversation.
2121

2222
```http
23-
POST /chat/completions?api-version=2024-05-01-preview
23+
POST /chat/completions?api-version=2024-04-01-preview
2424
```
2525

2626
## URI Parameters
@@ -84,7 +84,7 @@ Token URL: https://login.microsoftonline.com/common/oauth2/v2.0/token
8484

8585

8686
```http
87-
POST /chat/completions?api-version=2024-05-01-preview
87+
POST /chat/completions?api-version=2024-04-01-preview
8888
8989
{
9090
"messages": [

articles/machine-learning/reference-model-inference-completions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.custom:
2020
Creates a completion for the provided prompt and parameters.
2121

2222
```http
23-
POST /completions?api-version=2024-05-01-preview
23+
POST /completions?api-version=2024-04-01-preview
2424
```
2525

2626
| Name | In | Required | Type | Description |
@@ -85,7 +85,7 @@ Azure Active Directory OAuth2 authentication
8585
#### Sample Request
8686

8787
```http
88-
POST /completions?api-version=2024-05-01-preview
88+
POST /completions?api-version=2024-04-01-preview
8989
9090
{
9191
"prompt": "This is a very good text",

articles/machine-learning/reference-model-inference-embeddings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.custom:
2020
Creates an embedding vector representing the input text.
2121

2222
```http
23-
POST /embeddings?api-version=2024-05-01-preview
23+
POST /embeddings?api-version=2024-04-01-preview
2424
```
2525

2626
## URI Parameters
@@ -74,7 +74,7 @@ Azure Active Directory OAuth2 authentication
7474
#### Sample Request
7575

7676
```http
77-
POST /embeddings?api-version=2024-05-01-preview
77+
POST /embeddings?api-version=2024-04-01-preview
7878
7979
{
8080
"input": [

articles/machine-learning/reference-model-inference-images-embeddings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.custom:
2020
Creates an embedding vector representing the input image and text pair.
2121

2222
```http
23-
POST /images/embeddings?api-version=2024-05-01-preview
23+
POST /images/embeddings?api-version=2024-04-01-preview
2424
```
2525

2626
## URI Parameters
@@ -81,7 +81,7 @@ Azure Active Directory OAuth2 authentication
8181
#### Sample Request
8282

8383
```http
84-
POST /images/embeddings?api-version=2024-05-01-preview
84+
POST /images/embeddings?api-version=2024-04-01-preview
8585
8686
{
8787
"input": [

articles/machine-learning/reference-model-inference-info.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ms.custom:
2020
Returns the information about the model deployed under the endpoint.
2121

2222
```http
23-
GET /info?api-version=2024-05-01-preview
23+
GET /info?api-version=2024-04-01-preview
2424
```
2525

2626
## URI Parameters
@@ -74,7 +74,7 @@ Azure Active Directory OAuth2 authentication
7474
#### Sample Request
7575

7676
```http
77-
GET /info?api-version=2024-05-01-preview
77+
GET /info?api-version=2024-04-01-preview
7878
```
7979

8080
#### Sample Response

0 commit comments

Comments
 (0)