From 29895e2c4ede3c7c3c6b267fe264240edaf2a1ce Mon Sep 17 00:00:00 2001 From: Yamac Ay Date: Fri, 25 Sep 2026 10:18:38 +0200 Subject: [PATCH] fix tests accordingly --- tests/test_litellm/llms/sap/chat/test_sap_transformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_litellm/llms/sap/chat/test_sap_transformation.py b/tests/test_litellm/llms/sap/chat/test_sap_transformation.py index d54dc02ff57..555b96fff22 100644 --- a/tests/test_litellm/llms/sap/chat/test_sap_transformation.py +++ b/tests/test_litellm/llms/sap/chat/test_sap_transformation.py @@ -843,13 +843,13 @@ class TestCacheControl: { "role": "user", "content": [ - {"type": "text", "text": "Hello", "cache_control": {"type": "ephemeral", "ttl": "300"}}, + {"type": "text", "text": "Hello", "cache_control": {"type": "ephemeral", "ttl": "5m"}}, ], } ] body = self._transform("anthropic--claude-3-5-sonnet", messages) cc = self._template(body)[0]["content"][0]["cache_control"] - assert cc == {"type": "ephemeral", "ttl": "300"} + assert cc == {"type": "ephemeral", "ttl": "5m"} def test_message_level_cache_control_folded_on_assistant_message(self): """cache_control on an assistant turn is folded into a content block."""