Use the new search tool (#3086)
We were using the preview search tool in the past. We should use the new one.
This commit is contained in:
@@ -49,7 +49,7 @@ pub(crate) enum OpenAiTool {
|
|||||||
LocalShell {},
|
LocalShell {},
|
||||||
// TODO: Understand why we get an error on web_search although the API docs say it's supported.
|
// 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
|
// 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 {},
|
WebSearch {},
|
||||||
#[serde(rename = "custom")]
|
#[serde(rename = "custom")]
|
||||||
Freeform(FreeformTool),
|
Freeform(FreeformTool),
|
||||||
|
|||||||
Reference in New Issue
Block a user