Skip to content

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

test(hosted_config): add check for chat completions endpoint host

Steven Enamakelae1fd810f59c
diff --git a/crates/openhuman-tinyhumans/src/hosted_config_tests.rs b/crates/openhuman-tinyhumans/src/hosted_config_tests.rs
index d82124b580..9bc709ae3c 100644
--- a/crates/openhuman-tinyhumans/src/hosted_config_tests.rs
+++ b/crates/openhuman-tinyhumans/src/hosted_config_tests.rs
@@ -7,6 +7,7 @@ fn hosted_openhuman_preset_and_legacy_auth_policy_are_registered_before_config_l
let preset = super::openhuman_preset();
assert_eq!(preset.endpoint, "https://api.openhuman.ai/v1");
assert_eq!(preset.auth_style, AuthStyle::OpenhumanJwt);
+ assert!(super::provider_presets().endpoint_host_is_chat_completions_only("api.openhuman.ai"));
assert!(
openhuman_embed::__host::config::schema::cloud_providers::is_hosted_cloud_identity(
"openhuman"