mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Revert "core: include web_search_preview tool in Responses tools payload"
This reverts commit 6f71511470.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user