fix: 更新 thinkingBudget 的最大值限制至32767 , 最小值为 -1

This commit is contained in:
stevessr
2025-06-30 20:43:27 +08:00
parent 00f423a622
commit a41447a96d
2 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -1299,7 +1299,7 @@ endblock %} {% block head_extra_styles %}
</div> -->
<small class="text-gray-500 mt-1 block"
>为每个思考模型设置预算(整数,最大值
24576),此项与上方模型列表自动关联。</small
32767),此项与上方模型列表自动关联。</small
>
</div>
<!-- 安全设置 -->
@@ -2355,7 +2355,7 @@ endblock %} {% block head_extra_styles %}
let val = this.value.replace(/[^0-9]/g, "");
if (val !== "") {
val = parseInt(val, 10);
if (val > 24576) val = 24576;
if (val > 32767) val = 32767;
}
this.value = val;