Skip to content

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

refactor(config): remove endpoint_host function

Steven Enamakel8da7678b8169
diff --git a/crates/openhuman-core/src/config/schema/cloud_providers.rs b/crates/openhuman-core/src/config/schema/cloud_providers.rs
index de593ce25b..7ae2b95b45 100644
--- a/crates/openhuman-core/src/config/schema/cloud_providers.rs
+++ b/crates/openhuman-core/src/config/schema/cloud_providers.rs
@@ -205,13 +205,6 @@ pub fn builtin_cloud_supports_responses_api(slug: &str) -> bool {
provider_presets(&hosted).builtin_cloud_supports_responses_api(slug)
}
-/// Extract the lowercased authority host from an endpoint URL, dropping the
-/// scheme, any userinfo, the port, and the path. Returns `None` when no host
-/// can be parsed. Tolerant of a missing scheme and of IPv6 literals.
-pub fn endpoint_host(endpoint: &str) -> Option<String> {
- tinyinference_providers::builtin::endpoint_host(endpoint)
-}
-
/// Whether `host` is the authority host of any built-in cloud **inference**
/// provider (e.g. `openrouter.ai`, `api.openai.com`, `api.groq.com`).
///