Skip to content

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

test(inference): update catalog list closures for new signature

Steven Enamakel6af547170e96
diff --git a/crates/openhuman-core/src/inference/registry_tests.rs b/crates/openhuman-core/src/inference/registry_tests.rs
index 7cbc9a43a6..80d0a740e8 100644
--- a/crates/openhuman-core/src/inference/registry_tests.rs
+++ b/crates/openhuman-core/src/inference/registry_tests.rs
@@ -117,7 +117,7 @@ async fn a_registered_catalog_answers_the_model_listing_for_its_provider() {
register_catalog(
"fake-catalog",
CatalogEntry {
- list: Arc::new(|_| {
+ list: Arc::new(|_, _| {
Box::pin(async {
Ok(Outcome::new(
serde_json::json!({ "models": [{ "id": "registered" }] }),
@@ -153,7 +153,7 @@ fn a_registered_catalog_supplies_the_managed_limits_request() {
register_catalog(
PROVIDER_OPENHUMAN,
CatalogEntry {
- list: Arc::new(|_| Box::pin(async { Err("unused".to_string()) })),
+ list: Arc::new(|_, _| Box::pin(async { Err("unused".to_string()) })),
limits: Some(Arc::new(|model, _| {
Some(DiscoveryRequest::new("https://catalog.example/v1", model))
})),