litellm-mirror/tests/litellm
Krish Dholakia 217681eb5e
Litellm dev 04 22 2025 p1 (#10206)
* fix(openai.py): initial commit adding generic event type for openai responses api streaming

Ensures handling for undocumented event types - e.g. "response.reasoning_summary_part.added"

* fix(transformation.py): handle unknown openai response type

* fix(datadog_llm_observability.py): handle dict[str, any] -> dict[str, str] conversion

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

* test: add more unit testing

* test: add unit test

* fix(common_utils.py): fix message with content list

* test: update testing
2025-04-22 23:58:43 -07:00
..
caching update redisvl dependency 2025-03-24 08:42:11 -04:00
experimental_mcp_client rename transform_openai_tool_call_request_to_mcp_tool_call_request 2025-03-29 16:28:23 -07:00
integrations feat: Added Missing Attributes For Arize & Phoenix Integration (#10043) (#10215) 2025-04-22 21:34:51 -07:00
litellm_core_utils Litellm dev 04 22 2025 p1 (#10206) 2025-04-22 23:58:43 -07:00
llms Litellm dev 04 22 2025 p1 (#10206) 2025-04-22 23:58:43 -07:00
proxy UI - Users page - Enable global sorting (allows finding users with highest spend) (#10211) 2025-04-22 19:59:53 -07:00
responses TestResponseAPILoggingUtils 2025-03-12 12:45:03 -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 Support format param for specifying image type (#9019) 2025-03-05 19:52:53 -08:00
readme.md (UI + Proxy) Cache Health Check Page - Cleanup/Improvements (#8665) 2025-02-19 19:08:50 -08:00
test_cost_calculator.py Revert avglogprobs change + Add azure/gpt-4o-realtime-audio cost tracking (#9893) 2025-04-10 21:23:55 -07:00
test_main.py fix #8425, passthrough kwargs during acompletion, and unwrap extra_body for openrouter (#9747) 2025-04-03 22:19:40 -07:00
test_router.py fix(router.py): handle edge case where user sets 'model_group' inside… (#10191) 2025-04-21 16:17:45 -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