mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-05 23:06:35 +00:00
094ce8f772
- Add ttl parameter to cache_control for Gemini models - Support Google's TTL format (e.g., '3600s', '7200s') - Implement robust TTL extraction and validation - Extract TTL before system message transformation to handle all cases - Add comprehensive test suite with 17 test cases in tests/test_litellm/ - Update documentation with TTL usage examples - Maintain backward compatibility with existing cache_control usage Fixes #9810
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.