litellm/tests/test_litellm
Krish Dholakia e638c5490d
Merge pull request #13945 from NoWall57/feature/force-anthropic-custom-api-base
feat: Add support for custom Anthropic-compatible API endpoints
2025-08-27 22:28:55 -07:00
..
caching verify expires field prior to serving cache entry 2025-08-25 10:42:12 +02:00
completion_extras/litellm_responses_transformation fix: make gemini and openai responses return reasoning by default 2025-07-22 10:41:29 -05:00
enterprise/enterprise_callbacks
experimental_mcp_client
google_genai [Bug Fix] Gemini-CLI - The Gemini Custom API request has an incorrect authorization format (#13098) 2025-07-29 13:46:43 -07:00
integrations [Feat] langfuse_otel logger - allow using LANGFUSE_OTEL_HOST for configuring host (#14013) 2025-08-27 14:43:47 -07:00
litellm_core_utils [Feat] Add support for returning images with gemini/gemini-2.5-flash-image-preview with /chat/completions (#13983) 2025-08-27 16:16:19 -07:00
llms Merge pull request #12797 from ericgtkb/fix-vertex-ai-anyof 2025-08-27 22:26:13 -07:00
passthrough [Bug Fix] Azure Passthrough request with streaming (#13831) 2025-08-25 14:11:17 -07:00
proxy Merge pull request #13160 from pangeacyber/aidr-update 2025-08-27 22:15:32 -07:00
responses [Bug]: /responses endpoint proxy ignores extra_headers in GitHub Copilot (#13775) 2025-08-27 12:35:09 -07:00
router_strategy fix mapped test 2025-07-25 07:24:42 -07:00
router_utils Merge pull request #13529 from BerriAI/litellm_dev_08_11_2025_p1 2025-08-18 18:54:19 -07:00
secret_managers Added handling for pwd protected cert files in AOAI CertificateCredential auth (#12995) 2025-07-28 21:34:54 -07:00
types [LLM Translation] Fix Model Usage not having text tokens (#13234) 2025-08-04 21:06:49 +05:30
vector_stores [Bug Fix] Bedrock KB - Using LiteLLM Managed Credentials for Query (#13787) 2025-08-19 15:39:36 -07:00
__init__.py
conftest.py [Feat] Add support for returning images with gemini/gemini-2.5-flash-image-preview with /chat/completions (#13983) 2025-08-27 16:16:19 -07:00
log.txt
readme.md
test_constants.py
test_cost_calculation_log_level.py Enhance logging in cost calculation tests to ensure DEBUG level captures are accurate. Updated tests to set logger level before assertions and restored original logger level after execution. This improves reliability of log level checks in both cost and batch cost calculation tests. 2025-08-14 14:21:22 -07:00
test_cost_calculator.py Update test_cost_calculator.py 2025-08-19 23:14:22 +05:30
test_groq_streaming_encoding.py [Bug] Fix: Vertex Mistral not working for streaming (#13952) 2025-08-25 17:39:40 -07:00
test_logging.py
test_lowest_latency_zero_tokens.py
test_main.py fix: test error 2025-08-26 01:58:04 +08:00
test_router.py test: cleanup old tests 2025-08-18 22:58:29 -07:00
test_system_message_format_bug.py Ensure that function_call_prompt extends system messages following its current schema 2025-08-03 17:47:13 +02:00
test_utils.py fix: LITELLM_LOG_FILE test 2025-08-27 08:25:24 -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