Skip to content

Commit 806889e

Browse files
committed
mftomi
1 parent 4557f24 commit 806889e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codex-rs/core/src/tools/spec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,12 +1307,12 @@ mod tests {
13071307
#[test]
13081308
fn web_search_cached_sets_external_web_access_false() {
13091309
let config = test_config();
1310-
let model_family = ModelsManager::construct_model_family_offline("gpt-5-codex", &config);
1310+
let model_info = ModelsManager::construct_model_info_offline("gpt-5-codex", &config);
13111311
let mut features = Features::with_defaults();
13121312
features.enable(Feature::WebSearchCached);
13131313

13141314
let tools_config = ToolsConfig::new(&ToolsConfigParams {
1315-
model_family: &model_family,
1315+
model_info: &model_info,
13161316
features: &features,
13171317
});
13181318
let (tools, _) = build_specs(&tools_config, None).build();
@@ -1329,13 +1329,13 @@ mod tests {
13291329
#[test]
13301330
fn web_search_cached_takes_precedence_over_web_search_request() {
13311331
let config = test_config();
1332-
let model_family = ModelsManager::construct_model_family_offline("gpt-5-codex", &config);
1332+
let model_info = ModelsManager::construct_model_info_offline("gpt-5-codex", &config);
13331333
let mut features = Features::with_defaults();
13341334
features.enable(Feature::WebSearchCached);
13351335
features.enable(Feature::WebSearchRequest);
13361336

13371337
let tools_config = ToolsConfig::new(&ToolsConfigParams {
1338-
model_family: &model_family,
1338+
model_info: &model_info,
13391339
features: &features,
13401340
});
13411341
let (tools, _) = build_specs(&tools_config, None).build();

0 commit comments

Comments
 (0)