Skip to content
Open
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions async-openai/src/types/chat/chat_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,14 @@ pub enum ServiceTier {
Priority,
}

/// Constrains effort on reasoning for reasoning models. Currently supported values are none, minimal, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
/// - gpt-5.1 defaults to none, which does not perform reasoning. The supported reasoning values for gpt-5.1 are none, low, medium, and high. Tool calls are supported for all reasoning values in gpt-5.1.
/// - All models before gpt-5.1 default to medium reasoning effort, and do not support none.
/// - The gpt-5-pro model defaults to (and only supports) high reasoning effort.
#[derive(Clone, Serialize, Debug, Deserialize, PartialEq, Default)]
#[serde(rename_all = "lowercase")]
pub enum ReasoningEffort {
None,
Minimal,
Low,
#[default]
Expand Down
Loading