From a56eb48195a1b154965c70f709fc976f183ecfa2 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Wed, 3 Sep 2025 01:16:47 -0700 Subject: [PATCH] Use the new search tool (#3086) We were using the preview search tool in the past. We should use the new one. --- codex-rs/core/src/openai_tools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/openai_tools.rs b/codex-rs/core/src/openai_tools.rs index 59ca7a83..0505b6af 100644 --- a/codex-rs/core/src/openai_tools.rs +++ b/codex-rs/core/src/openai_tools.rs @@ -49,7 +49,7 @@ pub(crate) enum OpenAiTool { LocalShell {}, // TODO: Understand why we get an error on web_search although the API docs say it's supported. // https://platform.openai.com/docs/guides/tools-web-search?api-mode=responses#:~:text=%7B%20type%3A%20%22web_search%22%20%7D%2C - #[serde(rename = "web_search_preview")] + #[serde(rename = "web_search")] WebSearch {}, #[serde(rename = "custom")] Freeform(FreeformTool),