mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-03-03 00:25:09 +08:00
优化模型实例创建逻辑,简化API密钥选择,更新阿里巴巴模型的最大Token设置,支持新的Qwen-VL模型,调整思考过程的处理逻辑,增强用户界面设置的动态效果。
This commit is contained in:
@@ -393,6 +393,15 @@ class SettingsManager {
|
||||
this.reasoningDepthSelect.value === 'extended';
|
||||
this.thinkBudgetGroup.style.display = showThinkBudget ? 'block' : 'none';
|
||||
}
|
||||
|
||||
// 控制最大Token设置的显示
|
||||
// 阿里巴巴模型不支持自定义Token设置
|
||||
const maxTokensGroup = this.maxTokensInput ? this.maxTokensInput.closest('.setting-group') : null;
|
||||
if (maxTokensGroup) {
|
||||
// 如果是阿里巴巴模型,隐藏Token设置
|
||||
const isAlibabaModel = modelInfo.provider === 'alibaba';
|
||||
maxTokensGroup.style.display = isAlibabaModel ? 'none' : 'block';
|
||||
}
|
||||
}
|
||||
|
||||
saveSettings() {
|
||||
|
||||
Reference in New Issue
Block a user