The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix dashscope default api_base error (#17584)
chenzhaofei01458032b083c1
diff --git a/litellm/llms/dashscope/chat/transformation.py b/litellm/llms/dashscope/chat/transformation.pyindex 0edcc2a0c34..155d8c9ec27 100644--- a/litellm/llms/dashscope/chat/transformation.py+++ b/litellm/llms/dashscope/chat/transformation.py@@ -51,7 +51,7 @@ class DashScopeChatConfig(OpenAIGPTConfig):api_base = (api_baseor get_secret_str("DASHSCOPE_API_BASE")- or "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"+ or "https://dashscope.aliyuncs.com/compatible-mode/v1") # type: ignoredynamic_api_key = api_key or get_secret_str("DASHSCOPE_API_KEY")return api_base, dynamic_api_key