litellm/tests
Ishaan Jaff bd88263b29
[Feat - Cost Tracking improvement] Track prompt caching metrics in DailyUserSpendTransactions (#10029)
* stash changes

* emit cache read/write tokens to daily spend update

* emit cache read/write tokens on daily activity

* update types.ts

* docs prompt caching

* undo ui change

* fix activity metrics

* fix prompt caching metrics

* fix typed dict fields

* fix get_aggregated_daily_spend_update_transactions

* fix aggregating cache tokens

* test_cache_token_fields_aggregation

* daily_transaction

* add cache_creation_input_tokens and cache_read_input_tokens to LiteLLM_DailyUserSpend

* test_daily_spend_update_queue.py
2025-04-15 21:40:57 -07:00
..
basic_proxy_startup_tests
batches_tests VertexAI non-jsonl file storage support (#9781) 2025-04-09 14:01:48 -07:00
code_coverage_tests fix(cost_calculator.py): handle custom pricing at deployment level fo… (#9855) 2025-04-09 22:13:10 -07:00
documentation_tests
image_gen_tests get_base_image_generation_call_args 2025-04-02 21:04:06 -07:00
litellm [Feat - Cost Tracking improvement] Track prompt caching metrics in DailyUserSpendTransactions (#10029) 2025-04-15 21:40:57 -07:00
litellm_utils_tests Support checking provider /models endpoints on proxy /v1/models endpoint (#9958) 2025-04-14 23:23:20 -07:00
llm_responses_api_testing test_openai_o1_pro_response_api_streaming 2025-03-20 13:04:49 -07:00
llm_translation Fix azure tenant id check from env var + response_format check on api_version 2025+ (#9993) 2025-04-14 22:02:35 -07:00
load_tests fix vertex embedding perf test 2025-03-26 10:25:50 -07:00
local_testing test fix - azure deprecated azure ai mistral 2025-04-15 21:08:55 -07:00
logging_callback_tests [UI] Allow setting prompt cache_control_injection_points (#10000) 2025-04-14 21:17:42 -07:00
mcp_tests test fixes 2025-03-29 18:34:58 -07:00
multi_instance_e2e_tests
old_proxy_tests/tests
openai_endpoints_tests
otel_tests [Team Member permissions] - Fixes (#9945) 2025-04-12 11:17:51 -07:00
pass_through_tests [Bug Fix] Add support for UploadFile on LLM Pass through endpoints (OpenAI, Azure etc) (#9853) 2025-04-09 15:29:20 -07:00
pass_through_unit_tests use new anthropic interface 2025-03-31 14:31:09 -07:00
proxy_admin_ui_tests [Team Member permissions] - Fixes (#9945) 2025-04-12 11:17:51 -07:00
proxy_security_tests
proxy_unit_tests [Feat] Emit Key, Team Budget metrics on a cron job schedule (#9528) 2025-04-10 16:59:14 -07:00
router_unit_tests fix(router.py): support reusable credentials via passthrough router (#9758) 2025-04-04 18:40:14 -07:00
spend_tracking_tests test_long_term_spend_accuracy_with_bursts 2025-03-31 21:09:29 -07:00
store_model_in_db_tests
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: run test earlier to catch error 2025-03-27 23:08:52 -07:00
test_entrypoint.py
test_fallbacks.py
test_health.py
test_keys.py
test_logging.conf
test_models.py fix(model_management_endpoints.py): fix allowing team admins to update team models (#9697) 2025-04-01 22:28:15 -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.