litellm/tests/test_litellm/proxy/spend_tracking
Alexsander Hamir 2e007505da
fix(spend-logs): trim logged response strings (#16654)
* fix(spend-logs): trim logged response strings

- route spend-log responses through the existing string sanitizer so oversized base64/text fields are truncated before persistence
- add unit tests covering the truncation path and the feature flag

Note: embeddings-specific truncation (numeric vectors) is still pending and will be handled separately.

* remove unnecessary comment

* add: sanitization unit test for embeddings

* fix: simplify sanatization logic

I overcomplicated a simple change for lack of understanding, fixed.
2025-11-18 20:12:49 -08:00
..
test_spend_management_endpoints.py test_ui_view_spend_logs_with_team_id 2025-11-15 10:12:47 -08:00
test_spend_tracking_utils.py fix(spend-logs): trim logged response strings (#16654) 2025-11-18 20:12:49 -08:00