Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenAI] [Inference] TSP definition updates for v2024_05_01_preview service release #29182

Merged
merged 50 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7684dde
Azure OpenAI: 2024-04-01-preview updates
trrwilson Mar 27, 2024
57a34e0
add audio formats
trrwilson Mar 27, 2024
a222a5b
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson Apr 8, 2024
624a381
post-merge fix incl. tool update for enum conversion to union
trrwilson Apr 8, 2024
6de0967
minor: spellcheck fix
trrwilson Apr 8, 2024
0fd781d
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson Apr 10, 2024
e79c894
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson Apr 11, 2024
38efd3e
refine duration encoding for word start/end
trrwilson Apr 11, 2024
067fe5f
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson Apr 16, 2024
38749f7
enable serialization into azure json and rename customization class name
mssfang Apr 25, 2024
6b92bfe
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 6, 2024
89d84c9
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 7, 2024
c6d5372
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 15, 2024
dc05593
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 15, 2024
1afc37b
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 15, 2024
1bf10c6
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 15, 2024
a30d2d4
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 16, 2024
b9c9acb
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
jpalvarezl May 16, 2024
de547d8
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 16, 2024
ea200a8
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
jpalvarezl May 17, 2024
8135456
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
jpalvarezl May 21, 2024
1ea7f98
Added new customBlockList filter and fields to OYD
jpalvarezl May 21, 2024
61aac85
Adding changes to authentication for Vector Search
jpalvarezl May 21, 2024
52dee2f
Adjusted docs for OYD vector search auth models
jpalvarezl May 21, 2024
a53bdf3
Added missing field and retrieved documents
jpalvarezl May 21, 2024
f5d10f5
Examples added
jpalvarezl May 21, 2024
037a4f2
Merge branch 'main' into user/travisw/aoai-2024-04-01-preview
trrwilson May 21, 2024
d210e4e
corrected examples api-versions in json
jpalvarezl May 21, 2024
1e03a78
Reformat
jpalvarezl May 21, 2024
3042aab
Recompile after reformat
jpalvarezl May 21, 2024
aae228d
PR comments: wrong plural and type precision
jpalvarezl May 21, 2024
6e0f27b
Merge branch 'user/travisw/aoai-2024-04-01-preview' into jpalvarezl/i…
jpalvarezl May 21, 2024
572dee4
Revert added tab to service spec
jpalvarezl May 21, 2024
8e07596
merge + regen
trrwilson May 21, 2024
a582eb4
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
trrwilson May 22, 2024
3f943ce
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 22, 2024
586c410
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 23, 2024
7451376
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 23, 2024
47a7695
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 28, 2024
eb5943e
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 29, 2024
dabebc4
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 29, 2024
627278a
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl May 31, 2024
fff8143
Added readme entry for generated openAPI doc
jpalvarezl May 31, 2024
236c0bf
Trying to improve folder structure
jpalvarezl May 31, 2024
e949ad4
Removed moved and renamed generated.json files
jpalvarezl May 31, 2024
0e5a2c3
Reverted last 3 commits
jpalvarezl May 31, 2024
733026c
Added entry for generated.json swagger in the readme
jpalvarezl May 31, 2024
e9cf565
Merge branch 'main' into jpalvarezl/inference_2024_05_01_preview
jpalvarezl Jun 4, 2024
7f6fb08
Changed enum to nonExpandable
jpalvarezl Jun 4, 2024
6a1d8bb
Ran formatter
jpalvarezl Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"operationId": "GenerateSpeechFromText",
"title": "Generates text-to-speech audio from the input text.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<deployment-id>",
"body": {
"input": "The text to generate audio for",
"voice": "alloy"
}
},
"responses": {
"200": {
"content-type": "application/octet-stream",
"body": "RIFF...audio.data.omitted"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"operationId": "GetAudioTranscriptionAsResponseObject",
"title": "Gets transcribed text and associated metadata from provided spoken audio data.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<deployment-id>",
"file": "U3dhZ2dlciByb2Nrcw=="
},
"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,16 @@
{
"operationId": "GetAudioTranscriptionAsPlainText",
"title": "Gets transcribed text and associated metadata from provided spoken audio data.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<deployment-id>",
"file": "U3dhZ2dlciByb2Nrcw=="
},
"responses": {
"200": {
"type": "string",
"body": "plain text when requesting text, srt, or vtt"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"operationId": "GetAudioTranslationAsResponseObject",
"title": "Gets English language transcribed text and associated metadata from provided spoken audio data.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<deployment-id>",
"file": "U3dhZ2dlciByb2Nrcw=="
},
"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,16 @@
{
"operationId": "GetAudioTranslationAsPlainText",
"title": "Gets English language transcribed text and associated metadata from provided spoken audio data.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<deployment-id>",
"file": "U3dhZ2dlciByb2Nrcw=="
},
"responses": {
"200": {
"type": "string",
"body": "plain text when requesting text, srt, or vtt"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"operationId": "GetChatCompletions",
"title": "Creates a completion for the provided prompt, parameters and chosen model.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<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!"
},
"logprobs": null
}
],
"usage": {
"completion_tokens": 557,
"prompt_tokens": 33,
"total_tokens": 590
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"operationId": "GetCompletions",
"title": "Creates a completion for the provided prompt, parameters and chosen model.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-05-01-preview",
"deploymentId": "<deployment-id>",
"body": {
"prompt": [
"tell me a joke about mango"
],
"max_tokens": 32,
"temperature": 1.0,
"n": 1
}
},
"responses": {
"200": {
"body": {
"id": "cmpl-7QmVI15qgYVllxK0FtxVGG6ywfzaq",
"created": 1686617332,
"choices": [
{
"text": "es\n\nWhat do you call a mango who's in charge?\n\nThe head mango.",
"index": 0,
"finish_reason": "stop",
"logprobs": null
}
],
"usage": {
"completion_tokens": 20,
"prompt_tokens": 6,
"total_tokens": 26
}
}
}
}
}
Loading