litellm/tests/unit/proxy
maciej-berri f1b945a0bc
feat(messages): serve bedrock mantle messages on rust only (#52328)
* refactor(bedrock): parameterise the invoke messages request transform for mantle reuse

* fix(bedrock_mantle): split the mantle messages adapter into bedrock/mantle and bedrock_mantle configs on the invoke transform

* test(bedrock_mantle): assert python's url, region, auth, shaping and usage behaviour on both mantle routes

* docs(bedrock_mantle): note the shared invoke transform and the bedrock/mantle deprecation plan

* test(bedrock_mantle): satisfy clippy on the wire body key order check

* fix(bedrock_mantle): resolve the api key and model as python does on both mantle routes

bedrock/mantle/ now reads an explicit empty api_key as given, so it signs with SigV4
instead of reading AWS_BEARER_TOKEN_BEDROCK. bedrock_mantle/ splits a region prefix only
for python's BEDROCK_REGIONS list and logs the model without it. Both routes run the
invoke transform on the model id python sends, so its rejection texts name that model.

* fix(bedrock_mantle): project the bedrock params and capabilities python reads on both mantle routes

bedrock_mantle/ now gets the guardrailConfig, request metadata and bedrock-keyed model
capabilities that the inherited invoke transform reads in python, and both mantle routes
get aws_bedrock_project_id so the anthropic-workspace-id header is sent. Capabilities are
looked up for the model id python hands the invoke transform.

* fix(bedrock_mantle): raise python's errors and shape tools on the mantle routes in the host

The host now replays python's provider resolution, url and signing for a mantle call rust
refused before sending it, so an invalid region and an upper-case public host raise
python's BadRequestError or ValueError. A bedrock_mantle/ credential failure raises the
Mantle ValueError, the invoke web_search rejection stays raw with llm_provider bedrock,
caller tools are shaped in place, and the connect-failure text uses the mantle url.

* feat(messages): serve bedrock mantle messages on rust only

Both Mantle Messages configs, bedrock_mantle/<claude> and bedrock/mantle/<model>,
now resolve to Target.BEDROCK_MANTLE, which the catalog makes RUST_REQUIRED for
the bedrock and bedrock_mantle providers. Non-Claude bedrock_mantle models keep
their chat or responses bridge on Python, and the Rust provider match only gives
bedrock_mantle a Messages config for Claude models, as Python does.

* fix(bedrock_mantle): resolve invoke helper capabilities under bedrock on the mantle routes

Python's Mantle configs run the shared Anthropic transform on capabilities resolved under the
route's provider and the Bedrock Invoke helpers (adaptive thinking, effort support) under
bedrock, both for the model id the route sends. Rust now carries the Invoke helpers' flags in
BedrockCapabilities, and the Python host and the router probe the keys mantle_capability_lookup
names on bedrock_mantle/ and bedrock/mantle/. Every other route keeps its lookup unchanged.

* style(rust_bridge): keep the typing noqa on the cast import line

* test(bedrock_mantle): pin the python reference and send the mantle wire tests through rust

Mantle Messages is served by Rust only now, so the unit wire tests call the Python handler
directly as the invoke tests do, and the same requests run through the native route against
the recording server and must match what Python sends and answers.

* test(rust_bridge): cover the mantle error replay when python would not sign or refuse the call

* refactor(bedrock_mantle): model mantle betas and usage as typed json instead of python truthiness

Betas are read as an optional list of strings, so an absent or empty list
sends no header and anything else is a transform bug. Usage is zero filled
only when it is an object.

* refactor(bedrock_mantle): rename first_truthy to first_non_empty

* fix(rust_bridge): raise mantle region and credential failures natively instead of replaying python

Rust now reports an invalid Mantle region as a typed error naming where Python
refuses it. A region bedrock_mantle/ rejects while resolving the provider raises
get_llm_provider's BadRequestError with an empty llm_provider, and a region
refused later (bedrock/mantle/, or an upper-case Mantle host on SigV4) raises the
bare ValueError. A bedrock_mantle/ credential failure raises litellm's own Mantle
auth ValueError, keeping AwsAuthError for web identity failures. The host no
longer re-runs Python's provider resolution, URL building or signing for these
errors, so no STS call happens on the error path.

* fix(bedrock_mantle): escape control characters in the invalid region message

* fix(bedrock_mantle): refuse a reply whose usage is not an object instead of billing zero tokens

A Mantle reply whose usage is present but is a list, string or number now
raises litellm's APIError 500 rather than zero-filling the usage. Absent or
null usage still bills zero tokens.

* fix(bedrock_mantle): raise the botocore class for STS credential failures the Mantle signer lets through

Rust now names why an STS call failed (rejected with a code, invalid web
identity token, or unreachable) and the host raises the same class Python's
credential code lets through on bedrock_mantle/: botocore ClientError,
AwsAuthError 401 or EndpointConnectionError. Only the four failures the
Mantle signer wraps keep its ValueError. Nothing is replayed through botocore
and STS is not called again on the error path.

* fix(rust_bridge): name the origin Rust could not connect to instead of rebuilding the bedrock URL in Python

A connect failure now carries the scheme://host:port the client tried, and the
host reads it for both bedrock routes rather than asking the Python config's
get_complete_url for the URL Rust already sent to.

* fix(bedrock_mantle): log the tools Rust shapes instead of reshaping the caller's tools in Python

The Mantle configs now log their requested params with the tools shaped by
Rust's invoke helpers, and Rust tells the host when a call is a Bedrock invoke
call whose caller tools Python still shapes in place. The host no longer
re-detects the Mantle route or its region prefix: the model id a Mantle
rejection names comes from Rust too.

* fix(bedrock_mantle): log and raise the model id Rust names for a Mantle call refused before sending

A bedrock/mantle/ call refused before it was sent logged the model and raised it
with its mantle/ prefix, where Python's handler names the model id. The host now
takes the model Rust attaches to the failure for the logger and the raised
error, with no route detection on the Python side.

* fix(bedrock_mantle): zero-fill usage on a Mantle reply that is not a message

A 200 reply that does not parse as a message, such as an error envelope, skipped
the Mantle usage normalisation, so it billed no usage where Python bills zero
input and output tokens. Configs now get a hook for such unchecked replies and
both Mantle routes zero-fill the usage there, through a typed usage struct
shared with the message path. A usage object with mistyped token counts is now
refused as unbillable, like a non-object usage.

* fix(bedrock_mantle): hand the agentic hooks the requested stream flag on Mantle routes

The agentic loop hook read the call's params back from the wire body, which on
the Mantle routes leaves out stream unless it is true. Python's hooks see the
params from before its Mantle transform, stream false included. The hook now
restores the requested stream flag on the two Mantle routes.

* fix(bedrock_mantle): warn when a Mantle route drops a disabled thinking

Both Mantle routes dropped thinking type disabled on an always-thinking model
without the warning Python logs about the thinking tokens still being billed as
output tokens. The shared Anthropic thinking translation now logs it when the
route asks, and only the two Mantle configs ask, so other providers keep their
behaviour.

* fix(bedrock_mantle): build the Mantle URL with the url crate and stop copying Python on odd values

Both Mantle routes now parse the base with the url crate, put the Messages route
on the path and keep the caller's query string after it, where Python's string
join could land the route inside the query. Odd inputs follow plain Rust rules
instead of Python's quirks. A blank api_base or api_key counts as unset, an
upper-case public Mantle host is sent and signed lowercased, and only a boolean
true stream flag streams, so a stream string no longer waits on an SSE reply
the request never asked for. A base that is not a URL is refused before
sending.

* test(bedrock_mantle): check the Rust Mantle route against captured Python output and drop dead Python Messages code

The Rust Mantle tests no longer run Python's Messages handler beside Rust. The
wire requests, signing scopes and usage Python's Mantle configs produced are
captured once in a JSON fixture, and error tests check the class and status
only. The Python unit tests that drove Python's Mantle Messages handler end to
end are gone, keeping the URL, chat and request transform tests.

Python's Mantle Messages configs lose the methods only that handler called: the
environment validation, the response transform and the stream iterator, and the
bedrock_mantle Messages config no longer mixes in the Mantle signer. The
request transform stays because count_tokens reads its options through it.

* fix(bedrock_mantle): map a Mantle route credential failure from Rust's kind instead of signing again in Python

A bedrock/mantle/ call whose credentials Rust could not acquire made the host
run Python's sign_request again to find the exception, which could reach STS on
the error path. Rust now names the failure unavailable on both Mantle routes and
the host raises botocore's NoCredentialsError, or the STS class Rust names, from
a fixed list. The Bedrock invoke route keeps its replay.

The GetLLMProvider wording copied from Python for a region refused while
resolving bedrock_mantle/ is gone with its marker. The refusal stays a 400
BadRequestError.

* refactor(bedrock_mantle): read Mantle capabilities from the Rust catalog and type the project id

A Mantle call asked Python's capability probes up to three times per request.
The host now reads them from the Rust catalog of the live model map through
messages_route_capabilities, as the router already does, so a Mantle call makes
no capability host call. aws_bedrock_project_id is a typed litellm_params field
every host projects, replacing the Mantle-only passthrough projection.

* refactor(bedrock_mantle): read the Mantle betas and wire body through typed structs

The betas now come off the request's own anthropic_beta field instead of a
serialization of the whole request, and the Mantle wire body is a typed struct
that drops the version and betas, puts model and stream last and keeps stream
only when it is a boolean true.

* docs(bedrock_mantle): document the Mantle Messages configs and say Rust instead of native in the new tests

Both Mantle transformation files get a file doc, the two config structs and the
model id helper get docs, and mantle_capabilities is private now that only
messages_route_capabilities composes it. The tests this port added name the
Rust host's error rust_error rather than native. The Mantle wire body struct
also stops tripping clippy on its dropped fields.

* fix(bedrock_mantle): log the route model for a bedrock/mantle call refused before sending

Python's handler logs the route model (mantle/<id>) before the Mantle config's
transform refuses the call; only the raised error carries the bare model id.

* fix(bedrock_mantle): name no provider and the requested model for a region refused resolving bedrock_mantle

Python's get_llm_provider refuses an invalid bedrock_mantle region before any
provider resolves, so its BadRequestError has llm_provider "" and the request's
model. The Rust host now attaches that provider and model for the refusal.

* fix(bedrock_mantle): raise botocore ProfileNotFound for an AWS profile no profile file defines

Rust names a missing AWS profile as its own credential failure kind with the
profile name, and the host raises botocore's ProfileNotFound for it from its
fixed class list instead of NoCredentialsError. bedrock_mantle/ keeps wrapping
it in the Mantle auth ValueError, as Python does.

* docs(rust_bridge): mark the bedrock invoke signing replay for removal

* fix(rust_bridge): build ProfileNotFound only when Rust names the profile

* test(health_check): answer the Mantle Claude probes from a local server now that Rust sends them

* fix(bedrock_mantle): read a region path segment from the model on the bedrock/mantle route

* style(bedrock_mantle): format the region_from_model import

* test(rust_bridge): cover a connect failure with no known base on the messages route

A provider outside anthropic, azure_ai and bedrock with no api_base has no
base to reword a connect failure against, so the host keeps Rust's text.

* fix(rust_bridge): name the origin Rust dialed in a bedrock connect failure

A Bedrock or Mantle connect failure reworded the caller's api_base, but
Rust can send elsewhere: Mantle rebuilds a public host on https in the
resolved region, and a blank api_base counts as unset. Prefer the connect
origin Rust reports whenever it set one.

* fix(bedrock_mantle): log and raise the model Python names on Mantle refusals

A refused Mantle call logged the request model with only the provider
prefix removed, so a bedrock_mantle/ region prefix stayed in the failure
log (us-west-2/anthropic.claude-x), where Python's handler logs the model
get_llm_provider resolves. Rust now names that model on the error as
messages_logged_model. The unbillable-usage APIError names the model id
Rust sent (messages_provider_model), the one the failure log carries.

* test(rust_bridge): cover the refused-reply mapping to APIError 500

Rust marks a Mantle reply whose usage litellm cannot bill with
messages_refused_reply, and the host raises it as litellm.APIError 500.
Cover both halves: errors.rs sets the marker only for an UnbillableUsage
response, and the host maps it naming the model Rust sent.

* refactor(bedrock_mantle): have Rust name bedrock on a Mantle invoke bad request

The host decided in Python that a bedrock_mantle refusal the Bedrock
invoke transform raises as BadRequestError names llm_provider=bedrock.
Rust now sets messages_provider=bedrock on that error for both Mantle
routes, and the host only reads it. The raised error is unchanged.
2026-11-18 17:36:06 -08: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 feat(auth): read projects, tags, access groups and object permissions through rust repositories (#52178) 2026-11-18 22:32:06 +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(responses): scope cacheable system input to stateless requests (#52694) 2026-11-18 17:24:52 -08:00
auth fix(proxy): cache customer app definition lookups (#52688) 2026-11-18 16:45:36 -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 fix(cli): carry configured service tiers and display names into the lite codex catalog (#49422) 2026-11-18 02:19:48 +00:00
common_utils feat(proxy): let an app set its own surcharge on customer requests (#52492) 2026-11-18 19:56:06 +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): runtime dataplane and role writes via redis stream and postgres (#51762) 2026-11-16 17:36:25 +00:00
credential_endpoints feat(nvidia_nim): refresh the catalog and discover upstream models (#50439) 2026-11-17 18:39:59 -08:00
db fix(proxy): recover from a read replica reconnect that times out (#52592) 2026-11-18 12:03:24 -08:00
decisions_endpoints fix(decisions): match OpenAI format answers to questions by name (#52597) 2026-11-18 12:55:45 -08:00
deps refactor(proxy): inject gateway activity through a typed repository (#49116) 2026-10-30 16:25:11 -07:00
discovery_endpoints feat(customer portal): set budgets per customer and gateway app (#52477) 2026-11-18 17:31:03 +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 feat(customer portal): set budgets per customer and gateway app (#52477) 2026-11-18 17:31:03 +00:00
guardrails fix(guardrails): write rewritten tool_calls from the Generic Guardrail API back to the client (#50413) 2026-11-18 15:25:29 -08:00
health_endpoints feat(db): add the SQLx pool foundation with the writer pool (#49798) 2026-11-14 15:28:10 -08:00
hooks feat(proxy): let an app set its own surcharge on customer requests (#52492) 2026-11-18 19:56:06 +00:00
image_endpoints fix(gemini): return n images for image generations and edits when n > 1 (#52103) 2026-11-16 14:50:13 -08:00
lens fix(proxy): validate JSON object bodies before request handling (#48438) 2026-10-26 16:11:38 -07:00
list_api
logging_endpoints
management fix(ui): take the dashboard's user role and identity from the server (#47025) 2026-10-17 14:39:33 -07:00
management_endpoints feat(proxy): report current budget-window spend on /user/info, /v2/user/info and /team/info (#52673) 2026-11-18 15:43:22 -08:00
management_helpers fix(proxy): cache customer app definition lookups (#52688) 2026-11-18 16:45:36 -08:00
mcp_server feat(auth): read projects, tags, access groups and object permissions through rust repositories (#52178) 2026-11-18 22:32:06 +00:00
memory
middleware feat(budgets): replace the python budget hold and settle engine with a rust engine admitted at auth (#51535) 2026-11-15 16:03:51 -08:00
ocr_endpoints fix(proxy)!: return provider-matching 4xx for the LIT-8062 status code follow-ups (#45537) 2026-10-13 11:42:39 -07:00
openai_files_endpoint 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
pass_through_endpoints feat(auth): read projects, tags, access groups and object permissions through rust repositories (#52178) 2026-11-18 22:32:06 +00:00
policy_engine fix(anthropic): map pause_turn and return refusal explanations on chat and responses (#49192) 2026-10-31 02:53:59 -07:00
prompts
proxy_server fix(proxy): release request bodies of failed calls without waiting for a full GC (#52600) 2026-11-19 00:50:33 +00: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)!: support latest OpenAI audio models (#35600) 2026-11-03 07:27:52 +00: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(responses): stop the background stream when a polling response is cancelled (#49384) 2026-11-18 14:33:39 +00:00
response_polling fix(responses): stop the background stream when a polling response is cancelled (#49384) 2026-11-18 14:33:39 +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 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
search_endpoints feat(proxy): total_timeout bounds a whole non-streaming request (#50496) 2026-11-08 00:43:50 -08:00
shutdown fix(proxy): persist tag spend and drain success callbacks within the shutdown budget (#48988) 2026-10-29 09:32:18 -07:00
spend_tracking fix(proxy): count generateContent spend under its own endpoint (#52701) 2026-11-18 16:50:56 -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 test: migrate legacy unit dirs and unrun folders into tests/unit, tests/integration and tests/e2e (#45940) 2026-10-11 06:24:57 -07:00
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(ui): show an optional currency estimate on the Usage spend card (#51979) 2026-11-16 16:00:20 -08:00
utils perf(proxy): coalesce empty auto-router baseline recovery polls (#52523) 2026-11-19 00:20:59 +00:00
vector_store_endpoints feat(vector_stores): add YAML-configured unified search fallbacks (#52093) 2026-11-18 08:41:02 -08: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(auth): read virtual keys, jwt key mappings and model access groups through rust repositories (#52173) 2026-11-18 03:53:37 +00: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 feat(auth): read projects, tags, access groups and object permissions through rust repositories (#52178) 2026-11-18 22:32:06 +00:00
skill_submission_rows.py feat(skills): add optional manual security scans (#50194) 2026-11-05 01:57:39 -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 feat(mcp): cache upstream tool lists with an admin-set lifetime (#51160) 2026-11-12 08:48:04 -08:00
test_admin_mcp.py fix(admin-mcp): restore the budget route operation ids the connector pins (#51959) 2026-11-15 20:11:02 +00: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(auth): read virtual keys, jwt key mappings and model access groups through rust repositories (#52173) 2026-11-18 03:53:37 +00:00
test_budget_reservation_rust.py feat(auth): read virtual keys, jwt key mappings and model access groups through rust repositories (#52173) 2026-11-18 03:53:37 +00: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): release request bodies of failed calls without waiting for a full GC (#52600) 2026-11-19 00:50:33 +00:00
test_component_allowlists.py test: drop the unit tests that flaked on main this week (#51488) 2026-11-12 17:32:49 -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(mcp): drop the experimental label from the MCP server and client paths (#48513) 2026-10-27 17:47:50 +00: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(health): log Test Connection spend with the mode's call type and model id (#50987) 2026-11-11 16:07:33 -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(github_copilot): explain why a Copilot call failed and how to fix it (#52352) 2026-11-18 02:31:12 +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 fix(proxy): stream the guardrail block response when the block comes after an SSE keepalive ping (#51114) 2026-11-11 21:39:19 +00:00
test_moyai_endpoints.py test: fix flaky team delete, refusal sink, loop-blocking, Moyai tamper and model-cost leak tests (#47135) 2026-10-20 18:01:36 +00:00
test_native_compaction.py feat(customer portal): set budgets per customer and gateway app (#52477) 2026-11-18 17:31:03 +00: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 feat(auth): read virtual keys, jwt key mappings and model access groups through rust repositories (#52173) 2026-11-18 03:53:37 +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 fix(proxy): close streams before rebuilding the served output for logging (#51487) 2026-11-14 22:32:48 +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(customer portal): set budgets per customer and gateway app (#52477) 2026-11-18 17:31:03 +00:00
test_proxy_server_custom_logger.py test: migrate legacy unit dirs and unrun folders into tests/unit, tests/integration and tests/e2e (#45940) 2026-10-11 06:24:57 -07:00
test_proxy_server_endpoints_and_startup.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_proxy_server_exception_mapping.py test: migrate legacy unit dirs and unrun folders into tests/unit, tests/integration and tests/e2e (#45940) 2026-10-11 06:24:57 -07:00
test_proxy_setting_guardrails.py
test_proxy_token_counter.py fix(proxy): count the request's tool_choice on the token count routes (#51133) 2026-11-14 07:53:27 -05: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(auth): decide key and JWT authentication in a Rust core (#51374) 2026-11-17 14:07:47 +09:00
test_proxy_utils_model_creation_and_error_logging.py feat(model_armor): scan MCP tool results on post_mcp_call (#51887) 2026-11-18 12:17:47 -08:00
test_pyroscope.py
test_read_model_list.py
test_redis_auth_cache_flag.py fix(redis): share one native circuit breaker between RedisCache and the Rust stores (#50473) 2026-11-07 17:50:06 +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 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
test_route_priority.py fix(proxy): let configured pass-through endpoints outrank built-in provider prefix routes (#44133) 2026-10-10 12:26:17 -07:00
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 feat(proxy): run spend log cleanup from a DB-backed scheduled job table (#50131) 2026-11-11 18:22:02 -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_tracing_endpoints.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07: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(accounting)!: make the SpendLogs ledger the default accounting path (#49872) 2026-11-05 09:14:10 -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 perf(proxy): coalesce empty auto-router baseline recovery polls (#52523) 2026-11-19 00:20:59 +00: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 feat(customer portal): set budgets per customer and gateway app (#52477) 2026-11-18 17:31:03 +00:00
vertex_key.json