Skip to content

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

fix(host_impls): correct memory allocation size for host pointer registration

Steven Enamakel62ad71dffdad
diff --git a/src/openhuman/memory/host_impls.rs b/src/openhuman/memory/host_impls.rs
index 5ac6f72686..c8fe61fc82 100644
--- a/src/openhuman/memory/host_impls.rs
+++ b/src/openhuman/memory/host_impls.rs
@@ -168,22 +168,20 @@ impl ChatHost for OpenHumanChatHost {
role: &str,
config: &SeamConfig,
temperature: f64,
- ) -> Result<(Arc<dyn tinyagents::harness::model::ChatModel<()>>, String), String> {
- let (model, model_id) = crate::openhuman::inference::provider::create_chat_model_with_model_id(
+ ) -> Result<(Arc<dyn tinyinference::model::ChatModel<()>>, String), String> {
+ crate::openhuman::inference::provider::create_chat_model_with_model_id(
role,
host_config(config, &self.config),
temperature,
)
- .map_err(|e| format!("{e:#}"))?;
- Ok((Arc::new(LegacyChatModelBridge::new(model)), model_id))
+ .map_err(|e| format!("{e:#}"))
}
fn usage_from_response(
&self,
- response: &tinyagents::harness::model::ModelResponse,
+ response: &tinyinference::model::ModelResponse,
) -> Option<UsageInfo> {
- let response = bridge_response_to_new(response).ok()?;
- crate::openhuman::agent::tinyagents::model::usage_info_from_response(&response)
+ crate::openhuman::agent::tinyagents::model::usage_info_from_response(response)
}
fn summarizer_available(&self, config: &SeamConfig) -> (bool, &'static str) {