|
3608 | 3608 | "nullable": true,
|
3609 | 3609 | "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"
|
3610 | 3610 | },
|
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 |
| - }, |
3658 | 3611 | "presence_penalty": {
|
3659 | 3612 | "type": "number",
|
3660 | 3613 | "default": 0,
|
|
3918 | 3871 | "nullable": true,
|
3919 | 3872 | "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."
|
3920 | 3873 | },
|
| 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 | + }, |
3921 | 3921 | "presence_penalty": {
|
3922 | 3922 | "type": "number",
|
3923 | 3923 | "default": 0,
|
|
0 commit comments