Skip to content

Commit a56eb48

Browse files
authored
Use the new search tool (#3086)
We were using the preview search tool in the past. We should use the new one.
1 parent d77b33d commit a56eb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-rs/core/src/openai_tools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub(crate) enum OpenAiTool {
4949
LocalShell {},
5050
// TODO: Understand why we get an error on web_search although the API docs say it's supported.
5151
// https://platform.openai.com/docs/guides/tools-web-search?api-mode=responses#:~:text=%7B%20type%3A%20%22web_search%22%20%7D%2C
52-
#[serde(rename = "web_search_preview")]
52+
#[serde(rename = "web_search")]
5353
WebSearch {},
5454
#[serde(rename = "custom")]
5555
Freeform(FreeformTool),

0 commit comments

Comments
 (0)