litellm/tests/unit/proxy/proxy_server
Delweng 1cd9e5a6f4 fix(proxy): report the effective store_model_in_db flag to the Admin UI config endpoints
/config/list and /config/field/info only saw the YAML general_settings value
and the DB-stored row — neither knows about the STORE_MODEL_IN_DB env var, so
a deployment that enabled the feature via env reported the flag as false and
the Admin UI 'Store Model in DB' toggle rendered OFF while model persistence
was actually active.

The runtime global is resolved at startup from YAML general_settings OR the
env var OR a DB override, and reapplied from the DB row on periodic reloads.
Publish the resolved value back into both reporting surfaces at each of those
points via a new _publish_store_model_in_db helper. Config-file-owned keys are
never written to the store, and the general_settings write is skipped when it
aliases the store itself.

Fixes #47238

Signed-off-by: Delweng <delweng@gmail.com>
2026-10-18 14:27:10 +08:00
..
.coverage_baseline
__init__.py
_coverage_check.py
_pin_check.py
conftest.py test: repair stale and polluting tests red on scheduled main CI (#44229) 2026-10-02 21:32:17 +00:00
test_background_health.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_exception_handlers.py fix(proxy): answer a rejected websocket handshake without crashing the HTTP exception handler (#45251) 2026-10-07 22:27:46 -07:00
test_harness_smoke.py
test_lifecycle.py fix(proxy): track and drain management audit log writes on shutdown (#43594) 2026-10-16 08:41:34 +00:00
test_openapi_customization.py
test_proxy_config.py fix(proxy): warn at boot when a config environment_variables key replaces a value already set in the process environment (#47165) 2026-10-17 20:52:01 +00:00
test_routes_anthropic_beta.py
test_routes_assistants.py fix(proxy): keep the mapped status on assistants and threads route errors (#44994) 2026-10-09 16:55:15 -07:00
test_routes_audio.py
test_routes_chat_completions.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_routes_completions.py
test_routes_config.py fix(proxy): report the effective store_model_in_db flag to the Admin UI config endpoints 2026-10-18 14:27:10 +08:00
test_routes_embeddings.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_routes_invitation.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_routes_login_sso.py test(cost): add tier 1 claude messages stream twins and recapture drifted usage shapes (#46690) 2026-10-15 17:11:13 +00:00
test_routes_misc.py
test_routes_model_cost_map.py fix(caching): key response cache by router model group in litellm_metadata (#44542) 2026-10-05 17:06:21 +00:00
test_routes_model_info.py fix(proxy): list team access group models in /v1/model/info and keep key model lists narrow (#32599) 2026-10-15 10:23:03 -07:00
test_routes_model_metrics.py
test_routes_models.py feat(proxy): serve a Codex-native model catalog with per-model service_tiers from /v1/models (#44136) 2026-10-03 20:42:55 +00:00
test_routes_moderations.py
test_routes_onboarding.py
test_routes_queue.py
test_routes_threads.py fix(proxy): keep the mapped status on assistants and threads route errors (#44994) 2026-10-09 16:55:15 -07:00
test_routes_utils.py feat(count_tokens)!: configurable token_count_framing and token_count_model, count source in the response (#46777) 2026-10-17 17:11:27 -07:00
test_spend_counters.py fix(caching): make Redis Cluster commands wait for a pool slot instead of tripping the circuit breaker (#46488) 2026-10-14 15:27:00 -07:00
test_streaming_helpers.py fix(proxy)!: end a chat completions stream with an error event when a guardrail blocks mid-stream (#46953) 2026-10-17 18:00:12 -07:00
test_team_model_name_translation.py fix(proxy): resolve model aliases to their target deployment for listing metadata (#41041) 2026-10-15 00:38:50 -07:00