mirror of
https://github.com/openai/codex.git
synced 2026-05-05 22:01:37 +03:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user