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
fix(client): change error_body_shape to accept Value instead of string
Steven Enamakel715ed09449a5
diff --git a/crates/openhuman-session/src/client.rs b/crates/openhuman-session/src/client.rsindex e8378f65f9..d12da9a7d0 100644--- a/crates/openhuman-session/src/client.rs+++ b/crates/openhuman-session/src/client.rs@@ -176,11 +176,11 @@ impl FetchMeError {}}-fn error_body_shape(body: &str) -> &'static str {- if body.trim().is_empty() {- "empty response body"- } else {- "non-empty response body"+fn error_body_shape(body: &Value) -> &'static str {+ match body {+ Value::Null => "empty response body",+ Value::String(value) if value.trim().is_empty() => "empty response body",+ _ => "non-empty response body",}}