mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 04:28:07 +00:00
- Change truncation strategy from head-only to middle-truncation (35% start, 65% end) - Preserve both beginning and end of long strings for better debugging context - Apply same sanitization to response payloads when store_prompts_in_spend_logs is enabled - Increase default MAX_STRING_LENGTH_PROMPT_IN_DB from 1000 to 2048 characters - Update tests to verify new truncation behavior with 35%-65% split This provides better diagnostic value by keeping the more important end context while still maintaining storage limits.
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/litellm
This folder can only run mock tests.