Skip to content

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

test(inference): use response text accessor in complete_once test

Steven Enamakelf5f119d3b642
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs
index 9c319d408e..628abcc229 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs
@@ -69,7 +69,7 @@ async fn forwards_schema_max_tokens_and_provider_options() {
assert!(body.get("tools").is_none(), "a completion advertises no tools");
assert_eq!(response.finish_reason.as_deref(), Some("stop"));
- assert_eq!(response.message.text(), "{\"ok\":true}");
+ assert_eq!(response.text(), "{\"ok\":true}");
}
#[tokio::test]