更新DeepSeek模型配置,新增DeepSeek-V3和DeepSeek推理模型,优化API调用逻辑,支持多模态模型的图像分析,改进前端按钮显示逻辑,提升用户体验

This commit is contained in:
Zylan
2025-03-22 22:52:15 +08:00
parent 5a1ca6761c
commit 5cac831156
5 changed files with 398 additions and 109 deletions

View File

@@ -126,6 +126,15 @@ class ModelFactory:
temperature=temperature,
system_prompt=system_prompt
)
# 对于DeepSeek模型传递model_name参数
elif "deepseek" in model_name.lower():
return model_class(
api_key=api_key,
temperature=temperature,
system_prompt=system_prompt,
language=language,
model_name=model_name
)
else:
# 对于其他模型,传递所有参数
return model_class(