Skip to content

Commit a2eb745

Browse files
authored
Fix required api version parameter in OpenAI (#21921)
* Fix API version in swagger info for OpenAI * Fix api version parameter of open ai ga version
1 parent e687f78 commit a2eb745

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2022-06-01-preview/inference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"required": true,
4848
"schema": {
4949
"type": "string",
50-
"example": "2022-03-01-preview",
50+
"example": "2022-06-01-preview",
5151
"description": "api version"
5252
}
5353
}

specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2022-12-01/inference.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"required": true,
4848
"schema": {
4949
"type": "string",
50-
"example": "2022-03-01-preview",
50+
"example": "2022-12-01",
5151
"description": "api version"
5252
}
5353
}
@@ -361,6 +361,16 @@
361361
"example": "ada-search-index-v1"
362362
},
363363
"description": "The deployment id of the model which was deployed."
364+
},
365+
{
366+
"in": "query",
367+
"name": "api-version",
368+
"required": true,
369+
"schema": {
370+
"type": "string",
371+
"example": "2022-12-01",
372+
"description": "api version"
373+
}
364374
}
365375
],
366376
"requestBody": {

0 commit comments

Comments
 (0)