mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix dashscope default api_base error (#17584)
This commit is contained in:
parent
ad9c69860e
commit
458032b083
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue