-
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.
- Loading branch information
Yuan Zhuang
committed
Feb 25, 2025
1 parent
2f9b4fb
commit bddd118
Showing
137 changed files
with
30,690 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...es/data-plane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_speech.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 @@ | ||
{ | ||
"title": "Synthesizes audio from the provided text.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"deployment-id": "<deployment-id>", | ||
"body": { | ||
"input": "Hi! What are you going to make?", | ||
"voice": "fable", | ||
"response_format": "mp3" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "101010101" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...es/data-plane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_speech.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: | ||
api-version: 2025-02-01-preview | ||
body: | ||
input: Hi! What are you going to make? | ||
response_format: mp3 | ||
voice: fable | ||
deployment-id: <deployment-id> | ||
endpoint: "{endpoint}" | ||
responses: | ||
"200": | ||
body: "101010101" | ||
title: Synthesizes audio from the provided text. |
15 changes: 15 additions & 0 deletions
15
...AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_transcription_object.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,15 @@ | ||
{ | ||
"title": "Gets transcribed text and associated metadata from provided spoken audio data.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"deployment-id": "<deployment-id>" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"text": "A structured object when requesting json or verbose_json" | ||
} | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_transcription_object.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: | ||
api-version: 2025-02-01-preview | ||
deployment-id: <deployment-id> | ||
endpoint: "{endpoint}" | ||
responses: | ||
"200": | ||
body: | ||
text: A structured object when requesting json or verbose_json | ||
title: Gets transcribed text and associated metadata from provided spoken audio data. |
15 changes: 15 additions & 0 deletions
15
...e/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_transcription_text.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,15 @@ | ||
{ | ||
"title": "Gets transcribed text and associated metadata from provided spoken audio data.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"deployment-id": "<deployment-id>", | ||
"body": "---multipart-boundary\nContent-Disposition: form-data; name=\"file\"; filename=\"file.wav\"\nContent-Type: application/octet-stream\n\nRIFF..audio.data.omitted\n---multipart-boundary--" | ||
}, | ||
"responses": { | ||
"200": { | ||
"type": "string", | ||
"example": "plain text when requesting text, srt, or vtt" | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...e/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_transcription_text.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,19 @@ | ||
parameters: | ||
api-version: 2025-02-01-preview | ||
body: '---multipart-boundary | ||
Content-Disposition: form-data; name="file"; filename="file.wav" | ||
Content-Type: application/octet-stream | ||
RIFF..audio.data.omitted | ||
---multipart-boundary--' | ||
deployment-id: <deployment-id> | ||
endpoint: "{endpoint}" | ||
responses: | ||
"200": | ||
example: plain text when requesting text, srt, or vtt | ||
type: string | ||
title: Gets transcribed text and associated metadata from provided spoken audio data. |
16 changes: 16 additions & 0 deletions
16
...e/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_translation_object.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,16 @@ | ||
{ | ||
"title": "Gets English language transcribed text and associated metadata from provided spoken audio data.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"deployment-id": "<deployment-id>", | ||
"body": "---multipart-boundary\nContent-Disposition: form-data; name=\"file\"; filename=\"file.wav\"\nContent-Type: application/octet-stream\n\nRIFF..audio.data.omitted\n---multipart-boundary--" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"text": "A structured object when requesting json or verbose_json" | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...e/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_translation_object.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,21 @@ | ||
parameters: | ||
api-version: 2025-02-01-preview | ||
body: '---multipart-boundary | ||
Content-Disposition: form-data; name="file"; filename="file.wav" | ||
Content-Type: application/octet-stream | ||
RIFF..audio.data.omitted | ||
---multipart-boundary--' | ||
deployment-id: <deployment-id> | ||
endpoint: "{endpoint}" | ||
responses: | ||
"200": | ||
body: | ||
text: A structured object when requesting json or verbose_json | ||
title: | ||
Gets English language transcribed text and associated metadata from provided | ||
spoken audio data. |
15 changes: 15 additions & 0 deletions
15
...ane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_translation_text.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,15 @@ | ||
{ | ||
"title": "Gets English language transcribed text and associated metadata from provided spoken audio data.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"deployment-id": "<deployment-id>", | ||
"body": "---multipart-boundary\nContent-Disposition: form-data; name=\"file\"; filename=\"file.wav\"\nContent-Type: application/octet-stream\n\nRIFF..audio.data.omitted\n---multipart-boundary--" | ||
}, | ||
"responses": { | ||
"200": { | ||
"type": "string", | ||
"example": "plain text when requesting text, srt, or vtt" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/audio_translation_text.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,21 @@ | ||
parameters: | ||
api-version: 2025-02-01-preview | ||
body: '---multipart-boundary | ||
Content-Disposition: form-data; name="file"; filename="file.wav" | ||
Content-Type: application/octet-stream | ||
RIFF..audio.data.omitted | ||
---multipart-boundary--' | ||
deployment-id: <deployment-id> | ||
endpoint: "{endpoint}" | ||
responses: | ||
"200": | ||
example: plain text when requesting text, srt, or vtt | ||
type: string | ||
title: | ||
Gets English language transcribed text and associated metadata from provided | ||
spoken audio data. |
46 changes: 46 additions & 0 deletions
46
...ices/data-plane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/cancel_run.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,46 @@ | ||
{ | ||
"title": "Cancels a run that is `in_progress`.\n", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"thread_id": "thread_abc123", | ||
"run_id": "run_abc123" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "run_abc123", | ||
"object": "thread.run", | ||
"created_at": 1699076126, | ||
"assistant_id": "asst_abc123", | ||
"thread_id": "thread_abc123", | ||
"status": "cancelling", | ||
"started_at": 1699076126, | ||
"expires_at": 1699076726, | ||
"cancelled_at": null, | ||
"failed_at": null, | ||
"completed_at": null, | ||
"last_error": null, | ||
"model": "gpt-4-turbo", | ||
"instructions": "You summarize books.", | ||
"tools": [ | ||
{ | ||
"type": "file_search" | ||
} | ||
], | ||
"tool_resources": { | ||
"file_search": { | ||
"vector_store_ids": [ | ||
"vs_123" | ||
] | ||
} | ||
}, | ||
"metadata": {}, | ||
"usage": null, | ||
"temperature": 1.0, | ||
"top_p": 1.0, | ||
"response_format": "auto" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ices/data-plane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/cancel_run.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,35 @@ | ||
title: | | ||
Cancels a run that is `in_progress`. | ||
parameters: | ||
endpoint: "{endpoint}" | ||
api-version: 2025-02-01-preview | ||
thread_id: thread_abc123 | ||
run_id: run_abc123 | ||
responses: | ||
"200": | ||
body: | ||
id: run_abc123 | ||
object: thread.run | ||
created_at: 1699076126 | ||
assistant_id: asst_abc123 | ||
thread_id: thread_abc123 | ||
status: cancelling | ||
started_at: 1699076126 | ||
expires_at: 1699076726 | ||
cancelled_at: null | ||
failed_at: null | ||
completed_at: null | ||
last_error: null | ||
model: gpt-4-turbo | ||
instructions: You summarize books. | ||
tools: | ||
- type: file_search | ||
tool_resources: | ||
file_search: | ||
vector_store_ids: | ||
- vs_123 | ||
metadata: {} | ||
usage: null | ||
temperature: 1 | ||
top_p: 1 | ||
response_format: auto |
27 changes: 27 additions & 0 deletions
27
...eOpenAI/inference/preview/2025-02-01-preview/examples/cancel_vector_store_file_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,27 @@ | ||
{ | ||
"title": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"vector_store_id": "vs_abc123", | ||
"batch_id": "vsfb_abc123" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "vsfb_abc123", | ||
"object": "vector_store.file_batch", | ||
"created_at": 1699061776, | ||
"vector_store_id": "vs_abc123", | ||
"status": "cancelling", | ||
"file_counts": { | ||
"in_progress": 12, | ||
"completed": 3, | ||
"failed": 0, | ||
"cancelled": 0, | ||
"total": 15 | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...eOpenAI/inference/preview/2025-02-01-preview/examples/cancel_vector_store_file_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,20 @@ | ||
title: Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. | ||
parameters: | ||
endpoint: "{endpoint}" | ||
api-version: 2025-02-01-preview | ||
vector_store_id: vs_abc123 | ||
batch_id: vsfb_abc123 | ||
responses: | ||
"200": | ||
body: | ||
id: vsfb_abc123 | ||
object: vector_store.file_batch | ||
created_at: 1699061776 | ||
vector_store_id: vs_abc123 | ||
status: cancelling | ||
file_counts: | ||
in_progress: 12 | ||
completed: 3 | ||
failed: 0 | ||
cancelled: 0 | ||
total: 15 |
43 changes: 43 additions & 0 deletions
43
...ata-plane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/chat_completions.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,43 @@ | ||
{ | ||
"title": "Creates a completion for the provided prompt, parameters and chosen model.", | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"api-version": "2025-02-01-preview", | ||
"deployment-id": "<deployment-id>", | ||
"body": { | ||
"messages": [ | ||
{ | ||
"role": "system", | ||
"content": "you are a helpful assistant that talks like a pirate" | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "can you tell me how to care for a parrot?" | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "chatcmpl-7R1nGnsXO8n4oi9UPz2f3UHdgAYMn", | ||
"created": 1686676106, | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"finish_reason": "stop", | ||
"message": { | ||
"role": "assistant", | ||
"content": "Ahoy matey! So ye be wantin' to care for a fine squawkin' parrot, eh? Well, shiver me timbers, let ol' Cap'n Assistant share some wisdom with ye! Here be the steps to keepin' yer parrot happy 'n healthy:\n\n1. Secure a sturdy cage: Yer parrot be needin' a comfortable place to lay anchor! Be sure ye get a sturdy cage, at least double the size of the bird's wingspan, with enough space to spread their wings, yarrrr!\n\n2. Perches 'n toys: Aye, parrots need perches of different sizes, shapes, 'n textures to keep their feet healthy. Also, a few toys be helpin' to keep them entertained 'n their minds stimulated, arrrh!\n\n3. Proper grub: Feed yer feathered friend a balanced diet of high-quality pellets, fruits, 'n veggies to keep 'em strong 'n healthy. Give 'em fresh water every day, or ye’ll have a scurvy bird on yer hands!\n\n4. Cleanliness: Swab their cage deck! Clean their cage on a regular basis: fresh water 'n food daily, the floor every couple of days, 'n a thorough scrubbing ev'ry few weeks, so the bird be livin' in a tidy haven, arrhh!\n\n5. Socialize 'n train: Parrots be a sociable lot, arrr! Exercise 'n interact with 'em daily to create a bond 'n maintain their mental 'n physical health. Train 'em with positive reinforcement, treat 'em kindly, yarrr!\n\n6. Proper rest: Yer parrot be needin' ’bout 10-12 hours o' sleep each night. Cover their cage 'n let them slumber in a dim, quiet quarter for a proper night's rest, ye scallywag!\n\n7. Keep a weather eye open for illness: Birds be hidin' their ailments, arrr! Be watchful for signs of sickness, such as lethargy, loss of appetite, puffin' up, or change in droppings, and make haste to a vet if need be.\n\n8. Provide fresh air 'n avoid toxins: Parrots be sensitive to draft and pollutants. Keep yer quarters well ventilated, but no drafts, arrr! Be mindful of toxins like Teflon fumes, candles, or air fresheners.\n\nSo there ye have it, me hearty! With proper care 'n commitment, yer parrot will be squawkin' \"Yo-ho-ho\" for many years to come! Good luck, sailor, and may the wind be at yer back!" | ||
} | ||
} | ||
], | ||
"usage": { | ||
"completion_tokens": 557, | ||
"prompt_tokens": 33, | ||
"total_tokens": 590 | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ata-plane/AzureOpenAI/inference/preview/2025-02-01-preview/examples/chat_completions.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,45 @@ | ||
title: Creates a completion for the provided prompt, parameters and chosen model. | ||
parameters: | ||
endpoint: "{endpoint}" | ||
api-version: 2025-02-01-preview | ||
deployment-id: <deployment-id> | ||
body: | ||
messages: | ||
- role: system | ||
content: you are a helpful assistant that talks like a pirate | ||
- role: user | ||
content: can you tell me how to care for a parrot? | ||
responses: | ||
"200": | ||
body: | ||
id: chatcmpl-7R1nGnsXO8n4oi9UPz2f3UHdgAYMn | ||
created: 1686676106 | ||
choices: | ||
- index: 0 | ||
finish_reason: stop | ||
message: | ||
role: assistant | ||
content: |- | ||
Ahoy matey! So ye be wantin' to care for a fine squawkin' parrot, eh? Well, shiver me timbers, let ol' Cap'n Assistant share some wisdom with ye! Here be the steps to keepin' yer parrot happy 'n healthy: | ||
1. Secure a sturdy cage: Yer parrot be needin' a comfortable place to lay anchor! Be sure ye get a sturdy cage, at least double the size of the bird's wingspan, with enough space to spread their wings, yarrrr! | ||
2. Perches 'n toys: Aye, parrots need perches of different sizes, shapes, 'n textures to keep their feet healthy. Also, a few toys be helpin' to keep them entertained 'n their minds stimulated, arrrh! | ||
3. Proper grub: Feed yer feathered friend a balanced diet of high-quality pellets, fruits, 'n veggies to keep 'em strong 'n healthy. Give 'em fresh water every day, or ye’ll have a scurvy bird on yer hands! | ||
4. Cleanliness: Swab their cage deck! Clean their cage on a regular basis: fresh water 'n food daily, the floor every couple of days, 'n a thorough scrubbing ev'ry few weeks, so the bird be livin' in a tidy haven, arrhh! | ||
5. Socialize 'n train: Parrots be a sociable lot, arrr! Exercise 'n interact with 'em daily to create a bond 'n maintain their mental 'n physical health. Train 'em with positive reinforcement, treat 'em kindly, yarrr! | ||
6. Proper rest: Yer parrot be needin' ’bout 10-12 hours o' sleep each night. Cover their cage 'n let them slumber in a dim, quiet quarter for a proper night's rest, ye scallywag! | ||
7. Keep a weather eye open for illness: Birds be hidin' their ailments, arrr! Be watchful for signs of sickness, such as lethargy, loss of appetite, puffin' up, or change in droppings, and make haste to a vet if need be. | ||
8. Provide fresh air 'n avoid toxins: Parrots be sensitive to draft and pollutants. Keep yer quarters well ventilated, but no drafts, arrr! Be mindful of toxins like Teflon fumes, candles, or air fresheners. | ||
So there ye have it, me hearty! With proper care 'n commitment, yer parrot will be squawkin' "Yo-ho-ho" for many years to come! Good luck, sailor, and may the wind be at yer back! | ||
usage: | ||
completion_tokens: 557 | ||
prompt_tokens: 33 | ||
total_tokens: 590 |
Oops, something went wrong.