添加对阿里云百炼的支持
添加了对阿里云百炼的支持。接口格式里增加了“阿里云百炼”选项,并设置默认模型为“qwen-plus”。已经过测试,可以使用。 此外,还添加了DeepSeek的默认模型“deepseek-chat”和OpenAI的默认模型“gpt-4o-mini”。
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user