The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(inference): simplify backend error code extraction logic
Steven Enamakel00467d5c211c
diff --git a/crates/openhuman-tinyhumans/src/inference/backend_error_code.rs b/crates/openhuman-tinyhumans/src/inference/backend_error_code.rsindex c7dccd85d9..a553a0a623 100644--- a/crates/openhuman-tinyhumans/src/inference/backend_error_code.rs+++ b/crates/openhuman-tinyhumans/src/inference/backend_error_code.rs@@ -99,12 +99,8 @@ pub fn extract_backend_error_code_token(err: &str) -> Option<String> {/// managed backend, `"OpenHuman API error (...)"` //// `"OpenHuman streaming API error (...)"`).///-/// Load-bearing for the managed-vs-BYO distinction: a BYO / direct-provider-/// body that merely happens to carry an `errorCode`-shaped field must NOT be-/// treated as backend-owned (CodeRabbit). The provider HTTP emit sites gate on-/// the known `provider` value instead; this helper is for the string-only-/// downstream sites (`expected_error_kind`, `before_send`) that no longer carry-/// the typed provider.+/// Used when callers have only a flattened string and no provider identity to+/// supply to the classifier.pub fn is_managed_backend_envelope(err: &str) -> bool {let label = PROVIDER_LABEL.to_ascii_lowercase();let lower = err.to_ascii_lowercase();