mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-02-22 16:38:03 +08:00
优化模型实例创建逻辑,简化API密钥选择,更新阿里巴巴模型的最大Token设置,支持新的Qwen-VL模型,调整思考过程的处理逻辑,增强用户界面设置的动态效果。
This commit is contained in:
@@ -126,8 +126,8 @@ class ModelFactory:
|
||||
temperature=temperature,
|
||||
system_prompt=system_prompt
|
||||
)
|
||||
# 对于DeepSeek模型,传递model_name参数
|
||||
elif "deepseek" in model_name.lower():
|
||||
else:
|
||||
# 对于所有其他模型,传递model_name参数
|
||||
return model_class(
|
||||
api_key=api_key,
|
||||
temperature=temperature,
|
||||
@@ -135,14 +135,6 @@ class ModelFactory:
|
||||
language=language,
|
||||
model_name=model_name
|
||||
)
|
||||
else:
|
||||
# 对于其他模型,传递所有参数
|
||||
return model_class(
|
||||
api_key=api_key,
|
||||
temperature=temperature,
|
||||
system_prompt=system_prompt,
|
||||
language=language
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def get_available_models(cls) -> list[Dict[str, Any]]:
|
||||
|
||||
Reference in New Issue
Block a user