mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
Keep standalone web search schema under compaction budget
This commit is contained in:
@@ -112,9 +112,12 @@ async fn standalone_web_search_round_trips_encrypted_output() -> Result<()> {
|
||||
assert_eq!(requests.len(), 2);
|
||||
|
||||
let first_response = requests[0].body_json();
|
||||
assert!(
|
||||
requests[0].tool_by_name("web", "run").is_some(),
|
||||
"web.run should be sent to the model"
|
||||
let web_run = requests[0]
|
||||
.tool_by_name("web", "run")
|
||||
.context("web.run should be sent to the model")?;
|
||||
assert_eq!(
|
||||
web_run.pointer("/parameters/properties/time/items/properties/utc_offset/description"),
|
||||
Some(&json!("UTC offset formatted like \"+03:00\"."))
|
||||
);
|
||||
assert!(
|
||||
!has_hosted_web_search(&first_response),
|
||||
|
||||
Reference in New Issue
Block a user