diff --git a/tests/unit/proxy/public_endpoints/test_public_endpoints.py b/tests/unit/proxy/public_endpoints/test_public_endpoints.py index 830871c7bfc..396de55ee1e 100644 --- a/tests/unit/proxy/public_endpoints/test_public_endpoints.py +++ b/tests/unit/proxy/public_endpoints/test_public_endpoints.py @@ -1,4 +1,5 @@ import json +import os import re from datetime import datetime, timezone from importlib.resources import files @@ -8,6 +9,8 @@ from unittest.mock import AsyncMock, MagicMock, patch import pytest +import litellm + from fastapi import FastAPI from fastapi.testclient import TestClient @@ -1603,6 +1606,10 @@ async def test_get_whats_new_serves_bundled_list_without_fetching_when_no_url_is assert len(served.launches) > 0 +def test_whats_new_url_defaults_to_unset_so_only_the_env_var_opts_into_a_remote_list() -> None: + assert litellm.whats_new_url == os.getenv("LITELLM_WHATS_NEW_URL") + + @pytest.mark.asyncio async def test_get_whats_new_fetches_once_per_process( monkeypatch: pytest.MonkeyPatch, reset_whats_new_cache: None diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 4c69007bb21..d73394eb74c 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -14163,10 +14163,10 @@ export interface paths { * Get Public Whats New * @description Return the launches the dashboard Home page shows under What's new. * - * Resolved once per process: fetched from ``litellm.whats_new_url`` (override with ``LITELLM_WHATS_NEW_URL``) - * on the first request, falling back to the list bundled with the package on any failure, so an airgapped - * proxy serves the bundled list without retrying. Set ``LITELLM_LOCAL_WHATS_NEW=True`` to skip the fetch. - * A restart picks up a newly published list. + * Serves the list bundled with this release. Set ``LITELLM_WHATS_NEW_URL`` to fetch a remote list instead, + * resolved once per process on the first request and falling back to the bundled list on any failure, so an + * airgapped proxy serves the bundled list without retrying. ``LITELLM_LOCAL_WHATS_NEW=True`` forces the + * bundled list even when a URL is set. A restart picks up a newly published list. */ get: operations["get_public_whats_new_public_whats_new_get"]; put?: never;