mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-02-03 16:47:22 +08:00
重构模型管理和配置加载逻辑,支持多模态和推理模型,优化API密钥管理,改进前端模型选择和版本显示
This commit is contained in:
@@ -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(':')
|
||||
|
||||
Reference in New Issue
Block a user