litellm/tests/router_unit_tests
mateo-berri 46ba48e69a
Some checks failed
Unit Tests: Proxy DB Operations / assert-shard-coverage (push) Has been cancelled
Unit Tests: Security / security (push) Has been cancelled
Unit Tests: Proxy DB Operations / auth-checks (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-utils (push) Has been cancelled
Unit Tests: Proxy DB Operations / budgets (push) Has been cancelled
Unit Tests: Proxy DB Operations / custom-logging (push) Has been cancelled
Unit Tests: Proxy DB Operations / db-and-spend (push) Has been cancelled
Unit Tests: Proxy DB Operations / endpoints-and-responses (push) Has been cancelled
Unit Tests: Proxy DB Operations / guardrails-hooks (push) Has been cancelled
Unit Tests: Proxy DB Operations / jwt-and-keys (push) Has been cancelled
Unit Tests: Proxy DB Operations / key-generation (push) Has been cancelled
Unit Tests: Proxy DB Operations / logging-misc (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-runtime (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-server-core (push) Has been cancelled
Unit Tests: Proxy DB Operations / schema-migration (push) Has been cancelled
fix(router): apply decoded provider for managed container IDs without model_id
A managed cntr_ ID can encode a non-OpenAI provider (e.g. azure) with an
empty model_id when streaming events have no router model_info.id. The
provider override was nested inside 'if model_id:', so such IDs unwrapped
the container_id but kept custom_llm_provider='openai', routing the
request to the wrong upstream. Hoist the override out of the model_id
guard.
2026-04-30 21:29:38 +00:00
..
conftest.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
create_mock_standard_logging_payload.py (refactor) - migrate router.deployment_callback_on_success to use StandardLoggingPayload (#7015) 2024-12-03 20:29:25 -08:00
gettysburg.wav test(router_code_coverage.py): check if all router functions are dire… (#6186) 2024-10-14 22:44:00 -07:00
README.md test(router_code_coverage.py): check if all router functions are dire… (#6186) 2024-10-14 22:44:00 -07:00
test_completion_no_copy.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_default_deployment_copy.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_get_model_list_alias_optimization.py fix(router): address remaining Greptile review comments 2026-03-27 20:11:28 +05:30
test_pre_call_checks_optimization.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_prompt_management_check.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_acancel_batch.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_adding_deployments.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_batch_utils.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_cooldown_utils.py fix(router): add minimum request threshold for error rate cooldown (#17464) 2025-12-12 04:36:10 -08:00
test_router_embedding_headers.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_embedding_integration.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_endpoints.py fix(router): apply decoded provider for managed container IDs without model_id 2026-04-30 21:29:38 +00:00
test_router_handle_error.py fix(handle_error.py): add unit tests 2025-08-11 18:25:30 -07:00
test_router_helper_utils.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_index_management.py Merge branch 'litellm_internal_staging' into litellm_adaptive_routing 2026-04-20 15:28:08 -07:00
test_router_prompt_caching.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00

Router component unit tests.

Please name all files with the word 'router' in them.

This is used to ensure all functions in the router are tested.