openai: Don't send reasoning_effort if it's not set (#36228)

Release Notes:

- N/A
This commit is contained in:
Oleksiy Syvokon 2025-08-15 12:12:18 +03:00 committed by GitHub
parent 8d6982e78f
commit a3dcc76687
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -257,6 +257,7 @@ pub struct Request {
pub tools: Vec<ToolDefinition>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub prompt_cache_key: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub reasoning_effort: Option<ReasoningEffort>,
}