mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix: Correct docstring placement in DashScopeAnthropicMessagesConfig.should_strip_billing_metadata() and format with ruff
This commit is contained in:
parent
627816ab2c
commit
71dd09f6c5
1 changed files with 13 additions and 11 deletions
|
|
@ -29,21 +29,23 @@ class DashScopeAnthropicMessagesConfig(AnthropicMessagesConfig):
|
|||
"""Adapter for Alibaba Bailian's Anthropic-compatible Messages endpoint."""
|
||||
|
||||
def should_strip_billing_metadata(self) -> bool:
|
||||
"""Adapter for Alibaba Bailian's Anthropic-compatible Messages endpoint."""
|
||||
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({
|
||||
# DeepSeek
|
||||
"deepseek-v4-pro",
|
||||
"deepseek-v4-flash",
|
||||
"deepseek-v4-flash-0731",
|
||||
# Qwen
|
||||
#"qwen3.7-max", "qwen3.7-plus",
|
||||
#"qwen3.6-flash", "qwen3.6-plus",
|
||||
#"qwen-turbo", "qwen-plus", "qwen-max",
|
||||
})
|
||||
SUPPORTED_MODELS = frozenset(
|
||||
{
|
||||
# DeepSeek
|
||||
"deepseek-v4-pro",
|
||||
"deepseek-v4-flash",
|
||||
"deepseek-v4-flash-0731",
|
||||
# Qwen
|
||||
# "qwen3.7-max", "qwen3.7-plus",
|
||||
# "qwen3.6-flash", "qwen3.6-plus",
|
||||
# "qwen-turbo", "qwen-plus", "qwen-max",
|
||||
}
|
||||
)
|
||||
|
||||
@property
|
||||
def custom_llm_provider(self) -> Optional[str]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue