From 627816ab2c2ceda584d3a6aa2dea780aeaf31f37 Mon Sep 17 00:00:00 2001 From: pluszj <43137088+pluszj@users.noreply.github.com> Date: Thu, 20 Aug 2026 18:22:03 +0800 Subject: [PATCH] Update litellm/llms/dashscope/messages/transformation.py Co-authored-by: veria-ai[bot] <224490171+veria-ai[bot]@users.noreply.github.com> --- litellm/llms/dashscope/messages/transformation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/dashscope/messages/transformation.py b/litellm/llms/dashscope/messages/transformation.py index 1d15de2be10..4514b940612 100644 --- a/litellm/llms/dashscope/messages/transformation.py +++ b/litellm/llms/dashscope/messages/transformation.py @@ -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({