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]