Skip to content

Commit

Permalink
Add AOAI 2025-02-01-preview APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan Zhuang committed Feb 25, 2025
1 parent 2f9b4fb commit bddd118
Show file tree
Hide file tree
Showing 137 changed files with 30,690 additions and 0 deletions.
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"
}
}
}
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.
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"
}
}
}
}
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.
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"
}
}
}
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.
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"
}
}
}
}
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.
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"
}
}
}
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.
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"
}
}
}
}
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
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
}
}
}
}
}
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
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
}
}
}
}
}
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
Loading

0 comments on commit bddd118

Please sign in to comment.