Skip to content

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

fix(core): use inference agent chat constant in cli dispatch

Steven Enamakela2459b537e57
diff --git a/crates/openhuman-core/src/core/cli.rs b/crates/openhuman-core/src/core/cli.rs
index 10ec6b4c5e..153dd86453 100644
--- a/crates/openhuman-core/src/core/cli.rs
+++ b/crates/openhuman-core/src/core/cli.rs
@@ -417,7 +417,7 @@ fn run_call_command(args: &[String]) -> Result<()> {
let value = rt
.block_on(async {
let dispatch = DispatchCtx::process_default();
- let dispatch = if method == "inference.agent_chat" {
+ let dispatch = if method == crate::inference::schemas::INFERENCE_AGENT_CHAT {
dispatch.with_headless_agent_chat()
} else {
dispatch