fix(api): classify Atlas Cloud as inference provider (#4885)

Co-authored-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
This commit is contained in:
nb213
2026-07-21 20:10:58 +03:00
committed by GitHub
co-authored by binyangzhu000-sudo Steven Enamakel
parent dfa573859c
commit 4b2d92c033
+9
View File
@@ -311,6 +311,7 @@ pub fn looks_like_local_ai_endpoint(url: &str) -> bool {
const INFERENCE_PROVIDER_DOMAINS: &[&str] = &[
"openrouter.ai",
"openmodel.ai",
"atlascloud.ai",
"openai.com",
"anthropic.com",
"groq.com",
@@ -1189,6 +1190,7 @@ mod tests {
let falls_back: &[&str] = &[
"https://openrouter.ai/api/v1",
"https://api.atlascloud.ai/v1",
"https://api.openai.com/v1",
"https://api.groq.com/openai/v1",
"https://generativelanguage.googleapis.com/v1beta/openai",
@@ -1258,6 +1260,9 @@ mod tests {
assert!(looks_like_inference_provider_endpoint(
"https://api.openmodel.ai/v1"
));
assert!(looks_like_inference_provider_endpoint(
"https://api.atlascloud.ai/v1"
));
// Other managed providers, apex and subdomain.
assert!(looks_like_inference_provider_endpoint(
"https://api.openai.com/v1"
@@ -1317,6 +1322,10 @@ mod tests {
effective_backend_api_url(&Some("https://api.openmodel.ai/v1".to_string())),
expected
);
assert_eq!(
effective_backend_api_url(&Some("https://api.atlascloud.ai/v1".to_string())),
expected
);
}
#[test]