Skip to content

Commit da3785f

Browse files
authored
Revert "feat: add retry logic, and treat 5xx errors as throttling to enable adaptive rate-limiting (#2427)" (#2431)
This reverts commit 6cfe4cf.
1 parent 6cfe4cf commit da3785f

File tree

2 files changed

+1
-224
lines changed

2 files changed

+1
-224
lines changed

crates/chat-cli/src/api_client/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ mod error;
55
pub mod model;
66
mod opt_out;
77
pub mod profile;
8-
mod retry_classifier;
98
pub mod send_message_output;
109

1110
use std::sync::Arc;
@@ -148,7 +147,6 @@ impl ApiClient {
148147
.app_name(app_name())
149148
.endpoint_url(endpoint.url())
150149
.stalled_stream_protection(stalled_stream_protection_config())
151-
.retry_classifier(retry_classifier::QCliRetryClassifier::new())
152150
.build(),
153151
));
154152
},
@@ -162,7 +160,6 @@ impl ApiClient {
162160
.app_name(app_name())
163161
.endpoint_url(endpoint.url())
164162
.stalled_stream_protection(stalled_stream_protection_config())
165-
.retry_classifier(retry_classifier::QCliRetryClassifier::new())
166163
.build(),
167164
));
168165
},
@@ -499,7 +496,7 @@ fn timeout_config(database: &Database) -> TimeoutConfig {
499496
}
500497

501498
fn retry_config() -> RetryConfig {
502-
RetryConfig::adaptive().with_max_attempts(3)
499+
RetryConfig::standard().with_max_attempts(1)
503500
}
504501

505502
pub fn stalled_stream_protection_config() -> StalledStreamProtectionConfig {

crates/chat-cli/src/api_client/retry_classifier.rs

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)