From e27c06efc962c2d5b80c442c1fdfb4f9ca0164ba Mon Sep 17 00:00:00 2001 From: BrunoKneffel-2 <318020754+BrunoKneffel-2@users.noreply.github.com> Date: Fri, 18 Sep 2026 13:18:36 +0200 Subject: [PATCH] fix(providers): expose Lyceum in public endpoint discovery --- litellm/provider_endpoints_support_backup.json | 16 ++++++++++++++++ .../test_litellm/llms/openai_like/test_lyceum.py | 1 - .../public_endpoints/test_public_endpoints.py | 8 ++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/litellm/provider_endpoints_support_backup.json b/litellm/provider_endpoints_support_backup.json index dbeaccdda2d..5ef3b36f5f4 100644 --- a/litellm/provider_endpoints_support_backup.json +++ b/litellm/provider_endpoints_support_backup.json @@ -32,6 +32,22 @@ } }, "providers": { + "lyceum": { + "display_name": "Lyceum (`lyceum`)", + "url": "https://docs.litellm.ai/docs/providers/lyceum", + "endpoints": { + "chat_completions": true, + "messages": false, + "responses": false, + "embeddings": false, + "image_generations": false, + "audio_transcriptions": false, + "audio_speech": false, + "moderations": false, + "batches": false, + "rerank": false + } + }, "a2a": { "display_name": "A2A (Agent-to-Agent) (`a2a`)", "url": "https://docs.litellm.ai/docs/providers/a2a", diff --git a/tests/test_litellm/llms/openai_like/test_lyceum.py b/tests/test_litellm/llms/openai_like/test_lyceum.py index 6850b7833a0..6a245aeb6be 100644 --- a/tests/test_litellm/llms/openai_like/test_lyceum.py +++ b/tests/test_litellm/llms/openai_like/test_lyceum.py @@ -8,7 +8,6 @@ import litellm from litellm.exceptions import MidStreamFallbackError from litellm.litellm_core_utils.get_llm_provider_logic import get_llm_provider -# Endpoint and model ID: https://docs.lyceum.technology/docs/inference/serverless (2026-09-18). BASE: Final = "https://api.lyceum.technology/openai/v1" MODEL: Final = "lyceum/z-ai/glm-5.3-flash" REMOTE_MODEL: Final = "z-ai/glm-5.3-flash" diff --git a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py index 0d82ed778f5..c93b86d7635 100644 --- a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py +++ b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py @@ -951,6 +951,14 @@ def test_get_supported_endpoints_chat_completions_present(reset_endpoints_cache) assert len(chat["providers"]) > 0 +def test_get_supported_endpoints_includes_lyceum_chat(reset_endpoints_cache): + response = _make_client().get("/public/endpoints") + assert response.status_code == 200 + endpoints = response.json()["endpoints"] + chat = next(item for item in endpoints if item["key"] == "chat_completions") + assert {"slug": "lyceum", "display_name": "Lyceum"} in chat["providers"] + + def test_get_supported_endpoints_display_names_have_no_slug_suffix( reset_endpoints_cache, ):