litellm/tests/unit/proxy
joshua-berri d30c702c5c
feat(accounting): add durable event ledger writer (#48883)
* feat(accounting): add durable event ledger writer

* fix(accounting): validate delegated transaction managers locally

* docs(accounting): clarify ledger integration contracts

* fix(accounting): return ledger conflicts as values and keep cleanup on the kind index

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(accounting): import assert_never from typing_extensions for Python 3.10

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(accounting): annotate ledger integration test locals as Final

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(accounting): finish ledger test conventions

---------

Co-authored-by: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-28 16:11:51 -07:00
..
_experimental fix(mcp): load deprecated package aliases on demand (#48615) 2026-10-27 19:46:19 +00:00
a2a
agent_endpoints fix(proxy): release concurrency slots when synthetic streams complete (#48628) 2026-10-27 14:47:04 -07:00
analytics_endpoints
anthropic_endpoints feat(proxy): log one line per token count call (#47657) 2026-10-28 11:23:52 -07:00
auth feat(proxy)!: model family and access group entries in model_max_budget (#47722) 2026-10-28 15:40:57 -07:00
batches_endpoints fix(router)!: only prefixed caller tags route once tag_routing_prefix is set (#47428) 2026-10-20 00:12:28 -07:00
client fix(cli): let the proxy decide when a classic lite login token has expired (#47712) 2026-10-28 13:07:17 -07:00
common_utils fix(batches): stop unbillable batches from blocking file deletes and new-batch polling (#48752) 2026-10-28 12:19:36 -07:00
config_resolvers
container_endpoints
credential_endpoints feat(github_copilot): support a GHE.com host on per-user Copilot credentials (#47610) 2026-10-20 14:16:35 -07:00
db feat(accounting): add durable event ledger writer (#48883) 2026-10-28 16:11:51 -07:00
decisions_endpoints feat(decisions): support Ollama decision models (#48871) 2026-10-28 12:35:26 -07:00
discovery_endpoints feat(ui): add LITELLM_UI_USE_SI_TERMINOLOGY to show SI instead of AI in the Admin UI (#47440) 2026-10-27 22:54:39 +00:00
enterprise_billing
example_config_yaml
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(gemini)!: accept Google's current Managed Agents fields on create and interactions (#48750) 2026-10-28 12:37:59 -07:00
guardrails fix(guardrails)!: make hide-secrets honor skip_tool_message_in_guardrail (#48689) 2026-10-28 14:49:48 -07:00
health_endpoints feat(chatgpt): forward client subscriptions through the gateway (#41522) 2026-10-26 15:44:05 -07:00
hooks feat(proxy)!: model family and access group entries in model_max_budget (#47722) 2026-10-28 15:40:57 -07:00
image_endpoints
lens fix(proxy): validate JSON object bodies before request handling (#48438) 2026-10-26 16:11:38 -07:00
list_api
logging_endpoints
management
management_endpoints feat(proxy)!: model family and access group entries in model_max_budget (#47722) 2026-10-28 15:40:57 -07:00
management_helpers refactor(mcp): drop the experimental label from the MCP server and client paths (#48513) 2026-10-27 17:47:50 +00:00
mcp_server fix(otel): suppress spans for excluded proxy requests (#48720) 2026-10-28 11:24:34 -07:00
memory
middleware fix(proxy): decode zstd and gzip request bodies before auth reads them (#47418) 2026-10-20 05:11:30 +00:00
ocr_endpoints
openai_files_endpoint fix(files)!: scope provider and model file lists to the caller's managed files under require_managed_files (#47682) 2026-10-28 13:42:22 -07:00
pass_through_endpoints feat(proxy): log one line per token count call (#47657) 2026-10-28 11:23:52 -07:00
policy_engine fix(proxy): keep every startup line JSON when json_logs is on (#47035) 2026-10-27 14:49:07 -07:00
prompts
proxy_server feat(proxy): accept request priority from the x-litellm-priority header (#47618) 2026-10-28 15:58:52 -07:00
public_endpoints feat(providers): add ZeroGPU as an OpenAI-compatible provider (#43874) 2026-10-28 12:40:32 -07:00
rag_endpoints
realtime_endpoints
rerank_endpoints
response_api_endpoints feat(proxy): log one line per token count call (#47657) 2026-10-28 11:23:52 -07:00
response_polling fix(router): stop concurrent deployment deletes from crashing deployment lookups (#47680) 2026-10-26 15:40:19 -07:00
roi_calculator
search_endpoints
shutdown
spend_tracking fix(token_counter): count Anthropic-format tool_choice without KeyError (#48624) 2026-10-27 12:33:48 -07: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): honor dark and local logos across Connect and Chat (#48532) 2026-10-27 03:00:03 +00:00
utils fix(security)!: build proxy-only failure logs from an allowlist and drop caller guardrail info (#48599) 2026-10-27 12:40:59 -07:00
vector_store_endpoints feat(vertex_ai): let operators drop chosen anthropic-beta values on the Vertex AI pass-through routes (#47185) 2026-10-18 12:51:27 +00:00
vector_store_files_endpoints
video_endpoints fix(videos)!: keep model_id in proxy video ids so per-model keys resolve on status/content (#44614) 2026-10-20 05:42:59 +00:00
__init__.py
conftest.py feat(proxy): log one line per token count call (#47657) 2026-10-28 11:23:52 -07:00
test__lazy_features.py feat(ui): unify gateway and usage assistance as Aria Agent (#48082) 2026-10-23 20:24:19 +00:00
test__types.py fix(proxy): reject negative RPM and TPM request limits (#48444) 2026-10-26 21:16:15 +00:00
test_admin_mcp.py
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
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 fix(proxy): release concurrency slots when synthetic streams complete (#48628) 2026-10-27 14:47:04 -07:00
test_bug_report_config.py
test_caching_routes.py
test_chat_completion_metadata.py
test_claude_code_marketplace.py
test_collector.py
test_common_request_processing.py feat(proxy): accept request priority from the x-litellm-priority header (#47618) 2026-10-28 15:58:52 -07:00
test_component_allowlists.py
test_conftest.py
test_cors_config.py
test_credential_slot_registry.py
test_custom_callback_input.py
test_custom_logger_s3_gcs.py
test_custom_proxy.py
test_custom_tokenizer_bug.py
test_db_schema_changes.py
test_deprecated_key_grace_period.py
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
test_enforce_user_param.py
test_fallback_management_endpoints.py
test_fastapi_offline_routes.py
test_filter_models_by_team_access_group.py
test_get_favicon.py
test_get_image.py
test_health_check_functions.py
test_health_check_max_tokens.py
test_init_litellm_callbacks.py
test_langfuse_passthrough_security.py
test_lazy_openapi_snapshot.py
test_litellm_pre_call_utils.py fix(router): isolate child tier pins in user turn mode (#48701) 2026-10-28 10:00:48 -07:00
test_max_budget_env_var.py
test_mcp_asgi_response.py
test_model_based_routing_files_batches.py
test_model_deprecations_endpoint.py
test_model_dump_with_preserved_fields.py
test_model_id_header_propagation.py
test_model_info_default_limits.py
test_model_level_guardrails.py
test_model_list_aliases.py
test_model_list_callback_filter.py
test_model_list_discoverable.py
test_model_list_healthy_only.py
test_modify_response_streaming_passthrough.py
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
test_openai_ws_passthrough_routes.py
test_openapi_schema_validation.py
test_plugin_routes.py
test_pointfive_dashboard_config.py
test_pointfive_ui_callback.py
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
test_prometheus_cleanup.py
test_prometheus_metrics_server.py
test_prompt_test_endpoint.py
test_provider_url_destination_guard.py
test_proxy_cli.py fix(proxy): keep every startup line JSON when json_logs is on (#47035) 2026-10-27 14:49:07 -07:00
test_proxy_config_unit_test.py
test_proxy_custom_auth.py
test_proxy_logging_hook_detection.py
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(proxy): default wildcard model listings from general settings (#43624) 2026-10-23 10:07:23 -07:00
test_proxy_server_custom_logger.py
test_proxy_server_endpoints_and_startup.py fix(proxy): keep every startup line JSON when json_logs is on (#47035) 2026-10-27 14:49:07 -07:00
test_proxy_server_exception_mapping.py
test_proxy_setting_guardrails.py
test_proxy_token_counter.py fix(count_tokens)!: audit #47441 and keep the framed estimate for Bedrock count models from the cost map (#48805) 2026-10-28 19:11:35 +00:00
test_proxy_types.py
test_proxy_utils.py feat(model hub): show admin-defined custom tags and metadata from model_info (#46064) 2026-10-20 17:45:06 -07:00
test_proxy_utils_model_creation_and_error_logging.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_pyroscope.py
test_read_model_list.py
test_redis_auth_cache_flag.py
test_reducto_ocr_route.py
test_response_model_sanitization.py
test_response_polling_pre_call_checks.py
test_route_a2a_models.py
test_route_llm_request.py fix(gemini)!: accept Google's current Managed Agents fields on create and interactions (#48750) 2026-10-28 12:37:59 -07:00
test_route_priority.py
test_sensitive_route_auth.py
test_server_root_path.py
test_shared_health_check.py
test_spend_log_cleanup.py fix(proxy): size pass rebuilds reset row statistics with ANALYZE and keeps its reclaimable count (#47501) 2026-10-20 12:24:19 -07:00
test_swagger_chat_completions.py
test_team_member_update.py
test_team_org_move.py
test_tools_allowlist_enforcement.py
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
test_unit_test_proxy_hooks.py
test_update_llm_router_resilience.py
test_update_spend.py fix(proxy): strip caller base_model from spend pricing and reject lone surrogates in multipart metadata (#47639) 2026-10-20 21:14:18 +00:00
test_zero_cost_model_budget_bypass.py
test_zerobus_dashboard_config.py
vertex_key.json