Revert "core: include web_search_preview tool in Responses tools payload"

This reverts commit 6f71511470.
This commit is contained in:
James Peter
2025-08-24 17:45:57 +10:00
parent 6f71511470
commit 018246654c
+1 -4
View File
@@ -169,10 +169,7 @@ impl ModelClient {
let store = prompt.store && auth_mode != Some(AuthMode::ChatGPT);
let full_instructions = prompt.get_full_instructions(&self.config.model_family);
// Build tools list and append the special web_search_preview tool so
// models capable of web search can opt-in seamlessly.
let mut tools_json = create_tools_json_for_responses_api(&prompt.tools)?;
tools_json.push(serde_json::json!({ "type": "web_search_preview" }));
let tools_json = create_tools_json_for_responses_api(&prompt.tools)?;
let reasoning = create_reasoning_param_for_request(
&self.config.model_family,
self.effort,