Update litellm/llms/dashscope/messages/transformation.py

Co-authored-by: veria-ai[bot] <224490171+veria-ai[bot]@users.noreply.github.com>
This commit is contained in:
pluszj 2026-08-20 18:22:03 +08:00 • committed by GitHub
parent fd12e58556
commit 627816ab2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,6 +28,10 @@ from litellm.types.router import GenericLiteLLMParams
class DashScopeAnthropicMessagesConfig(AnthropicMessagesConfig):
"""Adapter for Alibaba Bailian's Anthropic-compatible Messages endpoint."""
def should_strip_billing_metadata(self) -> bool:
return True
"""Adapter for Alibaba Bailian's Anthropic-compatible Messages endpoint."""
# Models Bailian explicitly documents on the Anthropic-compatible endpoint.
# Extend this set when Bailian onboards more models.
SUPPORTED_MODELS = frozenset({