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(attachments): reformat untyped media source match arm
Steven Enamakeldc31bbf6fb8d
diff --git a/crates/openhuman-core/src/attachments/provider_owner.rs b/crates/openhuman-core/src/attachments/provider_owner.rsindex adafe9dd79..bf9ceb7218 100644--- a/crates/openhuman-core/src/attachments/provider_owner.rs+++ b/crates/openhuman-core/src/attachments/provider_owner.rs@@ -137,12 +137,16 @@ impl MediaSourceResolver<AttachmentAccessScope> for AttachmentModel {data: source.to_owned(),media_type: mime.unwrap_or_else(|| "application/octet-stream".into()),},- MediaSourceKind::Untyped if source.starts_with("data:")- || source.starts_with("http://")- || source.starts_with("https://") => MediaRef::Url {+ MediaSourceKind::Untyped+ if source.starts_with("data:")+ || source.starts_with("http://")+ || source.starts_with("https://") =>+ {+ MediaRef::Url {url: source.to_owned(),media_type: mime,- },+ }+ }MediaSourceKind::Untyped => MediaRef::Path {path: source.to_owned(),media_type: mime,