Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 24b847c

Browse files
yuanzhuangyuanzhuangYuan Zhuang
andauthored
Fix AOAI wrong API params (Azure#32803)
Co-authored-by: Yuan Zhuang <[email protected]>
1 parent 15af9f5 commit 24b847c

File tree

1 file changed

+47
-47
lines changed
  • specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2025-01-01-preview

1 file changed

+47
-47
lines changed

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2025-01-01-preview/inference.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3608,53 +3608,6 @@
36083608
"nullable": true,
36093609
"description": "How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.\n"
36103610
},
3611-
"modalities": {
3612-
"$ref": "#/components/schemas/ChatCompletionModalities"
3613-
},
3614-
"prediction": {
3615-
"nullable": true,
3616-
"x-oaiExpandable": true,
3617-
"description": "Configuration for a [Predicted Output](/docs/guides/predicted-outputs), which can greatly improve response times when large parts of the model response are known ahead of time. This is most common when you are regenerating a file with only minor changes to most of the content.",
3618-
"oneOf": [
3619-
{
3620-
"$ref": "#/components/schemas/PredictionContent"
3621-
}
3622-
]
3623-
},
3624-
"audio": {
3625-
"type": "object",
3626-
"description": "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).\n",
3627-
"required": [
3628-
"voice",
3629-
"format"
3630-
],
3631-
"x-oaiExpandable": true,
3632-
"properties": {
3633-
"voice": {
3634-
"type": "string",
3635-
"enum": [
3636-
"alloy",
3637-
"echo",
3638-
"fable",
3639-
"onyx",
3640-
"nova",
3641-
"shimmer"
3642-
],
3643-
"description": "Specifies the voice type. Supported voices are `alloy`, `echo`, \n`fable`, `onyx`, `nova`, and `shimmer`.\n"
3644-
},
3645-
"format": {
3646-
"type": "string",
3647-
"enum": [
3648-
"wav",
3649-
"mp3",
3650-
"flac",
3651-
"opus",
3652-
"pcm16"
3653-
],
3654-
"description": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`. \n"
3655-
}
3656-
}
3657-
},
36583611
"presence_penalty": {
36593612
"type": "number",
36603613
"default": 0,
@@ -3918,6 +3871,53 @@
39183871
"nullable": true,
39193872
"description": "How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs."
39203873
},
3874+
"modalities": {
3875+
"$ref": "#/components/schemas/ChatCompletionModalities"
3876+
},
3877+
"prediction": {
3878+
"nullable": true,
3879+
"x-oaiExpandable": true,
3880+
"description": "Configuration for a [Predicted Output](/docs/guides/predicted-outputs), which can greatly improve response times when large parts of the model response are known ahead of time. This is most common when you are regenerating a file with only minor changes to most of the content.",
3881+
"oneOf": [
3882+
{
3883+
"$ref": "#/components/schemas/PredictionContent"
3884+
}
3885+
]
3886+
},
3887+
"audio": {
3888+
"type": "object",
3889+
"description": "Parameters for audio output. Required when audio output is requested with\n`modalities: [\"audio\"]`. [Learn more](/docs/guides/audio).\n",
3890+
"required": [
3891+
"voice",
3892+
"format"
3893+
],
3894+
"x-oaiExpandable": true,
3895+
"properties": {
3896+
"voice": {
3897+
"type": "string",
3898+
"enum": [
3899+
"alloy",
3900+
"echo",
3901+
"fable",
3902+
"onyx",
3903+
"nova",
3904+
"shimmer"
3905+
],
3906+
"description": "Specifies the voice type. Supported voices are `alloy`, `echo`, \n`fable`, `onyx`, `nova`, and `shimmer`.\n"
3907+
},
3908+
"format": {
3909+
"type": "string",
3910+
"enum": [
3911+
"wav",
3912+
"mp3",
3913+
"flac",
3914+
"opus",
3915+
"pcm16"
3916+
],
3917+
"description": "Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`,\n`opus`, or `pcm16`. \n"
3918+
}
3919+
}
3920+
},
39213921
"presence_penalty": {
39223922
"type": "number",
39233923
"default": 0,

0 commit comments

Comments
 (0)