Skip to content

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

test(inference): update explicit context tests

Steven Enamakel6ac671c63e8a
diff --git a/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs b/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs
index 8767e5152a..33678671a1 100644
--- a/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_explicit_ctx_tests.rs
@@ -123,7 +123,9 @@ async fn hosted_cloud_slug_uses_explicit_auth_policy_and_model_entry() {
ChatModelEntry {
build: Arc::new(move |_| {
Ok((
- Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![name])),
+ Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
+ name,
+ ])),
name.to_string(),
))
}),
@@ -142,9 +144,7 @@ async fn hosted_cloud_slug_uses_explicit_auth_policy_and_model_entry() {
}
}
- async fn response(
- model: Arc<dyn tinyinference_llm::model::ChatModel<()>>,
- ) -> String {
+ async fn response(model: Arc<dyn tinyinference_llm::model::ChatModel<()>>) -> String {
model
.invoke(&(), ModelRequest::new(vec![Message::user("fixture")]))
.await