litellm/tests/unit/proxy
maciej-berri 0aa3a9203b
Some checks failed
CodSpeed Benchmarks / benchmarks (push) Waiting to run
Cost map pins recheck / rerun-cost-map-guard (push) Waiting to run
Publish lint base counts / publish (basedpyright, litellm/scripts/type_check_gate.py) (push) Waiting to run
LiteLLM Rust DB / db-queries (push) Waiting to run
Terraform Modules / fmt, validate, test (aws) (push) Waiting to run
Terraform Modules / fmt, validate, test (gcp) (push) Waiting to run
unit / llms-providers (push) Blocked by required conditions
unit / proxy-endpoints (push) Blocked by required conditions
unit / proxy-feature-endpoints (push) Blocked by required conditions
unit / auth-checks (push) Blocked by required conditions
unit / budgets (push) Blocked by required conditions
unit / custom-logging (push) Blocked by required conditions
unit / db-and-spend (push) Blocked by required conditions
unit / endpoints-and-responses (push) Blocked by required conditions
unit / enterprise-routing (push) Blocked by required conditions
unit / guardrails-hooks (push) Blocked by required conditions
unit / jwt-and-keys (push) Blocked by required conditions
unit / key-generation (push) Blocked by required conditions
unit / logging-misc (push) Blocked by required conditions
unit / mcp-oauth (push) Blocked by required conditions
unit / proxy-runtime (push) Blocked by required conditions
unit / proxy-server-core (push) Blocked by required conditions
unit / core-auth-spend (push) Blocked by required conditions
unit / core-logging-request-path (push) Blocked by required conditions
unit / rust-bridge (push) Waiting to run
unit / mcp-server (push) Blocked by required conditions
unit / proxy-auth (push) Blocked by required conditions
unit / proxy-extras (push) Blocked by required conditions
Publish lint base counts / publish (openapi-docs, litellm/scripts/openapi_docs_gate.py) (push) Waiting to run
Publish lint base counts / publish (ruff-strict, litellm/scripts/ruff_strict_gate.py) (push) Waiting to run
Publish lint base counts / publish (test-quality, litellm/scripts/test_quality_gate.py) (push) Waiting to run
Publish lint base counts / publish (type-discipline, litellm/scripts/type_discipline_gate.py) (push) Waiting to run
Root entry limit / root-entry-limit (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
lint / lint plan (push) Waiting to run
lint / python (push) Blocked by required conditions
lint / typecheck (push) Blocked by required conditions
lint / e2e-harness (push) Blocked by required conditions
lint / secret-scan (push) Waiting to run
lint / ui (push) Blocked by required conditions
lint / ui-api-types (push) Blocked by required conditions
lint / code-quality (push) Waiting to run
lint / ci-coverage (push) Waiting to run
lint / semgrep (push) Waiting to run
lint / lint passed (push) Blocked by required conditions
smoke / all-extras-py (push) Blocked by required conditions
smoke / smoke-rust-bridge (push) Waiting to run
smoke / dashboard-build (push) Waiting to run
smoke / py (push) Blocked by required conditions
smoke / windows-sdk (push) Waiting to run
smoke / proxy-build-from-pip (push) Waiting to run
smoke / smoke passed (push) Blocked by required conditions
unit / root (push) Blocked by required conditions
unit / proxy-utils (push) Blocked by required conditions
unit / core-auth-request (push) Blocked by required conditions
unit / core-management-cost (push) Blocked by required conditions
unit / core-utils-route (push) Blocked by required conditions
unit / core-router (push) Blocked by required conditions
unit / core-router-core (push) Blocked by required conditions
unit / core-router-retries (push) Blocked by required conditions
unit / changed-tests (push) Blocked by required conditions
unit / lint-runtime (push) Blocked by required conditions
unit / plan (push) Waiting to run
unit / enterprise-managed-files (push) Blocked by required conditions
unit / enterprise-repositories-secrets (push) Blocked by required conditions
unit / proxy-server (push) Blocked by required conditions
unit / lens-python-310 (push) Blocked by required conditions
unit / caching-local (push) Blocked by required conditions
unit / core-utils (push) Blocked by required conditions
unit / endpoints (push) Blocked by required conditions
unit / enterprise-package (push) Blocked by required conditions
unit / integrations (push) Blocked by required conditions
unit / llms-anthropic (push) Blocked by required conditions
unit / llms-bedrock (push) Blocked by required conditions
unit / llms-openai-meta (push) Blocked by required conditions
unit / llms-vertex-ai (push) Blocked by required conditions
unit / mcp-elicitation (push) Blocked by required conditions
unit / proxy-hooks-client (push) Blocked by required conditions
unit / proxy-infra-routing (push) Blocked by required conditions
unit / proxy-subprocess (push) Blocked by required conditions
unit / redis-py 7.4.1 compatibility (push) Blocked by required conditions
unit / redis-py 8.0.1 compatibility (push) Blocked by required conditions
GitHub Actions Security Analysis / zizmor (push) Waiting to run
unit / proxy-infra-db-spend (push) Blocked by required conditions
unit / proxy-infra-root-a-p (push) Blocked by required conditions
unit / proxy-infra-root-q-z (push) Blocked by required conditions
unit / responses-caching-types (push) Blocked by required conditions
unit / router (push) Blocked by required conditions
unit / rust-bridge-harness (push) Blocked by required conditions
unit / ui-unit (push) Waiting to run
unit / docs (push) Blocked by required conditions
unit / helm (push) Blocked by required conditions
unit / OpenAI 2.20.0 compatibility (push) Blocked by required conditions
unit / OpenAI 3.0.0 compatibility (push) Blocked by required conditions
unit / OpenAI 3.25.0 compatibility (push) Blocked by required conditions
unit / redis-py 5.3.1 compatibility (push) Blocked by required conditions
unit / redis-py 6.4.0 compatibility (push) Blocked by required conditions
unit / unit passed (push) Blocked by required conditions
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
feat(cost): price Claude token calls, budget holds and auth price checks in Rust (#52484)
* feat(cost): add the price, bound and rates query engine to litellm-cost

price() answers a PriceQuery tagged by kind over a RowSource that Model
Catalog will implement. The tokens kind ports the token path of
completion_cost for Claude on Anthropic, Bedrock, Vertex AI and Azure AI,
with speed, geo and regional uplifts, the web search fee, provider-keyed
discount and margin, the stored cost breakdown and prompt-caching savings.
Every other kind and unported case answers NotPorted.

bound() ports the legacy budget hold and rates() returns a row's rates,
its raw key facts and one pricing status for the auth predicates.

Parity fixtures captured once from main's Python pin totals, breakdowns,
savings and holds to the last bit. Copied main bugs are listed in the
crate AGENTS.md.

* feat(python-bridge): price, bound, rates and adjust over model-catalog catalog rows

Model Catalog now feeds the litellm-cost query engine. pricing_rows reads a
CostLookup and fetches the rows one query reads into PricingRows, the core's RowSource, each
candidate keyed by the model name main priced it with, and a lowered row
carries the RowFacts the core reads (mode, max tokens, how float() reads
provider_specific_entry, the raw keys the auth checks read). PricingContext
also holds the discount and margin config. The python-bridge snapshot reads the
host's fallback_generalizations rules with the table and is rebuilt when the
generation or the config values move.

NativeModelCostMap gains price, bound, rates and adjust. Python hands each a
document of raw facts and the bridge reads them the way main's Python did
before it builds the core's typed query. A call the core does not price
answers None so Python keeps pricing it. NativeTokenUsage now takes the core's
TokenUsage document and bills it through TokenUsage::billed, so the counts to
meters conversion exists once.

* feat(cost): price Claude token calls, budget holds and auth price checks in Rust

completion_cost prices a Claude token call on Anthropic, Bedrock, Vertex AI
and Azure AI through NativeModelCostMap.price and stores the receipt's
breakdown, rates and adjustments on the logging object as before. Any call
Rust leaves to Python (another provider or call kind, built-in tools other than
a reported web search, a provider-stated cost, custom per-call prices or a
deferred candidate list) keeps the Python candidate loop for that call.

The Anthropic speed and geo uplifts and the Bedrock geo uplift now come from
the Rust core, and the Python bodies are gone. Discount and margin resolve in
Rust for every kind through NativeModelCostMap.adjust, replacing
_apply_cost_discount, _apply_cost_margin and resolve_cost_discount. The legacy
budget hold calls bound, and the auth checks read token rate keys and positive
token rates from rates.

Tests that patched deleted internals now drive the public functions, and new
cases pin the adapter to main's totals and breakdowns for the captured Claude
fixtures.

* refactor(cost): keep the lint gates flat for the Rust pricing adapter

Split the Rust route's eligibility checks into early returns, read hidden
params and web search options through typed mapping helpers, read the
generalization rules through as_object_list, and sort the stub's __all__.
Adjust and store the token and search costs of a completion_cost candidate in
one helper so no Final is bound inside the candidate loop, type the Model
Router fee dict, and merge the litellm_core_utils imports of the host module.

* test(cost): match the unreadable geo value in the Bedrock ValueError check

* test(cost): bill a price edited in place in litellm.model_cost on the next Rust-priced call

The python-bridge row cache was keyed by row object identity, so editing a price
in place kept billing the old rate until something called changed_in_place().
Lowerings are now reused only while the row reads the same fields.

* docs(cost): say the RowSource is PricingRows over a catalog's PricingTable

* fix(cost): port main's budget hold estimator changes into bound

Main reworked the budget hold while this stack was open (#51752, #53412 and the per-model input counts). The rebase kept main's reservation, window and carry-over code and the Rust bound, so this commit brings the hold up to main

The adapter reads the request: per model, the output caps that reach the provider through each serving deployment (surface, drop params, the Responses minimum, Gemini generationConfig caps) and the output count (n, best_of, candidateCount, router and deployment defaults), plus whether a Gemini body holds inline audio or names a cached content. A model whose input could not be counted is held at its input window without recounting

bound reads the rows: a cached content holds the rest of the input window at the highest cache-read rate, text or audio, inline audio holds input at the higher of the text and audio rates, a counted Gemini prompt reads the `_above_<n>_tokens` prices it reaches, the threshold included, and a group reads those from each deployment's `deployment_pricing`. A row ceiling that is not positive reads the default, and a row missing an input or output rate holds nothing for tokens it would bill there

max_cost_for_cost_info and input_cost_for_cost_info hold one model info row through bound, so main's tests run against the Rust hold unchanged apart from the names

* refactor(cost): carry the RustRefusal rename into the pricing entry point

---------

Co-authored-by: narmstrong-berri <narmstrong@berri.ai>
2026-11-23 22:00:28 +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 refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09:00
auth fix(proxy): only relay Azure passthrough model groups that are served by Azure (#53904) 2026-11-23 13:30:28 -08:00
batches_endpoints fix(proxy)!: reject client-supplied Vertex location and project unless the admin opts in (#47028) 2026-11-10 20:50:17 +00: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 perf(proxy): read only the needed team fields from the auth cache (#53909) 2026-11-23 12:53:14 -08: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(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -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
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): serve usage detail for a guardrail removed from config (#53315) 2026-11-23 11:54:37 -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 fix(proxy): bill an OpenAI pass-through background response to the key that created it (#53586) 2026-11-23 20:14:58 +00:00
image_endpoints fix(vertex_ai): honor Gemini image size and imageConfig controls on generation and edits (#53580) 2026-11-23 09:05:25 -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 feat(caching): configure semantic cache params per key, user and team (#53905) 2026-11-23 13:55:45 -08:00
management_helpers feat(caching): configure semantic cache params per key, user and team (#53905) 2026-11-23 13:55:45 -08:00
mcp_server feat(terraform): configure MCP server OAuth settings (#53862) 2026-11-23 19:24:34 +00:00
memory
middleware feat(proxy): let operators omit x-litellm-* response headers (#52949) 2026-11-19 15:27:34 -08:00
ocr_endpoints
openai_files_endpoint fix(mcp): drop hosted MCP tool_choice under drop_params and honor drop_params in Bedrock batch rows (#53697) 2026-11-23 08:51:59 -08:00
pass_through_endpoints fix(proxy): only relay Azure passthrough model groups that are served by Azure (#53904) 2026-11-23 13:30:28 -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 feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -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(proxy): release the parallel request slot when a Responses WebSocket is refused at open (#53902) 2026-11-23 13:22:12 -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
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 feat(cost): price Claude token calls, budget holds and auth price checks in Rust (#52484) 2026-11-23 22:00:28 +00: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 fix(ui): default Usage to month-to-date (#53457) 2026-11-21 22:57:47 +00:00
utils feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -08: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(proxy): send a prompt-only call_endpoint token count to every provider count API (#50783) 2026-11-10 18:09:19 +00:00
rust_auth_stores.py fix(auth): retry a team read that loses its database connection and answer 503 when the database is down (#53260) 2026-11-21 12:18:19 -08: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
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 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_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(exceptions): keep the provider error body on e.response for SDK callers (#53587) 2026-11-23 07:23:53 +00: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 feat(github_copilot): support GitHub App authentication with PEM upload (#51427) 2026-11-14 10:33:20 -05: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 feat(caching): configure semantic cache params per key, user and team (#53905) 2026-11-23 13:55:45 -08: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): drain in-flight requests during worker recycling (#53882) 2026-11-23 11:44:40 -08: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 refactor(auth_cache): type auth cache keys and keep the cache always native (#51130) 2026-11-21 17:20:30 +09: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(proxy): route token counts with the caller's team like inference (#53425) 2026-11-22 22:04:39 +00:00
test_proxy_types.py
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): the failure row after a failed fallback stands for the attempt the client saw (#53313) 2026-11-21 19:52:06 +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