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
test(attachments): align oversized inline media assertion with limit
Steven Enamakela97fe839e1aa
diff --git a/crates/openhuman-core/src/attachments/provider_routing_tests.rs b/crates/openhuman-core/src/attachments/provider_routing_tests.rsindex 44a9691cec..9c964401ef 100644--- a/crates/openhuman-core/src/attachments/provider_routing_tests.rs+++ b/crates/openhuman-core/src/attachments/provider_routing_tests.rs@@ -550,7 +550,9 @@ async fn unsupported_media_urls_and_oversized_inline_sources_fail_before_inferenlet error = model.invoke(&(), unsupported).await.unwrap_err();assert!(error.to_string().contains("unsupported media URL scheme"));- let max_encoded_bytes = 50 * 1024 * 1024 * 4 / 3 + 4;+ // Leave room for a data-URI header while still proving an oversized body+ // is rejected before the owner resolver or inference transport runs.+ let max_encoded_bytes = 50 * 1024 * 1024 * 4 / 3 + 4097;let oversized = user_request(vec![ContentBlock::Document(MediaRef::Base64 {data: "A".repeat(max_encoded_bytes + 1),media_type: "application/octet-stream".into(),@@ -558,6 +560,6 @@ async fn unsupported_media_urls_and_oversized_inline_sources_fail_before_inferenlet error = model.invoke(&(), oversized).await.unwrap_err();assert!(error.to_string()- .contains("inline media exceeds size limit"));+ .contains("attachment exceeds configured file limit"));assert!(transport.requests.lock().unwrap().is_empty());}