mirror of
https://github.com/openai/codex.git
synced 2026-11-12 21:20:34 +00:00
enable search config change
This commit is contained in:
@@ -266,6 +266,7 @@ pub struct SendUserTurnParams {
|
||||
pub model: String,
|
||||
pub effort: ReasoningEffort,
|
||||
pub summary: ReasoningSummary,
|
||||
pub enable_web_search: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, TS)]
|
||||
|
||||
@@ -76,6 +76,9 @@ pub enum Op {
|
||||
|
||||
/// Will only be honored if the model is configured to use reasoning.
|
||||
summary: ReasoningSummaryConfig,
|
||||
|
||||
/// Whether to enable web search.
|
||||
enable_web_search: bool,
|
||||
},
|
||||
|
||||
/// Override parts of the persistent turn context for subsequent turns.
|
||||
@@ -108,6 +111,10 @@ pub enum Op {
|
||||
/// Updated reasoning summary preference (honored only for reasoning-capable models).
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
summary: Option<ReasoningSummaryConfig>,
|
||||
|
||||
/// Whether to enable web search.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
enable_web_search: Option<bool>,
|
||||
},
|
||||
|
||||
/// Approve a command execution
|
||||
|
||||
Reference in New Issue
Block a user