litellm/tests/litellm
Krish Dholakia 2b50b43ae2
Support passing prompt_label to langfuse (#11018)
* fix: add prompt label support to prompt management hook

* feat: support 'prompt_label' parameter for langfuse prompt management

Closes https://github.com/BerriAI/litellm/discussions/9003#discussioncomment-13221555

* fix(litellm_logging.py): deep copy optional params to avoid mutation while logging

* fix(log-consistent-optional-param-values-across-providers): ensures params can be used for finetuning from providers

* fix: fix linting error

* test: update test

* test: update langfuse tests

* fix(litellm_logging.py): avoid deepcopying optional params

might contain thread object
2025-05-21 22:27:36 -07:00
..
caching update redisvl dependency 2025-03-24 08:42:11 -04:00
enterprise [Fix] Invitation Email does not include the invitation link (#10958) 2025-05-19 15:38:38 -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 Support passing prompt_label to langfuse (#11018) 2025-05-21 22:27:36 -07:00
litellm_core_utils Improve response_id propagation logic and add tests for valid/empty ID handling in streaming. (#11006) 2025-05-21 07:27:17 -07:00
llms Litellm dev 05 21 2025 p2 (#11039) 2025-05-21 21:40:53 -07:00
proxy test: mark flaky test 2025-05-21 21:36:46 -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 Revert "Revert "[Fix] Allow overriding all constants using a .env variable (#10803)"" 2025-05-14 18:27:43 -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 fix: handle DB_USER, DB_PASSWORD, DB_HOST problem I faced, since this… (#10842) 2025-05-19 09:29:12 -07:00
test_router.py fix: allow using credentials with amoderation (#10723) 2025-05-10 14:27:57 -07:00
test_utils.py [Feature] Add supports_computer_use to the model list (#10881) 2025-05-20 17:07:43 -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