重构模型管理和配置加载逻辑,支持多模态和推理模型,优化API密钥管理,改进前端模型选择和版本显示

This commit is contained in:
Zylan
2025-03-22 19:37:42 +08:00
parent be8e83d762
commit fa654207c8
13 changed files with 963 additions and 205 deletions

View File

@@ -21,6 +21,7 @@ class MathpixModel(BaseModel):
Raises:
ValueError: If the API key format is invalid
"""
# 只传递必需的参数不传递language参数
super().__init__(api_key, temperature, system_prompt)
try:
self.app_id, self.app_key = api_key.split(':')