chore: Remove blocking read strings

This commit is contained in:
Jayson Reis 2026-02-18 15:52:07 +00:00 committed by Chummy
parent bc0be9a3c1
commit b9af601943
26 changed files with 331 additions and 243 deletions

View file

@ -1054,7 +1054,10 @@ impl Provider for OpenAiCompatibleProvider {
let url = self.chat_completions_url();
let response = self
.apply_auth_header(self.http_client().post(&url).json(&native_request), credential)
.apply_auth_header(
self.http_client().post(&url).json(&native_request),
credential,
)
.send()
.await?;

View file

@ -45,14 +45,12 @@ fn is_non_retryable(err: &anyhow::Error) -> bool {
return true;
}
let model_catalog_mismatch = msg_lower.contains("model")
msg_lower.contains("model")
&& (msg_lower.contains("not found")
|| msg_lower.contains("unknown")
|| msg_lower.contains("unsupported")
|| msg_lower.contains("does not exist")
|| msg_lower.contains("invalid"));
model_catalog_mismatch
|| msg_lower.contains("invalid"))
}
/// Check if an error is a rate-limit (429) error.