Skip to content

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

refactor(inference): simplify boxed chat model construction

Steven Enamakelb55c7a5b7c23
diff --git a/crates/openhuman-core/src/inference/http/backend.rs b/crates/openhuman-core/src/inference/http/backend.rs
index 9b8a245b95..499bab57d9 100644
--- a/crates/openhuman-core/src/inference/http/backend.rs
+++ b/crates/openhuman-core/src/inference/http/backend.rs
@@ -74,7 +74,7 @@ impl ChatBackend for HostChatBackend {
);
}
Ok(ResolvedChat {
- chat_model: Box::new(chat_model),
+ chat_model,
model_id,
temperature: raw,
})