Hide the first websocket retry (#11548)

Sometimes connection needs to be quickly reestablished, don't produce an
error for that.
This commit is contained in:
pakrym-oai
2026-02-11 22:48:13 -08:00
committed by GitHub
parent bd3ce98190
commit d391f3e2f9
3 changed files with 100 additions and 10 deletions

View File

@@ -346,7 +346,7 @@ impl ModelClient {
///
/// This combines provider capability and feature gating; both must be true for websocket paths
/// to be eligible.
fn responses_websocket_enabled(&self, model_info: &ModelInfo) -> bool {
pub fn responses_websocket_enabled(&self, model_info: &ModelInfo) -> bool {
self.state.provider.supports_websockets
&& (self.state.enable_responses_websockets || model_info.prefer_websockets)
}