Skip to content

Commit 6a72e32

Browse files
Merge pull request #221415 from mrbullwinkle/mrb_12_13_2022_api_update
[Cognitive Services] [Azure OpenAI] Update api version
2 parents 14837e9 + f66744c commit 6a72e32

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

articles/cognitive-services/openai/how-to/embeddings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ An embedding is a special format of data representation that can be easily utili
2323
To obtain an embedding vector for a piece of text, we make a request to the embeddings endpoint as shown in the following code snippets:
2424

2525
```console
26-
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version=2022-06-01-preview\
26+
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version=2022-12-01\
2727
-H 'Content-Type: application/json' \
2828
-H 'api-key: YOUR_API_KEY' \
2929
-d '{"input": "Sample Document goes here"}'

articles/cognitive-services/openai/how-to/managed-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Assigning yourself to the Cognitive Services User role will allow you to use you
6565
Use the access token to authorize your API call by setting the `Authorization` header value.
6666
6767
```bash
68-
curl ${endpoint%/}/openai/deployment/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-06-01-preview \
68+
curl ${endpoint%/}/openai/deployment/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-12-01 \
6969
-H "Content-Type: application/json" \
7070
-H "Authorization: Bearer $accessToken" \
7171
-d '{ "prompt": "Once upon a time" }'

articles/cognitive-services/openai/how-to/prepare-dataset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For this use case we fine-tuned an ada model since it will be faster and cheaper
6464
Now we can query our model by making a Completion request.
6565

6666
```console
67-
curl https://YOUR_RESOURCE_NAME.openaiazure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-06-01-preview\ \
67+
curl https://YOUR_RESOURCE_NAME.openaiazure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-12-01\ \
6868
-H 'Content-Type: application/json' \
6969
-H 'api-key: YOUR_API_KEY' \
7070
-d '{
@@ -89,7 +89,7 @@ Once the model is fine-tuned, you can get back the log probabilities for the fir
8989
Now we can query our model by making a Completion request.
9090

9191
```console
92-
curl https://YOUR_RESOURCE_NAME.openaiazure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-06-01-preview\ \
92+
curl https://YOUR_RESOURCE_NAME.openaiazure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-12-01\ \
9393
-H 'Content-Type: application/json' \
9494
-H 'api-key: YOUR_API_KEY' \
9595
-d '{

articles/cognitive-services/openai/reference.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ The Azure OpenAI service provides two methods for authentication. you can use e
3737

3838
### REST API versioning
3939

40-
The service APIs are versioned using the ```api-version``` query parameter. All versions follow the YYYY-MM-DD date structure, with a -preview suffix for a preview service. For example:
40+
The service APIs are versioned using the ```api-version``` query parameter. All versions follow the YYYY-MM-DD date structure. For example:
4141

4242
```http
43-
POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-06-01-preview
43+
POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-12-01
4444
```
4545

46-
We currently have the following versions available: ```2022-06-01-preview```
46+
We currently have the following versions available: ```2022-12-01```
4747

4848
## Completions
4949
With the Completions operation, the model will generate one or more predicted completions based on a provided prompt. The service can also return the probabilities of alternative tokens at each position.
@@ -60,11 +60,11 @@ POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deploymen
6060
|--|--|--|--|
6161
| ```your-resource-name``` | string | Required | The name of your Azure OpenAI Resource. |
6262
| ```deployment-id``` | string | Required | The name of your model deployment. You're required to first deploy a model before you can make calls |
63-
| ```api-version``` | string | Required |The API version to use for this operation. This follows the YYYY-MM-DD-preview format. |
63+
| ```api-version``` | string | Required |The API version to use for this operation. This follows the YYYY-MM-DD format. |
6464

6565
**Supported versions**
6666

67-
- `2022-06-01-preview`
67+
- `2022-12-01`
6868

6969
**Request body**
7070

@@ -87,7 +87,7 @@ POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deploymen
8787
#### Example request
8888

8989
```console
90-
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-06-01-preview\
90+
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-12-01\
9191
-H "Content-Type: application/json" \
9292
-H "api-key: YOUR_API_KEY" \
9393
-d "{
@@ -130,11 +130,11 @@ POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deploymen
130130
|--|--|--|--|
131131
| ```your-resource-name``` | string | Required | The name of your Azure OpenAI Resource. |
132132
| ```deployment-id``` | string | Required | The name of your model deployment. You're required to first deploy a model before you can make calls |
133-
| ```api-version``` | string | Required |The API version to use for this operation. This follows the YYYY-MM-DD-preview format. |
133+
| ```api-version``` | string | Required |The API version to use for this operation. This follows the YYYY-MM-DD format. |
134134

135135
**Supported versions**
136136

137-
- `2022-06-01-preview`
137+
- `2022-12-01`
138138

139139
**Request body**
140140

@@ -146,7 +146,7 @@ POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deploymen
146146
#### Example request
147147

148148
```console
149-
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version=2022-06-01-preview\
149+
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version=2022-12-01\
150150
-H "Content-Type: application/json" \
151151
-H "api-key: YOUR_API_KEY" \
152152
-d "{\"input\": \"The food was delicious and the waiter...\"}"

0 commit comments

Comments
 (0)