openai_struct/models/
response_modalities.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https:///platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https:///github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub ResponseModalities : Output types that you would like the model to generate. Most models are capable of generating text, which is the pub default:  `[\"text\"]`  The `gpt-4o-audio-preview` model can also be used to  [generate audio](/docs/guides/audio). To request that this model generate  both text and audio responses, you can pub use:  `[\"text\", \"audio\"]`
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// ResponseModalities:
20///   type: array
21///   nullable: true
22///   description: >
23///     Output types that you would like the model to generate.
24///
25///     Most models are capable of generating text, which is the default:
26///
27///
28///     `["text"]`
29///
30///
31///     The `gpt-4o-audio-preview` model can also be used to
32///
33///     [generate audio](/docs/guides/audio). To request that this model
34///     generate
35///
36///     both text and audio responses, you can use:
37///
38///
39///     `["text", "audio"]`
40///   items:
41///     type: string
42///     enum:
43///       - text
44///       - audio
45/// ```
46pub type ResponseModalities = Vec<ResponseModalitiesItem>;
47
48#[derive(Debug, Serialize, Deserialize)]
49#[serde(rename_all = "lowercase")]
50pub enum ResponseModalitiesItem {
51    Text,
52    Audio,
53}