From fd12e5855616033c1fc16600363a1eda21371c45 Mon Sep 17 00:00:00 2001 From: pluszj <43137088+pluszj@users.noreply.github.com> Date: Thu, 20 Aug 2026 18:07:51 +0800 Subject: [PATCH] Add support for DashScope provider in utils.py --- litellm/utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/litellm/utils.py b/litellm/utils.py index d1b0cb882ac..5c3a50aff51 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -8268,6 +8268,14 @@ class ProviderConfigManager: ) return DeepSeekAnthropicMessagesConfig() + elif litellm.LlmProviders.DASHSCOPE == provider: + from litellm.llms.dashscope.messages.transformation import ( + DashScopeAnthropicMessagesConfig, + ) + config = DashScopeAnthropicMessagesConfig() + if config.is_supported_model(model): + return config + return None elif litellm.LlmProviders.TENCENT == provider: from litellm.llms.tencent.messages.transformation import ( TencentAnthropicMessagesConfig,