Fix API base URLs for OpenAI and DashScope

Updated the base URLs for OpenAI and DashScope API calls.
This commit is contained in:
Dunjie Lu
2025-10-14 12:57:00 +08:00
committed by GitHub
parent d25464c203
commit 55372c4432

View File

@@ -628,7 +628,7 @@ Previous actions:
def _call_llm_openai(self, messages, model):
"""Call LLM using OpenAI SDK (compatible with OpenAI-compatible endpoints)."""
base_url = "https://poc-dashscope.aliyuncs.com/compatible-mode/v1"
base_url = "https://dashscope.aliyuncs.com/compatible-mode/v1"
api_key = "sk-123"
client = openai.OpenAI(base_url=base_url, api_key=api_key)
@@ -653,7 +653,7 @@ Previous actions:
def _call_llm_dashscope(self, messages, model):
"""Call LLM using DashScope SDK."""
dashscope.base_http_api_url = "https://poc-dashscope.aliyuncs.com/api/v1"
dashscope.base_http_api_url = "https://dashscope.aliyuncs.com/api/v1"
dashscope.api_key = "sk-123"
# Convert message schema