Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(attachments): update provider routing helper to use owner wrapper

Steven Enamakel76c54696cb38
diff --git a/crates/openhuman-core/src/attachments/provider_routing_tests.rs b/crates/openhuman-core/src/attachments/provider_routing_tests.rs
index 3cbc38d4fa..6a8cd12b1b 100644
--- a/crates/openhuman-core/src/attachments/provider_routing_tests.rs
+++ b/crates/openhuman-core/src/attachments/provider_routing_tests.rs
@@ -64,18 +64,17 @@ fn controlled_wrapper(
inner: Arc<CaptureModel>,
config: Arc<Config>,
model_inputs: &[InputModality],
-) -> AttachmentModel {
+) -> Arc<dyn ChatModel<()>> {
let mut profile = ModelProfile::default();
profile.modalities.image_in = model_inputs.contains(&InputModality::Image);
profile.modalities.audio_in = model_inputs.contains(&InputModality::Audio);
profile.modalities.document_in = model_inputs.contains(&InputModality::Document);
- AttachmentModel {
+ owner::wrap(
+ &crate::core::runtime::DispatchCtx::default(),
inner,
config,
profile,
- fallback_cache: Mutex::new(Default::default()),
- core: None,
- }
+ )
}
fn user_request(blocks: Vec<ContentBlock>) -> ModelRequest {
ModelRequest::new(vec![Message::User(UserMessage { content: blocks })])