Add support for DashScope provider in utils.py

This commit is contained in:
pluszj 2026-08-20 18:07:51 +08:00 • committed by GitHub
parent b2bcee38ed
commit fd12e58556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,