Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge branch 'dev' into codex/add-atlascloud-provider

Bingxi Zhao (Frank)10a72b076e6a
diff --cc tests/services/test_provider_registry.py
index 0af104f8f,686cc0e57..71896622e
--- a/tests/services/test_provider_registry.py
+++ b/tests/services/test_provider_registry.py
@@@ -10,16 -10,5 +10,20 @@@ def test_nvidia_nim_gateway_detection_b
assert find_gateway(api_base="https://integrate.api.nvidia.com/v1") == spec
+def test_atlascloud_provider_aliases_and_base_detection() -> None:
+ spec = find_by_name("atlascloud")
+
+ assert spec is not None
+ assert spec.display_name == "Atlas Cloud"
+ assert spec.env_key == "ATLASCLOUD_API_KEY"
+ assert spec.backend == "openai_compat"
+ assert spec.mode == "gateway"
+ assert spec.default_api_base == "https://api.atlascloud.ai/v1"
+ assert find_by_name("atlas-cloud") == spec
+ assert find_by_name("atlas_cloud") == spec
+ assert find_by_name("atlas") == spec
+ assert find_gateway(api_base="https://api.atlascloud.ai/v1") == spec
++
++
+ def test_openai_codex_is_not_detected_from_api_base() -> None:
+ assert find_gateway(api_base="https://codex.example.com/v1") is None