test(home): pin whats_new_url to the env var and regenerate the dashboard API types

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-10-11 05:57:04 +00:00
parent d1ae7ea085
commit 4bfec53865
2 changed files with 11 additions and 4 deletions

View file

@ -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

View file

@ -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;