litellm/tests/litellm
Ishaan Jaff 5fbcd22604
[Fix] Allow overriding all constants using a .env variable (#10803)
* fix: bump: DEFAULT_MAX_RECURSE_DEPTH

* fix: bump: DEFAULT_MAX_RECURSE_DEPTH

* test: test_vertex_ai_complex_response_schema

* fix: allow all constants to be overriden

* fix: allow all numeric constants to be overriden with env vars

* fix: remove dup DEFAULT_MAX_TOKENS in constants.py

* document all constants env vars

* docs - DEFAULT_PROMPT_INJECTION_SIMILARITY_THRESHOLD
2025-05-13 16:10:55 -07:00
..
caching update redisvl dependency 2025-03-24 08:42:11 -04:00
enterprise [Refactor] Use pip package for enterprise/ folder (#10709) 2025-05-09 17:18:48 -07:00
experimental_mcp_client rename transform_openai_tool_call_request_to_mcp_tool_call_request 2025-03-29 16:28:23 -07:00
integrations fix: URL encode OTEL_EXPORTER_OTLP_TRACES_HEADERS for Phoenix Integration (#10654) 2025-05-13 09:45:39 -07:00
litellm_core_utils fix(factory.py): Add reasoning content handling for missing assistant… (#10688) 2025-05-12 08:13:15 -07:00
llms [Fix] Maximum Vertex Recursion Depth Reached when transforming response_format (#10798) 2025-05-13 14:29:23 -07:00
proxy Fix azure dall e 3 call with custom model name + Handle Bearer $LITELLM_API_KEY in x-litellm-api-key custom header (#10776) 2025-05-12 22:49:35 -07:00
responses [Bug Fix] Responses API - fix for handling multiturn responses API sessions (#10415) 2025-04-29 17:22:47 -07:00
router_strategy Revert "Unit test fixing and poetry update" 2025-03-28 10:22:32 -07:00
router_utils/pre_call_checks [Feat] Add Responses API - Routing Affinity logic for sessions (#10193) 2025-04-21 20:00:27 -07:00
types/llms Litellm dev 04 22 2025 p1 (#10206) 2025-04-22 23:58:43 -07:00
conftest.py fix(proxy_server.py): get master key from environment, if not set in … (#9617) 2025-03-28 15:16:15 -07:00
log.txt Litellm staging 05 10 2025 - openai pdf url support + sagemaker chat content length error fix (#10724) 2025-05-10 17:41:57 -07:00
readme.md (UI + Proxy) Cache Health Check Page - Cleanup/Improvements (#8665) 2025-02-19 19:08:50 -08:00
test_constants.py [Fix] Allow overriding all constants using a .env variable (#10803) 2025-05-13 16:10:55 -07:00
test_cost_calculator.py Fix - support azure dall e custom pricing (#10339) 2025-04-26 17:16:03 -07:00
test_logging.py [Bug fix] JSON logs - Ensure only 1 log is emitted (previously duplicate json logs were getting emitted) (#10580) 2025-05-05 20:25:47 -07:00
test_main.py Litellm staging 05 10 2025 - openai pdf url support + sagemaker chat content length error fix (#10724) 2025-05-10 17:41:57 -07:00
test_router.py fix: allow using credentials with amoderation (#10723) 2025-05-10 14:27:57 -07:00
test_utils.py Fix azure dall e 3 call with custom model name + Handle Bearer $LITELLM_API_KEY in x-litellm-api-key custom header (#10776) 2025-05-12 22:49:35 -07:00

Testing for litellm/

This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.

The point of this is to:

  1. Increase test coverage of litellm/
  2. Make it easy for contributors to add tests for the litellm/ package and easily run tests without needing LLM API keys.

File name conventions

  • litellm/proxy/test_caching_routes.py maps to litellm/proxy/caching_routes.py
  • test_<filename>.py maps to litellm/<filename>.py