Skip to content

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

Add test for cheaperinference provider choices

aiapienthusiastdb90f3998bd3
diff --git a/tests/api/test_settings_router.py b/tests/api/test_settings_router.py
index 4bb867da9..108a9cb94 100644
--- a/tests/api/test_settings_router.py
+++ b/tests/api/test_settings_router.py
@@ -670,6 +670,13 @@ def test_llm_provider_choices_include_unifically() -> None:
assert llm["unifically"]["base_url"] == "https://api.unifically.com/v1"
+def test_llm_provider_choices_include_cheaperinference() -> None:
+ llm = {item["value"]: item for item in settings_router._provider_choices()["llm"]}
+
+ assert llm["cheaperinference"]["label"] == "Cheaper Inference"
+ assert llm["cheaperinference"]["base_url"] == "https://api.cheaperinference.com/v1"
+
+
def test_llm_provider_choices_include_novita() -> None:
llm = {item["value"]: item for item in settings_router._provider_choices()["llm"]}