litellm/tests
Imgyu Kim ad07d7faad fix: strip 'openrouter/' prefix from model names (#24234)
Remove early return in get_llm_provider_logic.py that prevented
the 'openrouter/' prefix from being stripped. The early return was
intended for 'native OpenRouter models' like 'openrouter/free',
but no such models exist in the model registry — all OpenRouter
models are multi-segment (e.g. 'openrouter/anthropic/claude-3.5-sonnet')
and need the prefix stripped before being sent to the OpenRouter API.

This regression was introduced in v1.82.3 and caused 400 Bad Request
errors for all OpenRouter models.
2026-03-21 18:06:44 +09:00
..
agent_tests
audio_tests
basic_proxy_startup_tests
batches_tests Fix flaky batch tests: mock vertex auth and skip on DNS failure 2026-03-15 18:37:40 -07:00
benchmarks Add CodSpeed performance benchmarks (#23676) 2026-03-14 18:44:36 -07:00
code_coverage_tests
documentation_tests
enterprise Fix downloading vertex ai files 2026-03-16 12:08:06 +05:30
guardrails_tests Optimize CI: parallelize router and guardrails test jobs, fix test isolation 2026-03-14 22:54:44 -07:00
image_gen_tests
litellm
litellm_core_utils
litellm_utils_tests Fix flaky AWS secret manager tests by skipping on ThrottlingException 2026-03-15 18:53:18 -07:00
litellm-proxy-extras fix: prisma migrate deploy failures on pre-existing instances (#23655) 2026-03-14 16:54:21 -07:00
llm_responses_api_testing fix: address greptile feedback 2026-03-18 21:36:39 -07:00
llm_translation Merge remote main into litellm_ci_optimize 2026-03-16 00:50:22 -07:00
load_tests
local_testing fix: strip 'openrouter/' prefix from model names (#24234) 2026-03-21 18:06:44 +09:00
logging_callback_tests Ishaan - March 18th changes (#24056) 2026-03-19 10:20:35 -07:00
mcp_tests [Infra] Merging RC Branch with Main (#23786) 2026-03-16 15:32:20 -07:00
multi_instance_e2e_tests
ocr_tests
old_proxy_tests/tests
openai_endpoints_tests Fix flaky e2e batch test: set batch_processed=True on completion in retrieve_batch 2026-03-15 18:18:32 -07:00
otel_tests
pass_through_tests Fix flaky vertex pass-through spend test by polling instead of fixed sleep 2026-03-15 17:37:53 -07:00
pass_through_unit_tests
proxy_admin_ui_tests
proxy_e2e_anthropic_messages_tests Merge remote main into litellm_ci_optimize 2026-03-16 00:50:22 -07:00
proxy_e2e_azure_batches_tests Increase file deletion retry budget to 50s for batch_processed race 2026-03-15 15:39:35 -07:00
proxy_security_tests
proxy_unit_tests fix(proxy): sync normalized call_type into model_call_details for proxy-only errors 2026-03-18 23:49:07 +03:00
router_unit_tests Address router generic API review feedback 2026-03-18 15:25:44 -05:00
scim_tests
search_tests
spend_tracking_tests [Staging] - Ishaan March 17th (#23903) 2026-03-18 15:09:01 -07:00
store_model_in_db_tests
test_litellm fix(test): mock get_auth_header instead of get_api_key in anthropic file content test 2026-03-20 16:07:09 -07:00
unified_google_tests
vector_store_tests
windows_tests
__init__.py
gettysburg.wav
large_text.py
openai_batch_completions.jsonl
README.MD
test_budget_management.py
test_callbacks_on_proxy.py
test_config.py
test_debug_warning.py
test_default_encoding_non_root.py fix: tiktoken cache nonroot offline (#23498) 2026-03-14 10:48:36 -07:00
test_end_users.py
test_entrypoint.py
test_fallbacks.py
test_gpt5_azure_temperature_support.py
test_health.py
test_keys.py
test_litellm_proxy_responses_config.py
test_logging.conf
test_models.py
test_new_vector_store_endpoints.py
test_openai_endpoints.py
test_organizations.py
test_otel_thread_leak.py
test_passthrough_endpoints.py
test_presidio_latency.py
test_proxy_server_non_root.py
test_ratelimit.py
test_resource_cleanup.py
test_service_logger_otel.py
test_spend_logs.py
test_team_logging.py
test_team_members.py
test_team.py [Fix] Fail fast when team member spend not flushed in time 2026-03-13 12:40:17 -07:00
test_users.py

In total litellm runs 1000+ tests

[02/20/2025] Update:

To make it easier to contribute and map what behavior is tested,

we've started mapping the litellm directory in tests/test_litellm

This folder can only run mock tests.