Skip to content

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

test(tests): update cloud provider test assertions

Steven Enamakelbd40dd7749b1
diff --git a/crates/openhuman-core/src/config/schema/cloud_providers_tests.rs b/crates/openhuman-core/src/config/schema/cloud_providers_tests.rs
index c4f13a7d0a..164ea884e9 100644
--- a/crates/openhuman-core/src/config/schema/cloud_providers_tests.rs
+++ b/crates/openhuman-core/src/config/schema/cloud_providers_tests.rs
@@ -116,8 +116,12 @@ fn is_builtin_cloud_slug_matches_presets_only() {
}
#[test]
-fn only_openai_builtin_exposes_responses_api() {
+fn builtin_responses_capabilities_follow_provider_catalog() {
assert!(builtin_cloud_supports_responses_api("openai"));
+ // The merged provider catalog documents these OpenAI-compatible gateways
+ // as supporting /responses too. Preserve that upstream protocol contract.
+ assert!(builtin_cloud_supports_responses_api("openrouter"));
+ assert!(builtin_cloud_supports_responses_api("xai"));
for slug in ["deepseek", "groq", "mistral", "fireworks", "together"] {
assert!(
!builtin_cloud_supports_responses_api(slug),
diff --git a/crates/openhuman-tinyhumans/src/hosted_config_tests.rs b/crates/openhuman-tinyhumans/src/hosted_config_tests.rs
index a4c44c2df0..97985f86e1 100644
--- a/crates/openhuman-tinyhumans/src/hosted_config_tests.rs
+++ b/crates/openhuman-tinyhumans/src/hosted_config_tests.rs
@@ -7,12 +7,13 @@ 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!(openhuman_embed::__host::config::schema::cloud_providers::is_hosted_cloud_identity(
+ "openhuman"
+ ));
+ assert!(openhuman_embed::__host::config::schema::cloud_providers::endpoint_host_is_chat_completions_only(
+ preset.endpoint
+ ));
- assert!(
- openhuman_embed::__host::config::schema::cloud_providers::is_hosted_cloud_identity(
- "openhuman"
- )
- );
assert!(
!openhuman_embed::__host::config::schema::cloud_providers::is_hosted_auth_style(
AuthStyle::Bearer