fix dashscope default api_base error (#17584)

This commit is contained in:
chenzhaofei01 2025-12-09 11:02:55 +08:00 • committed by GitHub
parent ad9c69860e
commit 458032b083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ class DashScopeChatConfig(OpenAIGPTConfig):
api_base = (
api_base
or get_secret_str("DASHSCOPE_API_BASE")
or "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
or "https://dashscope.aliyuncs.com/compatible-mode/v1"
) # type: ignore
dynamic_api_key = api_key or get_secret_str("DASHSCOPE_API_KEY")
return api_base, dynamic_api_key