mirror of
https://github.com/openai/codex.git
synced 2026-04-29 00:55:38 +00:00
chore: rm web-search-eligible header (#10660)
default-enablement of web_search is now client-side, no need to send eligibility headers to backend. Tested locally, headers no longer sent. will wait for corresponding backend change to deploy before merging
This commit is contained in:
@@ -1340,15 +1340,7 @@ async fn azure_responses_request_includes_store_and_reasoning_ids() {
|
||||
});
|
||||
|
||||
let mut stream = client_session
|
||||
.stream(
|
||||
&prompt,
|
||||
&model_info,
|
||||
&otel_manager,
|
||||
effort,
|
||||
summary,
|
||||
true,
|
||||
None,
|
||||
)
|
||||
.stream(&prompt, &model_info, &otel_manager, effort, summary, None)
|
||||
.await
|
||||
.expect("responses stream to start");
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ struct WebsocketTestHarness {
|
||||
model_info: ModelInfo,
|
||||
effort: Option<ReasoningEffortConfig>,
|
||||
summary: ReasoningSummary,
|
||||
web_search_eligible: bool,
|
||||
otel_manager: OtelManager,
|
||||
}
|
||||
|
||||
@@ -198,7 +197,6 @@ async fn responses_websocket_emits_reasoning_included_event() {
|
||||
&harness.otel_manager,
|
||||
harness.effort,
|
||||
harness.summary,
|
||||
harness.web_search_eligible,
|
||||
None,
|
||||
)
|
||||
.await
|
||||
@@ -269,7 +267,6 @@ async fn responses_websocket_emits_rate_limit_events() {
|
||||
&harness.otel_manager,
|
||||
harness.effort,
|
||||
harness.summary,
|
||||
harness.web_search_eligible,
|
||||
None,
|
||||
)
|
||||
.await
|
||||
@@ -455,7 +452,6 @@ async fn websocket_harness_with_runtime_metrics(
|
||||
.with_metrics(metrics);
|
||||
let effort = None;
|
||||
let summary = ReasoningSummary::Auto;
|
||||
let web_search_eligible = true;
|
||||
let client = ModelClient::new(
|
||||
None,
|
||||
conversation_id,
|
||||
@@ -474,7 +470,6 @@ async fn websocket_harness_with_runtime_metrics(
|
||||
model_info,
|
||||
effort,
|
||||
summary,
|
||||
web_search_eligible,
|
||||
otel_manager,
|
||||
}
|
||||
}
|
||||
@@ -491,7 +486,6 @@ async fn stream_until_complete(
|
||||
&harness.otel_manager,
|
||||
harness.effort,
|
||||
harness.summary,
|
||||
harness.web_search_eligible,
|
||||
None,
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user