From 02bade4fd8a8444f99adf1e632432c718237167a Mon Sep 17 00:00:00 2001 From: argszero Date: Sat, 12 Sep 2026 04:02:37 +0800 Subject: [PATCH] fix(ui): stop the English admin models header from asserting a currency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The English column headers admin.models.col.in/out read "Input $" / "Output $", but the values rendered underneath are each model's price in its OWN currency (raw input_per_m/output_per_m, unconverted) and the table marks the currency nowhere. config.toml ships a mixed catalog (10 CNY + 4 USD models), so the $ was simply wrong for the CNY rows — and it was wrong from the day it was added: the commit that introduced it already had 3 CNY vs 7 USD models. The Chinese source text (输入价/输出价) asserts no currency, as does the prototype, so this is a translation-introduced defect: drop the symbol and align the wording with the sibling form labels ("Input price" / "Output price"). English values only — the zh pack is byte-identical, and no key changed. --- ui/index.html | 10 +++++----- ui/js/i18n.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/index.html b/ui/index.html index 67ccb12..29d4b09 100644 --- a/ui/index.html +++ b/ui/index.html @@ -5,7 +5,7 @@ AITokenPool - + @@ -842,9 +842,9 @@

使用模型

- - - - + + + + diff --git a/ui/js/i18n.js b/ui/js/i18n.js index a0a8293..9ae2764 100644 --- a/ui/js/i18n.js +++ b/ui/js/i18n.js @@ -1296,8 +1296,8 @@ "admin.models.sub": "Provider / model / price / context / vision — CRUD takes effect immediately; calls for a deleted model bill at 0.", "admin.models.col.provider": "Provider", "admin.models.col.model": "Model", - "admin.models.col.in": "Input $", - "admin.models.col.out": "Output $", + "admin.models.col.in": "Input price", + "admin.models.col.out": "Output price", "admin.models.col.ctx": "Context", "admin.models.col.outmax": "Max output", "admin.models.col.vision": "Vision",