mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Add support for DashScope provider in utils.py
This commit is contained in:
parent
b2bcee38ed
commit
fd12e58556
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue