Skip to content

Commit

Permalink
Add AOAI Inference 2024-08-01-preview swagger (Azure#30147)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
yuanzhuangyuanzhuang and Yuan Zhuang authored Aug 12, 2024
1 parent 5f81e1b commit 925b1fe
Show file tree
Hide file tree
Showing 192 changed files with 42,007 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"batch-id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f"
},
"responses": {
"200": {
"headers": {},
"body": {
"object": "batch",
"id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f",
"endpoint": "/chat/completions",
"errors": null,
"input_file_id": "file-b4fa7277f3eb4722ac18b90f46102c3f",
"completion_window": "24h",
"status": "cancelling",
"output_file_id": null,
"error_file_id": null,
"created_at": 1646126127,
"in_progress_at": 1646126130,
"expires_at": 1646126170,
"finalizing_at": null,
"completed_at": null,
"failed_at": null,
"expired_at": null,
"cancelling_at": 1646126138,
"cancelled_at": null,
"request_counts": {
"total": 500,
"completed": 100,
"failed": 5
},
"metadata": {
"batch_description": "Evaluation job"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: "{api key}"
api-version: 2024-07-01-preview
batch-id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
responses:
"200":
headers: {}
body:
object: batch
id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
endpoint: /chat/completions
errors: null
input_file_id: file-b4fa7277f3eb4722ac18b90f46102c3f
completion_window: 24h
status: cancelling
output_file_id: null
error_file_id: null
created_at: 1646126127
in_progress_at: 1646126130
expires_at: 1646126170
finalizing_at: null
completed_at: null
failed_at: null
expired_at: null
cancelling_at: 1646126138
cancelled_at: null
request_counts:
total: 500
completed: 100
failed: 5
metadata:
batch_description: Evaluation job
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"fine-tuning-job-id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f"
},
"responses": {
"200": {
"headers": {},
"body": {
"hyperparameters": {
"n_epochs": -1
},
"status": "cancelled",
"model": "curie",
"training_file": "file-181a1cbdcdcf4677ada87f63a0928099",
"finished_at": 1646127311,
"id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f",
"created_at": 1646126127,
"object": "fine_tuning.job"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: '{api key}'
api-version: 2024-07-01-preview
fine-tuning-job-id: ft-72a2792ef7d24ba7b82c7fe4a37e379f
responses:
200:
headers: {}
body:
hyperparameters:
n_epochs: -1
suffix:
seed:
status: cancelled
model: curie
fine_tuned_model:
training_file: file-181a1cbdcdcf4677ada87f63a0928099
validation_file:
result_files:
finished_at: 1646127311
organisation_id:
id: ft-72a2792ef7d24ba7b82c7fe4a37e379f
created_at: 1646126127
object: fine_tuning.job
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099"
},
"responses": {
"204": {
"headers": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: '{api key}'
api-version: 2024-07-01-preview
file-id: file-181a1cbdcdcf4677ada87f63a0928099
responses:
204:
headers: {}
body:
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"fine-tuning-job-id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f"
},
"responses": {
"204": {
"headers": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: '{api key}'
api-version: 2024-07-01-preview
fine-tuning-job-id: ft-72a2792ef7d24ba7b82c7fe4a37e379f
responses:
204:
headers: {}
body:
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"batch-id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f"
},
"responses": {
"200": {
"headers": {},
"body": {
"object": "batch",
"id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f",
"endpoint": "/chat/completions",
"errors": null,
"input_file_id": "file-b4fa7277f3eb4722ac18b90f46102c3f",
"completion_window": "24h",
"status": "completed",
"output_file_id": "file-f2ddaf43-b48b-46dd-b264-90da10c7a85b",
"error_file_id": "file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c",
"created_at": 1646126127,
"in_progress_at": 1646126130,
"expires_at": 1646126170,
"finalizing_at": 1646126134,
"completed_at": 1646126136,
"failed_at": null,
"expired_at": null,
"cancelling_at": null,
"cancelled_at": null,
"request_counts": {
"total": 500,
"completed": 400,
"failed": 100
},
"metadata": {
"batch_description": "Evaluation job"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: "{api key}"
api-version: 2024-07-01-preview
batch-id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
responses:
"200":
headers: {}
body:
object: batch
id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
endpoint: /chat/completions
errors: null
input_file_id: file-b4fa7277f3eb4722ac18b90f46102c3f
completion_window: 24h
status: completed
output_file_id: file-f2ddaf43-b48b-46dd-b264-90da10c7a85b
error_file_id: file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c
created_at: 1646126127
in_progress_at: 1646126130
expires_at: 1646126170
finalizing_at: 1646126134
completed_at: 1646126136
failed_at: null
expired_at: null
cancelling_at: null
cancelled_at: null
request_counts:
total: 500
completed: 400
failed: 100
metadata:
batch_description: Evaluation job
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview"
},
"responses": {
"200": {
"headers": {},
"body": {
"has_more": false,
"data": [
{
"object": "batch",
"id": "batch_72a2792ef7d24ba7b82c7fe4a37e379f",
"endpoint": "/chat/completions",
"errors": null,
"input_file_id": "file-b4fa7277f3eb4722ac18b90f46102c3f",
"completion_window": "24h",
"status": "completed",
"output_file_id": "file-f2ddaf43-b48b-46dd-b264-90da10c7a85b",
"error_file_id": "file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c",
"created_at": 1646126127,
"in_progress_at": 1646126130,
"expires_at": 1646126170,
"finalizing_at": 1646126134,
"completed_at": 1646126136,
"failed_at": null,
"expired_at": null,
"cancelling_at": null,
"cancelled_at": null,
"request_counts": {
"total": 500,
"completed": 400,
"failed": 100
},
"first_id": "batch_abc123",
"last_id": "batch_abc456",
"metadata": {
"batch_description": "Evaluation job"
}
}
],
"object": "list"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: "{api key}"
api-version: 2024-07-01-preview
responses:
"200":
headers: {}
body:
has_more: false
data:
- object: batch
id: batch_72a2792ef7d24ba7b82c7fe4a37e379f
endpoint: /chat/completions
errors: null
input_file_id: file-b4fa7277f3eb4722ac18b90f46102c3f
completion_window: 24h
status: completed
output_file_id: file-f2ddaf43-b48b-46dd-b264-90da10c7a85b
error_file_id: file-c3b563b0-ebc7-47da-93e3-a2fa694aef0c
created_at: 1646126127
in_progress_at: 1646126130
expires_at: 1646126170
finalizing_at: 1646126134
completed_at: 1646126136
failed_at: null
expired_at: null
cancelling_at: null
cancelled_at: null
request_counts:
total: 500
completed: 400
failed: 100
first_id: batch_abc123
last_id: batch_abc456
metadata:
batch_description: Evaluation job
object: list
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099"
},
"responses": {
"200": {
"headers": {},
"body": {
"status": "processed",
"bytes": 140,
"purpose": "fine-tune",
"filename": "puppy.jsonl",
"id": "file-181a1cbdcdcf4677ada87f63a0928099",
"created_at": 1646126127,
"object": "file"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
parameters:
endpoint: https://aoairesource.openai.azure.com
api-key: '{api key}'
api-version: 2024-07-01-preview
file-id: file-181a1cbdcdcf4677ada87f63a0928099
responses:
200:
headers: {}
body:
status_details:
status: processed
bytes: 140
purpose: fine-tune
filename: puppy.jsonl
id: file-181a1cbdcdcf4677ada87f63a0928099
created_at: 1646126127
object: file
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"endpoint": "https://aoairesource.openai.azure.com",
"api-key": "{api key}",
"api-version": "2024-07-01-preview",
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099"
},
"responses": {
"200": {
"headers": {},
"body": "raw file content"
}
}
}
Loading

0 comments on commit 925b1fe

Please sign in to comment.