From c21281a13506a47e73b8c9f6f9cdad6cd3f4f7c8 Mon Sep 17 00:00:00 2001 From: kicer Date: Wed, 2 Sep 2026 00:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=8D=A1token=E7=94=A8?= =?UTF-8?q?=E9=87=8F=E7=B4=A7=E5=87=91=E6=98=BE=E7=A4=BA:=E4=BB=8A?= =?UTF-8?q?=E6=97=A5/=E7=B4=AF=E8=AE=A1=E5=90=84=E4=B8=80=E8=A1=8C,?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=B8=BA=E8=BE=93=E5=85=A5=20/=20=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/index.html | 10 +++++----- app/server/public/js/models.js | 9 ++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/server/public/index.html b/app/server/public/index.html index cf332f1..02b2fda 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -284,10 +284,10 @@ - - - - - + + + + + diff --git a/app/server/public/js/models.js b/app/server/public/js/models.js index 4b35b4e..d73685b 100644 --- a/app/server/public/js/models.js +++ b/app/server/public/js/models.js @@ -40,15 +40,14 @@ async function loadModelCards() { '
' + esc(m.id) + (run && run.is_busy && run.current_session_id ? ' · 会话 ' + esc(run.current_session_id) : '') + '
' + '
--
' + - '
' + (run ? fmtTok(run.today_prompt) : '--') + '
' + - '
' + (run ? fmtTok(run.today_completion) : '--') + '
' + - '
' + (run ? fmtTok(run.total_prompt) : '--') + '
' + - '
' + (run ? fmtTok(run.total_completion) : '--') + '
' + + // token 紧凑显示:输入 / 输出 + '
' + (run ? fmtTok(run.today_prompt) + ' / ' + fmtTok(run.today_completion) : '--') + '
' + + '
' + (run ? fmtTok(run.total_prompt) + ' / ' + fmtTok(run.total_completion) : '--') + '
' + ''; }).join('') + (modelsPendingRestart ? '
已写入 config.yml,到「设置」页重启服务后生效。
' - : '
余额需对接模型提供方 API,暂未实现;改动写入 config.yml,重启服务后生效。
'); + : '
token 格式为「输入 / 输出」;余额需对接模型提供方 API,暂未实现;改动写入 config.yml,重启服务后生效。
'); } catch (e) { el.innerHTML = '
加载失败:' + esc(e.message) + '
'; }