Fix API base URLs for OpenAI and DashScope
Updated the base URLs for OpenAI and DashScope API calls.
This commit is contained in:
@@ -628,7 +628,7 @@ Previous actions:
|
|||||||
|
|
||||||
def _call_llm_openai(self, messages, model):
|
def _call_llm_openai(self, messages, model):
|
||||||
"""Call LLM using OpenAI SDK (compatible with OpenAI-compatible endpoints)."""
|
"""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"
|
api_key = "sk-123"
|
||||||
client = openai.OpenAI(base_url=base_url, api_key=api_key)
|
client = openai.OpenAI(base_url=base_url, api_key=api_key)
|
||||||
|
|
||||||
@@ -653,7 +653,7 @@ Previous actions:
|
|||||||
|
|
||||||
def _call_llm_dashscope(self, messages, model):
|
def _call_llm_dashscope(self, messages, model):
|
||||||
"""Call LLM using DashScope SDK."""
|
"""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"
|
dashscope.api_key = "sk-123"
|
||||||
|
|
||||||
# Convert message schema
|
# Convert message schema
|
||||||
|
|||||||
Reference in New Issue
Block a user