mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
backend-client: route requests through HTTP client factory
This commit is contained in:
@@ -18,9 +18,11 @@ async fn rate_limits_check(auth_manager: &AuthManager, config: &Config) -> Optio
|
||||
return None;
|
||||
}
|
||||
|
||||
let client = BackendClient::from_auth(config.chatgpt_base_url.clone(), &auth)
|
||||
.map_err(|err| warn!(%err, "failed to construct backend client"))
|
||||
.ok()?;
|
||||
let client = BackendClient::from_auth(
|
||||
config.chatgpt_base_url.clone(),
|
||||
&auth,
|
||||
config.http_client_factory(),
|
||||
);
|
||||
|
||||
let snapshots = client
|
||||
.get_rate_limits_many()
|
||||
|
||||
Reference in New Issue
Block a user