Add files via upload

This commit is contained in:
公明
2026-05-22 17:08:05 +08:00
committed by GitHub
parent 1c4d4b305b
commit 98c2de2a60
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -574,7 +574,7 @@ function restoreChatReasoningControlsFromStorage() {
} }
if (e) { if (e) {
const v = localStorage.getItem(REASONING_EFFORT_LS); const v = localStorage.getItem(REASONING_EFFORT_LS);
if (v !== null && ['', 'low', 'medium', 'high', 'max'].indexOf(v) !== -1) { if (v !== null && ['', 'low', 'medium', 'high', 'max', 'xhigh'].indexOf(v) !== -1) {
e.value = v; e.value = v;
} }
} }
+1 -1
View File
@@ -184,7 +184,7 @@ async function loadConfig(loadTools = true) {
const orEffEl = document.getElementById('openai-reasoning-effort'); const orEffEl = document.getElementById('openai-reasoning-effort');
if (orEffEl) { if (orEffEl) {
const ev = (orm.effort || '').toString().trim().toLowerCase(); const ev = (orm.effort || '').toString().trim().toLowerCase();
orEffEl.value = ['', 'low', 'medium', 'high', 'max'].includes(ev) ? ev : ''; orEffEl.value = ['', 'low', 'medium', 'high', 'max', 'xhigh'].includes(ev) ? ev : '';
} }
const orProfEl = document.getElementById('openai-reasoning-profile'); const orProfEl = document.getElementById('openai-reasoning-profile');
if (orProfEl) { if (orProfEl) {
+2
View File
@@ -833,6 +833,7 @@
<option value="low">low</option> <option value="low">low</option>
<option value="medium">medium</option> <option value="medium">medium</option>
<option value="high">high</option> <option value="high">high</option>
<option value="xhigh">xhigh</option>
<option value="max">max</option> <option value="max">max</option>
</select> </select>
</div> </div>
@@ -2122,6 +2123,7 @@
<option value="low">low</option> <option value="low">low</option>
<option value="medium">medium</option> <option value="medium">medium</option>
<option value="high">high</option> <option value="high">high</option>
<option value="xhigh">xhigh</option>
<option value="max">max</option> <option value="max">max</option>
</select> </select>
<label for="openai-reasoning-profile" style="font-size: 0.8125rem;" data-i18n="settingsBasic.openaiReasoningProfile">线路</label> <label for="openai-reasoning-profile" style="font-size: 0.8125rem;" data-i18n="settingsBasic.openaiReasoningProfile">线路</label>