添加对阿里云百炼的支持

添加了对阿里云百炼的支持。接口格式里增加了“阿里云百炼”选项,并设置默认模型为“qwen-plus”。已经过测试,可以使用。
此外,还添加了DeepSeek的默认模型“deepseek-chat”和OpenAI的默认模型“gpt-4o-mini”。
This commit is contained in:
Karasukaigan
2025-02-18 00:46:31 +08:00
parent e965b3c9af
commit 0a24217eb5
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -291,5 +291,7 @@ def create_llm_adapter(
elif fmt == "gemini":
# base_url 对 Gemini 暂无用处,可忽略
return GeminiAdapter(api_key, model_name, max_tokens, temperature, timeout)
elif fmt == "阿里云百炼":
return OpenAIAdapter(api_key, base_url, model_name, max_tokens, temperature, timeout)
else:
raise ValueError(f"Unknown interface_format: {interface_format}")