From 0b9065b6d1b7aa85b1db09cc8a86f2dae166386e Mon Sep 17 00:00:00 2001 From: TobiMayr Date: Wed, 30 Sep 2026 12:07:56 +0200 Subject: [PATCH] style: format cache control type conversion --- .../litellm_completion_transformation/transformation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index 84795d3fed6..9336c8f305a 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -1759,8 +1759,10 @@ class LiteLLMCompletionResponsesConfig: ) function_call_cache_control = function_call.get("cache_control") if function_call_cache_control: - chat_completion_response_message["cache_control"] = cast( # cast-ok: Responses input uses the shared cache-control shape - "ChatCompletionCachedContent", function_call_cache_control + chat_completion_response_message["cache_control"] = ( + cast( # cast-ok: Responses input uses the shared cache-control shape + "ChatCompletionCachedContent", function_call_cache_control + ) ) return [chat_completion_response_message]