litellm/tests/unit/proxy
maciej-berri abc17984b7
feat(rust-gateway): read the stored config again when the proxy announces a change on Redis (#54054)
* feat(rust-config): add repositories for the config, model and credential tables

Typed reads of LiteLLM_Config by param name, and of every LiteLLM_ProxyModelTable and
LiteLLM_CredentialsTable row, for the gateway to load its DB config from. Model and
credential reads prefer the writer and fall back to the replica only while the writer
is down, like Python's WriterPinnedClient.

* feat(rust-config): layer LiteLLM_Config settings rows over the config document

* feat(rust-gateway): hold config-built state in a swappable unit

Both gateway modes now serve from Live, which holds the AppState, the Admit
built over it and the native app as one Served and replaces them together.
An admitted request carries the Served that admitted it, so a swap never
splits a request across two configs. Nothing swaps outside tests yet.

* feat(rust-config): merge DB models and credentials into the config model list

Adds litellm_config::db::models::merge, a pure function that adds decrypted LiteLLM_ProxyModelTable rows to the config document's model_list the way Python's reconcile upserts them, and fills each litellm_credential_name from the file's credential_list and decrypted LiteLLM_CredentialsTable rows. It runs on the document before os.environ/ resolution. Nothing calls it yet.

* feat(rust-config): add litellm-at-rest crate for salt-key encryption of DB values

Ports the non-FIPS paths of encrypt_decrypt_utils.py. Decrypt detects the
v2:gcm: AES-256-GCM format and falls back to the legacy NaCl SecretBox
format, encrypt writes either, and decrypt_or_original mirrors
decrypt_value_helper(return_original_value=True). Fixtures captured once
from Python pin both directions.

* feat(rust-config): load a config document in steps so DB rows can be layered in

* feat(rust-gateway): boot from the config file plus the config stored in the DB

* fix(rust-gateway): honor the default-off flags /model/new stores with every model

* feat(rust-gateway): read the config stored in the DB again on an interval and swap to it

A poller in both modes reads the stored settings rows, models and credentials every proxy_config_reload_interval_seconds, logs what changed by model id, credential and settings key, and swaps the served state when the decrypted rows changed. Python's guards hold: a failed model or credential read changes nothing, a failed settings read removes no model. The first read that loads lifts db_config_not_loaded. AppState::next rebuilds only the config-derived parts over the Redis clients, DB pools, HTTP pool, license, routing cache and limiter counters the process keeps.

* feat(rust-gateway): read the stored config again when the proxy announces a change on Redis

* fix(rust-gateway): box the poll's reload so release builds stay under the layout query depth

* fix(rust-gateway): honor general_settings.encryption_algorithm in admit

Python reads it only when it writes an encrypted value, and the at-rest
crate detects the format of each value it reads.

* feat(rust-gateway): warn when a stored boot-only setting changes, read PROXY_CONFIG_RELOAD_INTERVAL_SECONDS

Each read of the stored config names the stored settings the kept Redis
clients and database pools are built from that differ from boot, since
applying them takes a restart. The reload interval falls back to
PROXY_CONFIG_RELOAD_INTERVAL_SECONDS when the config leaves it unset, as
in Python.

* feat(rust-config): add a repository for the LiteLLM_UISettings row

The proxy merges eleven runtime flags from this row into general_settings,
forward_client_headers_to_llm_api among them, so the gateway needs to read it
next to the LiteLLM_Config rows.

* fix(rust-at-rest): zero the derived key when it is dropped

* feat(rust-config): layer the LiteLLM_UISettings flags into general_settings, and fail a Python test when the copied key lists drift

The proxy copies eleven runtime flags from the LiteLLM_UISettings row into
general_settings, forward_client_headers_to_llm_api among them. The overlay now
takes that row as UiSettings and applies the flags under the file, as
sync_ui_settings_to_general_settings does, pinned by new Python-captured cases.

A unit test in tests/unit/proxy/test_proxy_server.py compares Python's live key
lists with the tables the Rust overlay copies, so adding or removing a key on the
Python side fails CI until the fixture and keys.rs are regenerated.

* fix(rust-gateway): use arc-swap 1.9.5

* fix(rust-config): read os.environ/ in a stored model row only where Python does

A stored row was merged into the document before the config-load walk, which reads
os.environ/ references anywhere. Python reads them only in top-level litellm_params
strings (_resolve_db_litellm_param), so a team model named os.environ/LITELLM_MASTER_KEY
got the master key resolved into the merged config. merge now takes a ResolvedModel,
made by DbModel::resolve with exactly Python's scope, and expects the file document
already resolved. Stored credential values stay literal, as in Python.

* fix(rust-config): add the general_settings keys main added since the overlay branched

Merging main brought eight new ConfigGeneralSettings fields, which the new drift
test caught in CI. Regenerated db_settings.json and copied the keys into keys.rs.

* feat(rust-gateway): layer the UI settings flags in at boot and read stored model references only where Python does

Boot now reads the LiteLLM_UISettings row next to the LiteLLM_Config rows and passes it
to the settings overlay, whenever the gateway has a database, as the proxy syncs it at
startup with or without store_model_in_db. A flag set only through the UI, such as
forward_client_headers_to_llm_api, now reaches admit, which sends those requests to
Python. A UI settings row that cannot be read leaves every request to Python.

Stored models are merged after the file's os.environ/ walk, through
Document::resolve_with_stored, so each row reads only its top-level litellm_params
references like _resolve_db_litellm_param and stored credential values stay literal.

* feat(rust-config): let a caller read the UI settings it was given

The gateway's reload compares two reads of the stored config key by key, so it needs
the settings a UiSettings holds.

* style(rust-gateway): format after merging the boot branch

* fix(rust-gateway): build after merging the poll branch's UI settings read

Drops the rand dependency the merge listed twice and gives the slow test rows the
new ui_settings read.

* fix(rust-config): fill a credential's oidc/ api_key only for models on the credential's own origins

Python binds a stored credential's oidc/ api_key to the origins of the credential's
upstream params (CredentialApiKeySecretReference) and refuses a call that points
elsewhere. The merge copied the key in as a plain param, so a model with its own
api_base would have carried it there. Now the key is left out for such a model and
reported in Merged::withheld_secrets, using Python's origin rule (scheme, host and
port with the default port filled in, every upstream param plus a URL in model, and
a credential without any upstream only for a model without one).

* feat(rust-at-rest): derive the key with KBKDF in fips_mode and compile out XSalsa20 under fips

AtRestKey::derive takes a KeyDerivation. FipsKbkdf matches Python's
_fips_at_rest_key byte for byte (SP 800-108 counter-mode HMAC-SHA256 with
OpenSSL's default layout), refuses a salt key under 14 bytes, and reads and
writes only v2:gcm: values. The fips feature compiles XSalsa20 out, and
crypto_secretbox now comes from a default xsalsa20 feature.

SHA-256, HMAC, KBKDF and AES-256-GCM sit behind one private module so a FIPS
build can move them onto a validated module later. NotCiphertext and TooLong
no longer carry the RustCrypto aead::Error, which held no information.

The fips_mode fixtures come from Python's own code run on OpenSSL's default
provider, with every KBKDF output checked against cryptography's KBKDFHMAC.

* feat(rust-gateway): warn about a model its credential's oidc/ api_key may not reach

G4 now leaves such a key out. The gateway logs each such model and a test pins that
admit sends it to Python.

* fix(rust-at-rest): fail closed under the fips feature until a validated module is wired in

Under `fips` every operation in the approved.rs seam (SHA-256 and KBKDF key
derivation, AES-256-GCM seal with its nonce, and open) returns
NoValidatedBackend instead of running RustCrypto, so that build reads and
writes nothing. In the default build FipsKbkdf stays as format compatibility
with values Python wrote in fips_mode.

AtRestKey::from_salt_key is gone because key derivation can now fail.
AtRestKey::derive returns KeyError, which replaces SaltKeyTooShort.

* feat(rust-config): read general_settings.fips_mode as the proxy does

FipsMode::of reads it like fips_mode_setting: absent is off, a bool as written, text
through str_to_bool, anything else is not a boolean, which the proxy refuses to boot
with. It is no ConfigGeneralSettings field, so a stored row cannot set it, and a test
pins that.

* feat(rust-gateway): decrypt the stored config with the fips_mode key when fips_mode is on

With general_settings.fips_mode on, the at-rest key is the KBKDF key of
LITELLM_SALT_KEY alone, as in Python. A fips_mode that is not a boolean, a missing or
short salt key, or a build with no validated backend leaves the stored config unread,
so every request goes to Python. It never falls back to the SHA-256 key.

* test(rust-gateway): a model blocked through the API goes to Python after the next read

/model/block writes LiteLLM_ProxyModelTable.blocked and publishes a config change, so
the poll and the Redis listener both read it again. Pins that the reload swaps to a
config whose admit sends the blocked model to Python, and back once unblocked.

* fix(rust-gateway): keep a UI settings read failure apart from the stored config being unread

With store_model_in_db off, a UI settings row that cannot be read gave
StoredConfig::Unread, which means store_model_in_db is on and the stored config did
not read. Boot now decides store_model_in_db first and gives UiSettingsUnread in that
case, so nothing later treats it as a stored config to read again. Admit still sends
every request to Python for it.

* fix(rust-gateway): leave every request to Python when the stored settings rows cannot be read at boot

The stored general_settings row can turn store_model_in_db on, and it can carry
settings such as allowed_ips or custom_auth that Python then enforces. When it cannot
be read the switch is unknown, so boot now treats the stored config as unread instead
of as off, and admit sends every request to Python.

* fix(rust-config): treat a null upstream param as unset when binding a credential's oidc key

with_credential fills a null param from the credential, and Python's router drops nulls before
the call, so the credential's own api_base is where the key goes.

* fix(rust-gateway): mark UI settings that do not layer in as unread UI settings, not an unread stored config

With store_model_in_db off nothing else is stored, so admit should name ui_settings and nothing
should poll the stored config.

* style(rust-gateway): rewrap the ui_settings_unread doc comment

* fix(rust-gateway): stop polling and blame ui_settings when a poll finds store_model_in_db off and the UI settings do not load

Boot already marks that case UiSettingsUnread; a poll that learns store_model_in_db is off now
does the same instead of keeping the Unread state and polling forever.

* fix(rust-gateway): read the key limiter window and admit's variables through the config's environment_variables

Python exports file and stored environment_variables into os.environ before its limiter reads
LITELLM_RATE_LIMIT_WINDOW_SIZE on each call, so the gateway now reads them through the layered
lookup too. Readers Python runs before it loads its config keep the process environment.

* fix(rust-gateway): rebuild the layered variables on every swap so a stored environment variable change reaches the key limiter

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 03:26:50 +00:00
..
_experimental fix(mcp): load deprecated package aliases on demand (#48615) 2026-10-27 19:46:19 +00:00
a2a fix(agents): show non-admin callers the proxy URL in agent cards (#49483) 2026-10-31 16:17:11 -07:00
agent_endpoints fix(auth): enforce key budgets on Google generateContent calls that leave the model out of the URL (#53404) 2026-11-22 22:04:46 +00:00
alerting_endpoints feat(alerts): add email labels, bulk actions and threshold editing (#52139) 2026-11-16 15:32:19 -08:00
analytics_endpoints fix(proxy): cancel the Admin UI's raw spend-log reads in Postgres after 30s (#49965) 2026-11-03 16:07:00 -08:00
anthropic_endpoints fix(proxy): return cache keys on non-streaming Anthropic cache hits (#54217) 2026-11-24 11:54:57 -08:00
auth fix(proxy): log the prompt of a rejected responses, completions or embeddings request (#54122) 2026-11-24 17:07:48 -08:00
batches_endpoints fix(batches): keep the endpoint a batch was created for on retrieve, cancel and cost polling (#50784) 2026-11-24 05:42:08 -08:00
client Revert "feat(cli): export Claude Code model call bodies by default (#53520)" (#53529) 2026-11-22 05:38:31 +00:00
common_utils feat(rust-gateway): read the stored config again when the proxy announces a change on Redis (#54054) 2026-11-25 03:26:50 +00:00
config_resolvers fix(proxy)!: ignore stored general_settings keys no settings API manages (#48967) 2026-11-02 14:58:46 -08:00
container_endpoints
control_plane feat(control_plane): fleet-wide team budgets via desired state and reconciliation (#54056) 2026-11-24 10:15:44 -08:00
credential_endpoints refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
db fix(proxy): stop requeueing rejected tool discovery batches to Redis (#53886) 2026-11-23 11:57:09 -08:00
decisions_endpoints fix(decisions): keep systemone confidence, extra fields and proxy cost on litellm_proxy calls (#53195) 2026-11-21 12:47:10 -08:00
deps refactor(proxy): inject gateway activity through a typed repository (#49116) 2026-10-30 16:25:11 -07:00
discovery_endpoints feat(skills): export download history as streamed CSV (#52569) 2026-11-21 21:14:46 +00:00
enterprise_billing feat(proxy): authenticate billing metrics with a cognito bearer token (#49852) 2026-11-04 14:08:40 -08:00
example_config_yaml chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
fine_tuning_endpoints fix(managed_files): send provider file ids when creating a fine-tuning job from managed files (#46552) 2026-10-19 14:40:15 -07:00
google_endpoints fix(auth): enforce key budgets on Google generateContent calls that leave the model out of the URL (#53404) 2026-11-22 22:04:46 +00:00
guardrails fix(guardrails): scan the system prompt and tool results in Bedrock during_call on /v1/messages (#53507) 2026-11-24 17:13:50 -08:00
health_endpoints refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
hooks feat(proxy): let a team count cached input tokens against its per-model TPM limit (#54298) 2026-11-24 18:05:56 -08:00
image_endpoints fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form (#53864) 2026-11-24 16:48:05 -08:00
list_api
logging_endpoints
management fix(ui): show saved user aliases after SSO (#53476) 2026-11-22 00:39:53 +00:00
management_endpoints fix(proxy): accept special-use email domains in generic SSO (#54026) 2026-11-24 19:16:23 -05:00
management_helpers feat(proxy): sync LDAP groups to team memberships (#50130) 2026-11-24 11:13:49 -08:00
mcp_server perf(mcp): batch OAuth client reads for config servers (#54091) 2026-11-24 13:43:12 -05:00
memory
middleware refactor(proxy): classify billable requests through one Rust route table (#53996) 2026-11-23 20:47:48 -08:00
ocr_endpoints
openai_files_endpoint fix(files): keep plain provider uploads private to the uploading team (#53084) 2026-11-24 19:23:44 -05:00
pass_through_endpoints refactor(proxy)!: remove the TypeSafe pass-through route in favor of the unified decision endpoints (#52165) 2026-11-24 16:05:44 -08:00
policy_engine fix(guardrails)!: mask PII in Presidio tool calls and refuse streams it cannot read (#53396) 2026-11-23 03:09:43 -08:00
prompts
proxy_server refactor(proxy)!: remove the TypeSafe pass-through route in favor of the unified decision endpoints (#52165) 2026-11-24 16:05:44 -08:00
public_endpoints feat(providers): add Sarvam Token Factory v2 models (#49792) 2026-11-18 13:19:05 +00:00
rag_endpoints fix(proxy): resolve a team wildcard deployment for a wildcard key on files, batches and RAG routes (#49744) 2026-11-18 10:55:44 +00:00
realtime_endpoints feat(realtime): bill translation WebRTC calls by the time the call ran (#53548) 2026-11-22 00:25:53 -08:00
rerank_endpoints fix(proxy): honor cancel_on_disconnect on the rerank endpoints (#51252) 2026-11-14 03:59:22 -05:00
response_api_endpoints fix(router): count a Responses WebSocket turn's input against deployment ITPM (#53594) 2026-11-24 04:26:36 -08:00
response_polling fix(responses): bill the provider-reported input on a cut bridged stream (#53394) 2026-11-23 06:20:25 +00:00
roi_calculator fix: cap cold MCP schema workers at usable CPUs and deflake wall-clock unit tests (#45791) 2026-10-15 00:47:59 -07:00
rust_forward feat(gateway): serve one native app in both modes, answering a master key caller's /v1/messages with it in front of Python (#52229) 2026-11-19 12:06:49 +09:00
search_endpoints refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
shutdown fix(proxy): drain pooled connections when workers recycle (#53908) 2026-11-23 13:03:29 -08:00
spend_tracking fix(proxy): keep no-log request content out of spend logs when the ledger is off (#54322) 2026-11-24 18:48:29 -08:00
telemetry feat(chat): add Moyai UI, model hub, images, and usage metrics (#40557) (#48108) 2026-10-23 23:39:23 +00:00
test_configs
types_utils refactor(mcp): drop the experimental label from the MCP server and client paths (#48513) 2026-10-27 17:47:50 +00:00
ui_crud_endpoints feat(cache): apply scoped settings to exact-match response caching (#54041) 2026-11-24 11:37:16 -08:00
utils fix(guardrails): clear token ids and logprobs when a post-call hook rewrites a non-streamed answer (#53758) 2026-11-24 06:16:09 +00:00
vector_store_endpoints refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
vector_store_files_endpoints fix(proxy)!: return managed file ids from rag ingest and use team credentials on vector store file routes (#50459) 2026-11-10 05:44:28 +00:00
video_endpoints fix(proxy): align ownership and scope handling (#50600) 2026-11-08 07:03:36 +00:00
__init__.py
_prisma.py feat(customer portal): set budgets per customer and gateway app (#52477) 2026-11-18 17:31:03 +00:00
conftest.py feat(db): insert audit logs through the rust repository (#52779) 2026-11-20 14:53:02 +09:00
proxy_server_config.yaml chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
router_entry_point_stubs.py fix(openrouter): report the context window and output cap from OpenRouter's catalog (#54046) 2026-11-24 04:37:30 -08:00
rust_auth_stores.py perf(auth): read the auth prefetch owner rows through a rust repository (#53452) 2026-11-25 08:02:02 +09:00
skill_submission_rows.py feat(skills): add optional manual security scans (#50194) 2026-11-05 01:57:39 -08:00
spend_counters_ledger_twin.py feat(budgets): run the ledger's post-call spend counter step in rust (#52166) 2026-11-20 16:31:03 -08:00
test__lazy_features.py feat(realtime)!: support latest OpenAI audio models (#35600) 2026-11-03 07:27:52 +00:00
test__types.py fix(proxy): accept audience and public_key_url in litellm_jwtauth (#53288) 2026-11-21 10:51:37 -08:00
test_admin_mcp.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
test_aiohttp_cleanup_closed.py
test_aiohttp_session_recovery.py
test_api_key_masking_in_errors.py
test_aproxy_startup.py
test_audio_speech_prometheus_hooks.py feat(tts)!: stream audio from the provider as it arrives on /v1/audio/speech (#46222) 2026-11-17 15:03:12 +00:00
test_batch_expiry.py
test_batch_metadata_none_fix.py
test_batch_retrieve_bedrock.py
test_batch_x_litellm_model_encoding.py fix(rag)!: use team provider credentials and allow viewer and JWT team access (#45497) 2026-10-17 23:51:48 +00:00
test_blocked_response_usage.py
test_body_snapshot_callback_params.py
test_budget_reservation.py feat(cost): price Claude token calls, budget holds and auth price checks in Rust (#52484) 2026-11-23 22:00:28 +00:00
test_budget_reservation_ledger.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
test_budget_reservation_rust.py test(proxy): wait for the Rust cleanup warning to reach Python logging before asserting it (#53930) 2026-11-24 02:24:37 +00:00
test_budget_reservation_rust_ledger.py feat(budgets): run the ledger's post-call spend counter step in rust (#52166) 2026-11-20 16:31:03 -08:00
test_bug_report_config.py
test_caching_routes.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_chat_completion_metadata.py feat(accounting): capture request usage through the durable meter (#49133) 2026-10-31 07:32:25 -07:00
test_claude_code_marketplace.py chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
test_collector.py test(unit): keep unix socket paths in unit tests under the macOS AF_UNIX limit (#45040) 2026-10-28 20:23:22 -07:00
test_common_request_processing.py fix(proxy): return cache keys on non-streaming Anthropic cache hits (#54217) 2026-11-24 11:54:57 -08:00
test_component_allowlists.py feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -08:00
test_conftest.py
test_cors_config.py
test_credential_slot_registry.py test(auth): register the provider OAuth params and token cache in the credential and Redis producer guard tests (#54228) 2026-11-24 19:57:55 +00:00
test_custom_callback_input.py
test_custom_logger_s3_gcs.py
test_custom_proxy.py
test_custom_tokenizer_bug.py fix(proxy): answer x-litellm-call-id on every token count response (#51037) 2026-11-11 22:26:47 +00:00
test_db_schema_changes.py refactor(proxy): name customer member budget columns budget_id and budget_override_id (#51490) 2026-11-12 17:33:22 -08:00
test_dev_reload.py refactor(proxy): let the gunicorn server take a private listener (#50871) 2026-11-11 19:40:00 +00:00
test_dynamic_mcp_route.py refactor(proxy): move non-auth writers out of the auth cache (#51599) 2026-11-20 17:57:38 +09:00
test_empty_model_list.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_enforce_user_param.py
test_fallback_management_endpoints.py fix(fallback): preserve concurrent writes and serve saved configuration (#51245) 2026-11-11 15:26:23 -08:00
test_fastapi_offline_routes.py
test_filter_models_by_team_access_group.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_get_favicon.py
test_get_image.py
test_health_check_functions.py fix(proxy): resolve admin oidc api_key references on batch cancel, fine-tuning listing, OCR, /v1/messages and cache prediction (#53678) 2026-11-23 10:11:10 -08:00
test_health_check_max_tokens.py feat(messages): serve bedrock mantle messages on rust only (#52328) 2026-11-18 17:36:06 -08:00
test_init_litellm_callbacks.py feat(custom-logger-v2): add the contract for rust callbacks and bind the proxy request scope (#51526) 2026-11-14 02:33:27 +00:00
test_langfuse_passthrough_security.py
test_lazy_openapi_snapshot.py
test_litellm_pre_call_utils.py fix(proxy): keep a key with cache settings inside its own cache partition (#54295) 2026-11-24 23:54:53 +00:00
test_max_budget_env_var.py feat(proxy)!: add suppress_startup_output to turn off startup prints (#47708) 2026-10-29 03:47:04 -07:00
test_mcp_asgi_response.py fix(mcp): log SDK request rejections (#49184) 2026-10-30 20:08:59 -07:00
test_model_based_routing_files_batches.py feat(proxy)!: only let clients pick S3 buckets the admin allowed (#47496) 2026-11-06 02:50:15 +00:00
test_model_deprecations_endpoint.py feat(ui): show model deprecation banner on the models page (#50080) 2026-11-04 18:50:14 -08:00
test_model_dump_with_preserved_fields.py feat(hosted_vllm)!: keep vLLM's stop_reason and token_ids on chat choices and stream chunks (#48393) 2026-11-02 13:26:29 -08:00
test_model_id_header_propagation.py
test_model_info_default_limits.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_model_level_guardrails.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_model_list_aliases.py fix(proxy): list key and team aliases on /model_group/info and apply listing callbacks to them (#51754) 2026-11-14 01:10:32 -05:00
test_model_list_callback_filter.py
test_model_list_discoverable.py
test_model_list_healthy_only.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_modify_response_streaming_passthrough.py feat(guardrails): hold streamed tool calls for the verdict and log prompts blocked with a reply (#51872) 2026-11-20 16:58:15 -08:00
test_moyai_endpoints.py refactor(proxy): move non-auth writers out of the auth cache (#51599) 2026-11-20 17:57:38 +09:00
test_native_compaction.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
test_openai_ws_passthrough_routes.py fix(proxy): check the model in every OpenAI websocket passthrough frame (#48979) 2026-11-02 09:48:59 -08:00
test_openapi_schema_validation.py
test_plugin_routes.py feat(proxy)!: require a LITELLM_SALT_KEY of at least 112 bits to start in fips_mode (#52099) 2026-11-17 12:58:59 -08:00
test_pointfive_dashboard_config.py chore: move ui and vscode-extension under litellm and delete docs (#50992) 2026-11-12 04:19:57 +00:00
test_pointfive_ui_callback.py
test_pricing_currency.py feat(proxy): accept request token prices in a declared currency (#51971) 2026-11-16 15:16:24 -08:00
test_pricing_field_strip.py fix(security)!: build proxy-only failure logs from an allowlist and drop caller guardrail info (#48599) 2026-10-27 12:40:59 -07:00
test_prisma_client_backoff_retry.py
test_prisma_engine_watchdog.py
test_prisma_migration.py fix(proxy): skip prisma generate in the migration job when the prisma package is not writable (#52460) 2026-11-19 01:12:10 +00:00
test_prometheus_cleanup.py
test_prometheus_metrics_server.py ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00
test_prompt_test_endpoint.py
test_provider_url_destination_guard.py
test_proxy_cli.py fix(proxy): make litellm --test pick a served model, and send the master key only to a local proxy (#53866) 2026-11-24 04:17:02 +00:00
test_proxy_config_unit_test.py fix(sdk): stop global model_fallbacks from recursing on every completion call (#51817) 2026-11-14 16:28:38 -05:00
test_proxy_custom_auth.py
test_proxy_logging_hook_detection.py test(realtime): fix three unit tests left red by the GPT-Live attach routes (#53574) 2026-11-22 17:49:14 +00:00
test_proxy_reject_logging.py fix(logging)!: fire one CustomLogger failure hook per async call outside the async flag list (#47124) 2026-10-20 15:19:14 -07:00
test_proxy_server.py feat(rust-config): layer LiteLLM_Config settings rows over the config document (#54021) 2026-11-25 02:04:46 +00:00
test_proxy_server_custom_logger.py
test_proxy_server_endpoints_and_startup.py fix(mcp): keep the dashboard cookie when /authorize meets a live session key owned by another user id (#53844) 2026-11-23 21:11:45 +00:00
test_proxy_server_endpoints_and_startup_ledger.py perf(proxy): read only the needed team fields from the auth cache (#53909) 2026-11-23 12:53:14 -08:00
test_proxy_server_exception_mapping.py
test_proxy_setting_guardrails.py
test_proxy_token_counter.py fix(messages): answer 400 for a non-string user or system text block and keep count_tokens in step with inference (#54165) 2026-11-25 00:48:41 +00:00
test_proxy_types.py fix(mcp): scope gateway OAuth consent to x-mcp-servers and add explicit scope setting (#44957) 2026-10-15 15:58:34 -07:00
test_proxy_utils.py feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -08:00
test_proxy_utils_model_creation_and_error_logging.py fix(proxy): keep the prompt out of Langfuse model parameters for rejected requests (#54084) 2026-11-25 01:29:51 +00:00
test_pyroscope.py
test_read_model_list.py
test_redis_auth_cache_flag.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
test_reducto_ocr_route.py
test_response_model_sanitization.py fix(proxy)!: preserve Responses SSE event framing (#47980) 2026-11-06 20:17:57 -08:00
test_response_polling_pre_call_checks.py feat(proxy): router_settings.fallback_on_saturation walks key and team fallbacks before a model saturates, replacing team model_preferences (#51439) 2026-11-13 05:57:18 +00:00
test_route_a2a_models.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_route_llm_request.py test: drain router accounting before stopping logging worker (#52750) 2026-11-18 18:52:40 -08:00
test_route_priority.py
test_sensitive_route_auth.py
test_server_listener.py refactor(proxy): let the gunicorn server take a private listener (#50871) 2026-11-11 19:40:00 +00:00
test_server_root_path.py
test_shared_health_check.py
test_spend_log_cleanup.py fix(proxy): prune expired LiteLLM_SpendLogGuardrailIndex rows with spend-log retention (#51518) 2026-11-19 09:32:09 -08:00
test_swagger_chat_completions.py
test_team_member_update.py feat(proxy): page team members and stop loading full rosters for /team/info callers (#51885) 2026-11-17 16:30:52 -08:00
test_team_org_move.py
test_tools_allowlist_enforcement.py feat(proxy): mixed Codex model picker and LiteLLM routing on native codex routes (#49408) 2026-11-06 11:14:47 -08:00
test_ui_path_detection.py refactor(ui): remove the deprecated API Reference page (#51246) 2026-11-11 22:55:32 +00:00
test_unit_test_proxy_hooks.py feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -08:00
test_update_llm_router_resilience.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_update_spend.py feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -08:00
test_v2_hook_routing.py feat(custom-logger-v2): add the contract for rust callbacks and bind the proxy request scope (#51526) 2026-11-14 02:33:27 +00:00
test_v2_proxy_fields.py feat(custom-logger-v2): add the contract for rust callbacks and bind the proxy request scope (#51526) 2026-11-14 02:33:27 +00:00
test_zero_cost_model_budget_bypass.py fix(proxy): judge the zero-cost budget waiver by the model a key or team alias serves (#51058) 2026-11-10 18:28:49 -08:00
test_zerobus_dashboard_config.py chore: move ui and vscode-extension under litellm and delete docs (#50992) 2026-11-12 04:19:57 +00:00
vector_store_access_group_state.py refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
vertex_key.json