litellm/tests/proxy_unit_tests
Krish Dholakia 0da25fadc0
Exclude none fields on /chat/completion - fixes n8n bug + Allow calling /v1/models when end user over budget (#13320)
* fix(proxy_server.py): exclude none fields before returning

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

* test: add unit tests

* feat(auth_checks.py): allow info routes to work when end user over budget

Fixes https://github.com/BerriAI/litellm/issues/13286
2025-08-05 21:39:46 -07:00
..
example_config_yaml
test_configs
test_model_response_typing
adroit-crow-413218-bc47f303efc9.json
azure_fine_tune.jsonl
batch_job_results_furniture.jsonl
conftest copy.py
conftest.py
data_map.txt
eagle.wav
gettysburg.wav
large_text.py
messages_with_counts.py
model_cost.json
openai_batch_completions_router.jsonl
openai_batch_completions.jsonl
speech_vertex.mp3
test_aproxy_startup.py
test_audit_logs_proxy.py [Feat] Add /image/edits on LiteLLM (#11123) 2025-05-24 10:18:01 -07:00
test_auth_checks.py Exclude none fields on /chat/completion - fixes n8n bug + Allow calling /v1/models when end user over budget (#13320) 2025-08-05 21:39:46 -07:00
test_banned_keyword_list.py
test_custom_callback_input.py
test_custom_logger_s3_gcs.py [Feat] Allow reading custom logger python scripts from s3 (#12623) 2025-07-16 15:07:01 -07:00
test_db_schema_changes.py
test_db_schema_migration.py
test_deployed_proxy_keygen.py
test_e2e_pod_lock_manager.py [️ Python SDK import] - reduce python sdk import time by .3s (#12140) 2025-06-28 14:57:10 -07:00
test_jwt.py [Security Fix] - Dont show pure JWT in "Logs" page on UI (#12524) 2025-07-11 15:33:57 -07:00
test_key_generate_dynamodb.py
test_key_generate_prisma.py test: update test 2025-08-01 09:07:53 -07:00
test_models_fallback_endpoint.py feat: extended /v1/models endpoint, now it returns with fallbacks on demand (#12811) 2025-07-22 23:16:46 -07:00
test_proxy_config_unit_test.py
test_proxy_custom_auth.py
test_proxy_custom_logger.py [Feat] Use aiohttp transport by default - 97% lower median latency (#11097) 2025-05-23 22:55:35 -07:00
test_proxy_encrypt_decrypt.py test: fix test 2025-07-27 09:52:22 -07:00
test_proxy_exception_mapping.py Litellm fix proxy unit testing p2 (#12779) 2025-07-19 16:35:05 -07:00
test_proxy_gunicorn.py
test_proxy_pass_user_config.py
test_proxy_reject_logging.py [Security Bug Fix] Ensure only LLM API route fails get logged on Langfuse (and other loggers) (#12308) 2025-07-04 14:42:42 -07:00
test_proxy_routes.py
test_proxy_server_caching.py
test_proxy_server_keys.py
test_proxy_server_langfuse.py
test_proxy_server_spend.py
test_proxy_server.py [Feat] Background Health Checks - Allow disabling background health checks for a specific (#13186) 2025-07-31 13:48:35 -07:00
test_proxy_setting_guardrails.py
test_proxy_token_counter.py [LLM Translation + Coding tools] Added litellm claude code count tokens support (#13261) 2025-08-05 10:57:24 -07:00
test_proxy_utils.py test: update test 2025-07-29 21:35:44 -07:00
test_unit_test_max_model_budget_limiter.py
test_unit_test_proxy_hooks.py
test_update_spend.py
test_user_api_key_auth.py [Feat] Allow using query_params for setting API Key for generateContent routes (#13100) 2025-07-29 14:11:06 -07:00
vertex_key.json