Skip to content

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

test(agent): convert model name literals to owned strings

Steven Enamakel7b4f500d6af2
diff --git a/crates/openhuman-core/src/agent/agent_tests.rs b/crates/openhuman-core/src/agent/agent_tests.rs
index 2ebd804f35..e08add4efe 100644
--- a/crates/openhuman-core/src/agent/agent_tests.rs
+++ b/crates/openhuman-core/src/agent/agent_tests.rs
@@ -235,7 +235,7 @@ fn build_agent_with(
let tmp = tempfile::TempDir::new().unwrap();
let agent = OpenHumanSessionHost::builder()
.chat_model(provider)
- .model_name("agent-test/mock")
+ .model_name("agent-test/mock".into())
.tools(tools)
.tool_dispatcher(dispatcher)
.workspace_dir(tmp.path().to_path_buf())
@@ -252,7 +252,7 @@ fn build_agent_with_config(
let tmp = tempfile::TempDir::new().unwrap();
let agent = OpenHumanSessionHost::builder()
.chat_model(provider)
- .model_name("agent-test/mock")
+ .model_name("agent-test/mock".into())
.tools(tools)
.tool_dispatcher(Box::new(NativeDialect))
.workspace_dir(tmp.path().to_path_buf())