From ef2b65020bd8c764f442c9f191bb758f65180a0f Mon Sep 17 00:00:00 2001 From: Otavio Brito Date: Fri, 21 Aug 2026 15:06:40 -0300 Subject: [PATCH] fix: add reason --- litellm/llms/deepseek/chat/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/deepseek/chat/transformation.py b/litellm/llms/deepseek/chat/transformation.py index 12f8b78052f..70da4e5f300 100644 --- a/litellm/llms/deepseek/chat/transformation.py +++ b/litellm/llms/deepseek/chat/transformation.py @@ -123,7 +123,7 @@ class DeepSeekChatConfig(OpenAIGPTConfig): as-is. All other messages keep the historical behavior of collapsing content lists to a plain string. """ - text_only_messages: Final[list[AllMessageValues]] = [] + text_only_messages: Final[list[AllMessageValues]] = [] # mutable-ok: collapse helper requires a mutable list for message in messages: content = message.get("content") if isinstance(content, list) and any(