litellm/tests
Krish Dholakia 711601e22a
Add key-level multi-instance tpm/rpm/max parallel request limiting (#10458)
* fix: initial commit of v2 parallel request limiter hook

enables multi-instance rate limiting to work

* fix: subsequent commit with additional refactors

* fix(parallel_request_limiter_v2.py): cleanup initial call hook

simplify it

* fix(parallel_request_limiter_v2.py): working v2 parallel request limiter

* fix: more updates - still not passing testing

* fix(test_parallel_request_limiter_v2.py): update test + add conftest

* fix: fix ruff checks

* fix(parallel_request_limiter_v2.py): use pull via pattern method to load in keys instance wouldn't have seen yet

Fixes issue where redis syncing was not pulling key until instance had seen it

* test: update testing to cover tpm and rpm

* fix(parallel_request_limiter_v2.py): fix ruff errors

* fix(proxy/hooks/__init__.py): feature flag export

* fix(proxy/hooks/__init_.py): fix linting error

* ci(config.yml): add tests/enterprise to ci/cd

* fix: fix ruff check

* test: update testing
2025-04-30 21:32:31 -07:00
..
basic_proxy_startup_tests
batches_tests
code_coverage_tests Handle more gemini tool calling edge cases + support bedrock 'stable-image-core' (#10351) 2025-04-28 14:22:29 -07:00
documentation_tests
enterprise Add key-level multi-instance tpm/rpm/max parallel request limiting (#10458) 2025-04-30 21:32:31 -07:00
image_gen_tests [Bug Fix] Add Cost Tracking for gpt-image-1 when quality is unspecified (#10247) 2025-04-23 15:16:40 -07:00
litellm New feature: Add Python client library for LiteLLM Proxy (#10445) 2025-04-30 16:27:17 -07:00
litellm_utils_tests Support checking provider /models endpoints on proxy /v1/models endpoint (#9958) 2025-04-14 23:23:20 -07:00
litellm-proxy-extras Prisma Migrate - support setting custom migration dir (#10336) 2025-04-26 12:05:06 -07:00
llm_responses_api_testing [Bug Fix] Responses API - fix for handling multiturn responses API sessions (#10415) 2025-04-29 17:22:47 -07:00
llm_translation test: override flaky test 2025-04-29 18:54:49 -07:00
load_tests test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
local_testing Add key-level multi-instance tpm/rpm/max parallel request limiting (#10458) 2025-04-30 21:32:31 -07:00
logging_callback_tests [Feat] Add support for using Bedrock Knowledge Bases with LiteLLM /chat/completions requests (#10413) 2025-04-29 17:29:02 -07:00
mcp_tests
multi_instance_e2e_tests
old_proxy_tests/tests test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
openai_endpoints_tests # expect an error when getting the response again since 2025-04-25 09:42:35 -07:00
otel_tests Schedule budget resets at expectable times (#10331) (#10333) 2025-04-29 20:59:44 -07:00
pass_through_tests test: add more debug logs 2025-04-29 15:40:18 -07:00
pass_through_unit_tests [Feat] Pass through endpoints - ensure PassthroughStandardLoggingPayload is logged and contains method, url, request/response body (#10194) 2025-04-21 19:46:22 -07:00
proxy_admin_ui_tests UI (Keys Page) - Support cross filtering, filter by user id, filter by key hash (#10322) 2025-04-25 21:30:56 -07:00
proxy_security_tests
proxy_unit_tests Add key-level multi-instance tpm/rpm/max parallel request limiting (#10458) 2025-04-30 21:32:31 -07:00
router_unit_tests test_init_responses_api_endpoints 2025-04-24 21:43:59 -07:00
scim_tests [Feat SSO] Add LiteLLM SCIM Integration for Team and User management (#10072) 2025-04-16 19:21:47 -07:00
spend_tracking_tests
store_model_in_db_tests fix(router.py): handle edge case where user sets 'model_group' inside… (#10191) 2025-04-21 16:17:45 -07:00
gettysburg.wav
large_text.py
openai_batch_completions.jsonl
README.MD
test_callbacks_on_proxy.py
test_config.py
test_debug_warning.py
test_end_users.py
test_entrypoint.py
test_fallbacks.py
test_health.py
test_keys.py Support x-litellm-api-key header param + allow key at max budget to call non-llm api endpoints (#10392) 2025-04-29 18:57:57 -07:00
test_logging.conf
test_models.py Litellm UI improvements 04 26 2025 p1 (#10346) 2025-04-26 18:24:49 -07:00
test_openai_endpoints.py
test_organizations.py
test_passthrough_endpoints.py
test_ratelimit.py
test_spend_logs.py
test_team_logging.py
test_team_members.py
test_team.py
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/litellm

This folder can only run mock tests.