From 98c2de2a6013ee7caba8d4025f13c3ef31505e03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=85=AC=E6=98=8E?=
<83812544+Ed1s0nZ@users.noreply.github.com>
Date: Fri, 22 May 2026 17:08:05 +0800
Subject: [PATCH] Add files via upload
---
web/static/js/chat.js | 2 +-
web/static/js/settings.js | 2 +-
web/templates/index.html | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/static/js/chat.js b/web/static/js/chat.js
index ddf15c4a..4bbf9854 100644
--- a/web/static/js/chat.js
+++ b/web/static/js/chat.js
@@ -574,7 +574,7 @@ function restoreChatReasoningControlsFromStorage() {
}
if (e) {
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;
}
}
diff --git a/web/static/js/settings.js b/web/static/js/settings.js
index 06f221b1..fef8d22e 100644
--- a/web/static/js/settings.js
+++ b/web/static/js/settings.js
@@ -184,7 +184,7 @@ async function loadConfig(loadTools = true) {
const orEffEl = document.getElementById('openai-reasoning-effort');
if (orEffEl) {
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');
if (orProfEl) {
diff --git a/web/templates/index.html b/web/templates/index.html
index 5f69adc1..af53fd00 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -833,6 +833,7 @@
+
@@ -2122,6 +2123,7 @@
+