Skip to content

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

test(openhuman-backend-model): update tests to use accessor methods

Steven Enamakel496d1dd130b8
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
index 6a77687799..ca84304184 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_tests.rs
@@ -94,7 +94,7 @@ fn project_managed_usage_recovers_charged_and_cached() {
usage.charged_amount_usd
);
assert_eq!(usage.cached_input_tokens, 128, "cached tokens backfilled");
- assert_eq!(usage.context_window, 200_000);
+ assert_eq!(usage.context_window(), 200_000);
assert_eq!(usage.input_tokens, 1000);
assert_eq!(usage.output_tokens, 50);
}
@@ -140,7 +140,11 @@ fn project_managed_usage_is_noop_without_envelope() {
.is_none());
let usage = usage_info_from_response(&projected).expect("usage present");
assert_eq!(usage.charged_amount_usd, 0.0);
- assert_eq!(usage.cached_input_tokens, 3, "crate cached count preserved");
+ assert_eq!(
+ usage.cached_input_tokens(),
+ 3,
+ "crate cached count preserved"
+ );
}
// ── probe_readiness (B45 — flows provider-connectivity author gate) ────