litellm/tests
Krish Dholakia 7b27cfb0ae
Support temporary budget increases on keys (#7754)
* fix(gpt_transformation.py): fix response_format translation check for 4o models

Fixes https://github.com/BerriAI/litellm/issues/7616

* feat(key_management_endpoints.py): support 'temp_budget_increase' and 'temp_budget_expiry' fields

Allow proxy admin to grant temporary budget increases to keys

* fix(proxy/_types.py): enforce temp_budget_increase and temp_budget_expiry are always passed together

* feat(user_api_key_auth.py): initial working temp budget increase logic

ensures key budget exceeded error checks for temp budget in key metadata

* feat(proxy_server.py): return the key max budget and key spend in the response headers

Allows clientside user to know their remaining limits

* test: add unit testing for new proxy utils

Ensures new key budget is correctly handled

* docs(temporary_budget_increase.md): add doc on temporary budget increase

* fix(utils.py): remove 3.5 from response_format check for now

not all azure  3.5 models support response_format

* fix(user_api_key_auth.py): return valid user api key auth object on all paths
2025-01-14 17:03:11 -08:00
..
basic_proxy_startup_tests
batches_tests (Feat - Batches API) add support for retrieving vertex api batch jobs (#7661) 2025-01-09 18:35:03 -08:00
code_coverage_tests add enforce_llms_folder_style (#7175) 2024-12-11 01:01:49 -08:00
documentation_tests Litellm dev 12 28 2024 p1 (#7463) 2024-12-28 20:26:00 -08:00
image_gen_tests [BETA] Add OpenAI /images/variations + Topaz API support (#7700) 2025-01-11 23:27:46 -08:00
llm_translation Support temporary budget increases on keys (#7754) 2025-01-14 17:03:11 -08:00
load_tests [BETA] Add OpenAI /images/variations + Topaz API support (#7700) 2025-01-11 23:27:46 -08:00
local_testing Litellm dev 01 14 2025 p1 (#7771) 2025-01-14 16:18:21 -08:00
logging_callback_tests (prometheus - minor bug fix) - litellm_llm_api_time_to_first_token_metric not populating for bedrock models (#7740) 2025-01-13 20:16:34 -08:00
old_proxy_tests/tests vertex testing use pathrise-convert-1606954137718 2025-01-05 14:00:17 -08:00
openai_misc_endpoints_tests test_e2e_batches_files 2024-12-28 19:54:04 -08:00
otel_tests Litellm dev 12 25 2024 p3 (#7421) 2024-12-25 18:54:24 -08:00
pass_through_tests vertex testing use pathrise-convert-1606954137718 2025-01-05 14:00:17 -08:00
pass_through_unit_tests vertex testing use pathrise-convert-1606954137718 2025-01-05 14:00:17 -08:00
proxy_admin_ui_tests [Bug fix]: Proxy Auth Layer - Allow Azure Realtime routes as llm_api_routes (#7684) 2025-01-10 20:38:06 -08:00
proxy_unit_tests Support temporary budget increases on keys (#7754) 2025-01-14 17:03:11 -08:00
router_unit_tests (litellm sdk speedup router) - adds a helper _cached_get_model_group_info to use when trying to get deployment tpm/rpm limits (#7719) 2025-01-12 15:14:54 -08:00
secret_manager_tests vertex testing use pathrise-convert-1606954137718 2025-01-05 14:00:17 -08:00
gettysburg.wav
large_text.py
openai_batch_completions.jsonl
README.MD
test_callbacks_on_proxy.py
test_config.py fix testing - langfuse apis are flaky, we unit test team / key based logging in test_langfuse_unit_tests.py 2024-12-03 11:24:36 -08:00
test_debug_warning.py
test_end_users.py
test_entrypoint.py
test_fallbacks.py
test_health.py
test_keys.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:24:11 -08:00
test_logging.conf
test_models.py
test_openai_endpoints.py ci/cd run again 2024-12-27 14:53:10 -08:00
test_organizations.py
test_passthrough_endpoints.py
test_ratelimit.py
test_spend_logs.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:24:11 -08:00
test_team_logging.py
test_team.py
test_users.py

In total litellm runs 500+ tests Most tests are in /litellm/tests. These are just the tests for the proxy docker image, used for circle ci.