Skip to content

Commit 925b1fe

Browse files
yuanzhuangyuanzhuangYuan Zhuang
and
Yuan Zhuang
authored
Add AOAI Inference 2024-08-01-preview swagger (Azure#30147)
* Add 0801-API_base * Add all new chat comletion related changes * Add changes for json * Add validated swagger file * Fix doc links and remove unused properties * Add Authoring API * Add User back * Reverted changes that a list of int can be input --------- Co-authored-by: Yuan Zhuang <[email protected]>
1 parent 5f81e1b commit 925b1fe

File tree

192 files changed

+42007
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+42007
-0
lines changed

specification/cognitiveservices/data-plane/AzureOpenAI/authoring/preview/2024-08-01-preview/azureopenai.json

+3,438
Large diffs are not rendered by default.

specification/cognitiveservices/data-plane/AzureOpenAI/authoring/preview/2024-08-01-preview/azureopenai.yaml

+2,435
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"batch-id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"object": "batch",
13+
"id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f",
14+
"endpoint": "/chat/completions",
15+
"errors": null,
16+
"input_file_id": "file-b4fa7277f3eb4722ac18b90f46102c3f",
17+
"completion_window": "24h",
18+
"status": "cancelling",
19+
"output_file_id": null,
20+
"error_file_id": null,
21+
"created_at": 1646126127,
22+
"in_progress_at": 1646126130,
23+
"expires_at": 1646126170,
24+
"finalizing_at": null,
25+
"completed_at": null,
26+
"failed_at": null,
27+
"expired_at": null,
28+
"cancelling_at": 1646126138,
29+
"cancelled_at": null,
30+
"request_counts": {
31+
"total": 500,
32+
"completed": 100,
33+
"failed": 5
34+
},
35+
"metadata": {
36+
"batch_description": "Evaluation job"
37+
}
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: "{api key}"
4+
api-version: 2024-07-01-preview
5+
batch-id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
6+
responses:
7+
"200":
8+
headers: {}
9+
body:
10+
object: batch
11+
id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
12+
endpoint: /chat/completions
13+
errors: null
14+
input_file_id: file-b4fa7277f3eb4722ac18b90f46102c3f
15+
completion_window: 24h
16+
status: cancelling
17+
output_file_id: null
18+
error_file_id: null
19+
created_at: 1646126127
20+
in_progress_at: 1646126130
21+
expires_at: 1646126170
22+
finalizing_at: null
23+
completed_at: null
24+
failed_at: null
25+
expired_at: null
26+
cancelling_at: 1646126138
27+
cancelled_at: null
28+
request_counts:
29+
total: 500
30+
completed: 100
31+
failed: 5
32+
metadata:
33+
batch_description: Evaluation job
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"fine-tuning-job-id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"hyperparameters": {
13+
"n_epochs": -1
14+
},
15+
"status": "cancelled",
16+
"model": "curie",
17+
"training_file": "file-181a1cbdcdcf4677ada87f63a0928099",
18+
"finished_at": 1646127311,
19+
"id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f",
20+
"created_at": 1646126127,
21+
"object": "fine_tuning.job"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: '{api key}'
4+
api-version: 2024-07-01-preview
5+
fine-tuning-job-id: ft-72a2792ef7d24ba7b82c7fe4a37e379f
6+
responses:
7+
200:
8+
headers: {}
9+
body:
10+
hyperparameters:
11+
n_epochs: -1
12+
suffix:
13+
seed:
14+
status: cancelled
15+
model: curie
16+
fine_tuned_model:
17+
training_file: file-181a1cbdcdcf4677ada87f63a0928099
18+
validation_file:
19+
result_files:
20+
finished_at: 1646127311
21+
organisation_id:
22+
id: ft-72a2792ef7d24ba7b82c7fe4a37e379f
23+
created_at: 1646126127
24+
object: fine_tuning.job
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099"
7+
},
8+
"responses": {
9+
"204": {
10+
"headers": {}
11+
}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: '{api key}'
4+
api-version: 2024-07-01-preview
5+
file-id: file-181a1cbdcdcf4677ada87f63a0928099
6+
responses:
7+
204:
8+
headers: {}
9+
body:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"fine-tuning-job-id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f"
7+
},
8+
"responses": {
9+
"204": {
10+
"headers": {}
11+
}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: '{api key}'
4+
api-version: 2024-07-01-preview
5+
fine-tuning-job-id: ft-72a2792ef7d24ba7b82c7fe4a37e379f
6+
responses:
7+
204:
8+
headers: {}
9+
body:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"batch-id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"object": "batch",
13+
"id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f",
14+
"endpoint": "/chat/completions",
15+
"errors": null,
16+
"input_file_id": "file-b4fa7277f3eb4722ac18b90f46102c3f",
17+
"completion_window": "24h",
18+
"status": "completed",
19+
"output_file_id": "file-f2ddaf43-b48b-46dd-b264-90da10c7a85b",
20+
"error_file_id": "file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c",
21+
"created_at": 1646126127,
22+
"in_progress_at": 1646126130,
23+
"expires_at": 1646126170,
24+
"finalizing_at": 1646126134,
25+
"completed_at": 1646126136,
26+
"failed_at": null,
27+
"expired_at": null,
28+
"cancelling_at": null,
29+
"cancelled_at": null,
30+
"request_counts": {
31+
"total": 500,
32+
"completed": 400,
33+
"failed": 100
34+
},
35+
"metadata": {
36+
"batch_description": "Evaluation job"
37+
}
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: "{api key}"
4+
api-version: 2024-07-01-preview
5+
batch-id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
6+
responses:
7+
"200":
8+
headers: {}
9+
body:
10+
object: batch
11+
id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
12+
endpoint: /chat/completions
13+
errors: null
14+
input_file_id: file-b4fa7277f3eb4722ac18b90f46102c3f
15+
completion_window: 24h
16+
status: completed
17+
output_file_id: file-f2ddaf43-b48b-46dd-b264-90da10c7a85b
18+
error_file_id: file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c
19+
created_at: 1646126127
20+
in_progress_at: 1646126130
21+
expires_at: 1646126170
22+
finalizing_at: 1646126134
23+
completed_at: 1646126136
24+
failed_at: null
25+
expired_at: null
26+
cancelling_at: null
27+
cancelled_at: null
28+
request_counts:
29+
total: 500
30+
completed: 400
31+
failed: 100
32+
metadata:
33+
batch_description: Evaluation job
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"has_more": false,
12+
"data": [
13+
{
14+
"object": "batch",
15+
"id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f",
16+
"endpoint": "/chat/completions",
17+
"errors": null,
18+
"input_file_id": "file-b4fa7277f3eb4722ac18b90f46102c3f",
19+
"completion_window": "24h",
20+
"status": "completed",
21+
"output_file_id": "file-f2ddaf43-b48b-46dd-b264-90da10c7a85b",
22+
"error_file_id": "file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c",
23+
"created_at": 1646126127,
24+
"in_progress_at": 1646126130,
25+
"expires_at": 1646126170,
26+
"finalizing_at": 1646126134,
27+
"completed_at": 1646126136,
28+
"failed_at": null,
29+
"expired_at": null,
30+
"cancelling_at": null,
31+
"cancelled_at": null,
32+
"request_counts": {
33+
"total": 500,
34+
"completed": 400,
35+
"failed": 100
36+
},
37+
"first_id": "batch_abc123",
38+
"last_id": "batch_abc456",
39+
"metadata": {
40+
"batch_description": "Evaluation job"
41+
}
42+
}
43+
],
44+
"object": "list"
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: "{api key}"
4+
api-version: 2024-07-01-preview
5+
responses:
6+
"200":
7+
headers: {}
8+
body:
9+
has_more: false
10+
data:
11+
- object: batch
12+
id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
13+
endpoint: /chat/completions
14+
errors: null
15+
input_file_id: file-b4fa7277f3eb4722ac18b90f46102c3f
16+
completion_window: 24h
17+
status: completed
18+
output_file_id: file-f2ddaf43-b48b-46dd-b264-90da10c7a85b
19+
error_file_id: file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c
20+
created_at: 1646126127
21+
in_progress_at: 1646126130
22+
expires_at: 1646126170
23+
finalizing_at: 1646126134
24+
completed_at: 1646126136
25+
failed_at: null
26+
expired_at: null
27+
cancelling_at: null
28+
cancelled_at: null
29+
request_counts:
30+
total: 500
31+
completed: 400
32+
failed: 100
33+
first_id: batch_abc123
34+
last_id: batch_abc456
35+
metadata:
36+
batch_description: Evaluation job
37+
object: list
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": {
12+
"status": "processed",
13+
"bytes": 140,
14+
"purpose": "fine-tune",
15+
"filename": "puppy.jsonl",
16+
"id": "file-181a1cbdcdcf4677ada87f63a0928099",
17+
"created_at": 1646126127,
18+
"object": "file"
19+
}
20+
}
21+
}
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
parameters:
2+
endpoint: https://aoairesource.openai.azure.com
3+
api-key: '{api key}'
4+
api-version: 2024-07-01-preview
5+
file-id: file-181a1cbdcdcf4677ada87f63a0928099
6+
responses:
7+
200:
8+
headers: {}
9+
body:
10+
status_details:
11+
status: processed
12+
bytes: 140
13+
purpose: fine-tune
14+
filename: puppy.jsonl
15+
id: file-181a1cbdcdcf4677ada87f63a0928099
16+
created_at: 1646126127
17+
object: file
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"endpoint": "https://aoairesource.openai.azure.com",
4+
"api-key": "{api key}",
5+
"api-version": "2024-07-01-preview",
6+
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {},
11+
"body": "raw file content"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)