openai_struct/models/
reasoning_effort.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 ReasoningEffort : **o-series models only**   Constrains effort on reasoning for  [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `low`, `medium`, and `high`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19///     ReasoningEffort:
20///       type: string
21///       enum:
22///         - low
23///         - medium
24///         - high
25///       default: medium
26///       nullable: true
27///       description: |
28///         **o-series models only**
29///
30///         Constrains effort on reasoning for
31///         [reasoning models](https://platform.openai.com/docs/guides/reasoning).
32///         Currently supported values are `low`, `medium`, and `high`. Reducing
33///         reasoning effort can result in faster responses and fewer tokens used
34///         on reasoning in a response.
35/// ```
36#[derive(Debug, Serialize, Deserialize)]
37#[serde(rename_all = "lowercase")]
38pub enum ReasoningEffort {
39    Low,
40    Medium,
41    High,
42}
43
44impl Default for ReasoningEffort {
45    fn default() -> Self {
46        Self::Medium
47    }
48}