-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AOAI 2024-12-01-preview API version (#31934)
* Add AOAI 2024-12-01-preview API version; * Reformat file; fix spelling; * Add back status and status_details for File in authoring; * Refine the description of OYDonYourDataContextProperty; * Revert the description change; --------- Co-authored-by: Yunsong Bai <yunba@microsoft.com>
- Loading branch information
Showing
201 changed files
with
38,952 additions
and
1 deletion.
There are no files selected for viewing
3,968 changes: 3,968 additions & 0 deletions
3,968
...tiveservices/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/azureopenai.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,671 changes: 2,671 additions & 0 deletions
2,671
...tiveservices/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/azureopenai.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...es/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/cancel_batch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-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" | ||
} | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...es/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/cancel_batch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-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 |
37 changes: 37 additions & 0 deletions
37
...lane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/cancel_finetuning_job.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-01-preview", | ||
"fine-tuning-job-id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"hyperparameters": { | ||
"n_epochs": -1 | ||
}, | ||
"integrations": [ | ||
{ | ||
"type": "wandb", | ||
"wandb": { | ||
"project": "custom-wandb-project", | ||
"tags": [ | ||
"project:tag", | ||
"lineage" | ||
] | ||
} | ||
} | ||
], | ||
"status": "cancelled", | ||
"model": "curie", | ||
"training_file": "file-181a1cbdcdcf4677ada87f63a0928099", | ||
"finished_at": 1646127311, | ||
"id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f", | ||
"created_at": 1646126127, | ||
"object": "fine_tuning.job" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...lane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/cancel_finetuning_job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
parameters: | ||
endpoint: https://aoairesource.openai.azure.com | ||
api-key: '{api key}' | ||
api-version: 2024-12-01-preview | ||
fine-tuning-job-id: ft-72a2792ef7d24ba7b82c7fe4a37e379f | ||
responses: | ||
200: | ||
headers: {} | ||
body: | ||
hyperparameters: | ||
n_epochs: -1 | ||
suffix: | ||
seed: | ||
integrations: | ||
- type: wandb | ||
wandb: | ||
project: custom-wandb-project | ||
name: | ||
entity: | ||
tags: | ||
- project:tag | ||
- lineage | ||
status: cancelled | ||
model: curie | ||
fine_tuned_model: | ||
training_file: file-181a1cbdcdcf4677ada87f63a0928099 | ||
validation_file: | ||
result_files: | ||
finished_at: 1646127311 | ||
organisation_id: | ||
error: | ||
id: ft-72a2792ef7d24ba7b82c7fe4a37e379f | ||
created_at: 1646126127 | ||
object: fine_tuning.job |
18 changes: 18 additions & 0 deletions
18
...ces/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/delete_file.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://aoairesource.openai.azure.com", | ||
"api-key": "{api key}", | ||
"api-version": "2024-12-01-preview", | ||
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"object": "file", | ||
"deleted": true, | ||
"id": "file-181a1cbdcdcf4677ada87f63a0928099" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ces/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/delete_file.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
parameters: | ||
endpoint: https://aoairesource.openai.azure.com | ||
api-key: "{api key}" | ||
api-version: 2024-12-01-preview | ||
file-id: file-181a1cbdcdcf4677ada87f63a0928099 | ||
responses: | ||
200: | ||
headers: {} | ||
body: | ||
object: file | ||
deleted: true | ||
id: file-181a1cbdcdcf4677ada87f63a0928099 |
13 changes: 13 additions & 0 deletions
13
...lane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/delete_finetuning_job.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-01-preview", | ||
"fine-tuning-job-id": "ft-72a2792ef7d24ba7b82c7fe4a37e379f" | ||
}, | ||
"responses": { | ||
"204": { | ||
"headers": {} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...lane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/delete_finetuning_job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-01-preview | ||
fine-tuning-job-id: ft-72a2792ef7d24ba7b82c7fe4a37e379f | ||
responses: | ||
204: | ||
headers: {} | ||
body: |
41 changes: 41 additions & 0 deletions
41
...vices/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/get_batch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-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" | ||
} | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...vices/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/get_batch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-12-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 |
50 changes: 50 additions & 0 deletions
50
...ces/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/get_batches.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://aoairesource.openai.azure.com", | ||
"api-key": "{api key}", | ||
"api-version": "2024-12-01-preview", | ||
"$filter": "created_at gt 1646120000 and created_at lt 1646130000 and status eq 'completed'", | ||
"$orderby": "created_at asc" | ||
}, | ||
"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" | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ces/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/get_batches.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
parameters: | ||
endpoint: https://aoairesource.openai.azure.com | ||
api-key: "{api key}" | ||
api-version: 2024-12-01-preview | ||
$filter: created_at gt 1646120000 and created_at lt 1646130000 and status eq 'completed' | ||
$orderby: created_at asc | ||
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 |
21 changes: 21 additions & 0 deletions
21
...rvices/data-plane/AzureOpenAI/authoring/preview/2024-12-01-preview/examples/get_file.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://aoairesource.openai.azure.com", | ||
"api-key": "{api key}", | ||
"api-version": "2024-12-01-preview", | ||
"file-id": "file-181a1cbdcdcf4677ada87f63a0928099" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"bytes": 140, | ||
"purpose": "fine-tune", | ||
"filename": "puppy.jsonl", | ||
"id": "file-181a1cbdcdcf4677ada87f63a0928099", | ||
"created_at": 1646126127, | ||
"object": "file" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.