Skip to content

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

refactor(inference): simplify routes collection in turn_models

Steven Enamakel13e4ae851466
diff --git a/crates/openhuman-core/src/inference/turn_models.rs b/crates/openhuman-core/src/inference/turn_models.rs
index 0ae78bab8f..ae45feb850 100644
--- a/crates/openhuman-core/src/inference/turn_models.rs
+++ b/crates/openhuman-core/src/inference/turn_models.rs
@@ -53,7 +53,7 @@ impl TurnModels {
pub(crate) fn resolver(&self) -> tinyagents_harness::host::PrebuiltModelResolver<()> {
tinyagents_harness::host::PrebuiltModelResolver::new(
self.primary.clone(),
- self.routes.iter().cloned().collect::<Vec<_>>(),
+ self.routes.to_vec(),
)
.with_lead_model(Arc::new(tinyinference_llm::model::ErrorSlotModel::new(
self.primary.clone(),