mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-03-04 07:48:12 +08:00
添加API密钥管理功能,包括获取、更新和验证API密钥的接口,增强了对Mathpix和其他API的支持;优化了设置面板的用户体验,改进了API密钥的状态显示和编辑功能,确保用户能够方便地管理和验证API密钥。
This commit is contained in:
@@ -56,7 +56,7 @@ class AnthropicModel(BaseModel):
|
||||
# 处理推理配置
|
||||
if hasattr(self, 'reasoning_config') and self.reasoning_config:
|
||||
# 如果设置了extended reasoning
|
||||
if self.reasoning_config.get('reasoning_depth') == 'extended':
|
||||
if self.reasoning_config.get('reasoning_depth') == 'extended':
|
||||
think_budget = self.reasoning_config.get('think_budget', max_tokens // 2)
|
||||
payload['thinking'] = {
|
||||
'type': 'enabled',
|
||||
@@ -64,7 +64,6 @@ class AnthropicModel(BaseModel):
|
||||
}
|
||||
# 如果设置了instant模式
|
||||
elif self.reasoning_config.get('speed_mode') == 'instant':
|
||||
payload['speed_mode'] = 'instant'
|
||||
# 确保当使用speed_mode时不包含thinking参数
|
||||
if 'thinking' in payload:
|
||||
del payload['thinking']
|
||||
|
||||
Reference in New Issue
Block a user