{problems.map((m) => (
{coreText(m)}
- {creating && fresh && m.code === "config.alias_duplicate" && ` ${t.editExistingAliasHint}`}
+ {creating && !sourceModel && fresh && m.code === "config.alias_duplicate" && ` ${t.editExistingAliasHint}`}
))}
{auto && models.includes(auto) && (
diff --git a/src/routing/PinnedModels.i18n.ts b/src/routing/PinnedModels.i18n.ts
index f4c3c23a..637de7b2 100644
--- a/src/routing/PinnedModels.i18n.ts
+++ b/src/routing/PinnedModels.i18n.ts
@@ -10,6 +10,9 @@ export const pinnedModelsText = messages(
missing: (name: string) => `${name}(不存在)`,
disabled: (name: string) => `${name}(已停用)`,
model: "上游模型 ID",
+ search: "搜索模型 ID 或别名",
+ noMatch: "无匹配模型",
+ aliases: (names: string[]) => `别名 · ${names.join("、")}`,
remove: (n: number) => `删除第 ${n} 个指定模型`,
},
{
@@ -21,6 +24,9 @@ export const pinnedModelsText = messages(
missing: (name: string) => `${name} (not found)`,
disabled: (name: string) => `${name} (disabled)`,
model: "Upstream model ID",
+ search: "Search model IDs or aliases",
+ noMatch: "No matching models",
+ aliases: (names: string[]) => `Aliases · ${names.join(", ")}`,
remove: (n: number) => `Remove specified model ${n}`,
},
{
@@ -31,10 +37,21 @@ export const pinnedModelsText = messages(
provider: (n: number) => `第 ${n} 個指定模型的上游`,
chooseProvider: "選擇上游",
model: "上游模型 ID",
+ search: "搜尋模型 ID 或別名",
+ noMatch: "沒有相符的模型",
+ aliases: (names: string[]) => `別名 · ${names.join("、")}`,
remove: (n: number) => `刪除第 ${n} 個指定模型`,
},
+ ja: {
+ search: "モデル ID またはエイリアスで検索",
+ noMatch: "一致するモデルがありません",
+ aliases: (names: string[]) => `エイリアス · ${names.join("、")}`,
+ },
ko: {
model: "업스트림 모델 ID",
+ search: "모델 ID 또는 별칭 검색",
+ noMatch: "일치하는 모델 없음",
+ aliases: (names: string[]) => `별칭 · ${names.join(", ")}`,
},
es: {
addModel: "Añadir modelo",
@@ -45,6 +62,9 @@ export const pinnedModelsText = messages(
missing: (name: string) => `${name} (no encontrado)`,
disabled: (name: string) => `${name} (inhabilitado)`,
model: "ID del modelo del proveedor",
+ search: "Buscar por ID o alias",
+ noMatch: "Ningún modelo coincide",
+ aliases: (names: string[]) => `Alias · ${names.join(", ")}`,
remove: (n: number) => `Eliminar el modelo especificado ${n}`,
},
},
diff --git a/src/routing/PinnedModels.tsx b/src/routing/PinnedModels.tsx
index 413a2661..010ae775 100644
--- a/src/routing/PinnedModels.tsx
+++ b/src/routing/PinnedModels.tsx
@@ -1,14 +1,18 @@
+import { useMemo, useRef } from "react";
import { PlusIcon } from "lucide-react";
import { Button } from "@/ui/button";
+import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "@/ui/input-group";
+import { Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, ComboboxTrigger } from "@/ui/combobox";
import { SelectField, SelectOption } from "@/ui/select-field";
import { useText } from "@/i18n";
import { commonText } from "@/i18n/common.i18n";
import { useResource } from "@/lib/resource";
-import type { KnownModel, ProviderView } from "@/types";
+import type { AliasView, KnownModel, ProviderView } from "@/types";
import { compact } from "@/format";
import { modelsKey } from "@/upstreams/data";
import { api } from "./api";
-import { ModelInput } from "./fields";
+import { api as aliasApi } from "@/aliases/api";
+import { pinnedChoices } from "./pinnedChoices";
import { blankPinned, type PinnedDraft } from "./model";
import { pinnedModelsText } from "./PinnedModels.i18n";
@@ -17,7 +21,7 @@ import { pinnedModelsText } from "./PinnedModels.i18n";
*
* **模型从这个上游自己的清单里选**(`/providers/{name}/models`,和上游页的模型弹窗是同一份),
* 右边是它的上下文窗口;清单里没有的照样能写(中转刚上的新模型)。模型名原样发出,不经过
- * 别名表,所以候选里**不列别名**。
+ * 别名表。搜索可按别名找到这家上游对应的 ID,选择后仍只保存 ID。
*/
export function PinnedModels({
value,
@@ -31,6 +35,9 @@ export function PinnedModels({
known: readonly KnownModel[];
}) {
const t = useText(pinnedModelsText);
+ const aliases = useResource("aliases", aliasApi.aliases, {
+ events: ["config_reloaded", "models_changed"],
+ }).data?.aliases;
const patch = (i: number, p: Partial
) =>
onChange(value.map((x, j) => (j === i ? { ...x, ...p } : x)));
return (
@@ -43,6 +50,7 @@ export function PinnedModels({
p={p}
providers={providers}
known={known}
+ aliases={aliases}
onProvider={(provider) =>
// 换了上游:新上游也有这个模型就留着,否则清空重选
patch(i, {
@@ -76,6 +84,7 @@ function PinnedRow({
p,
providers,
known,
+ aliases,
onProvider,
onModel,
onRemove,
@@ -84,6 +93,7 @@ function PinnedRow({
p: PinnedDraft;
providers: readonly ProviderView[];
known: readonly KnownModel[];
+ aliases: readonly AliasView[] | undefined;
onProvider: (provider: string) => void;
onModel: (model: string) => void;
onRemove: () => void;
@@ -92,16 +102,18 @@ function PinnedRow({
const ct = useText(commonText);
const pv = providers.find((x) => x.name === p.provider);
// 和上游页的模型弹窗共用一份缓存;那边刷新了清单,这里跟着换
- const rows = useResource(
+ const inventory = useResource(
pv ? modelsKey(pv.name) : null,
() => api.providerModels(p.provider),
- { deps: [pv?.model_checked_at_ms, pv?.model_fetching, pv?.model_count] },
- ).data?.models;
- // 清单还没取到时先用网关的模型目录里这家的那些
- const ids = rows
- ? rows.filter((r) => r.enabled).map((r) => r.id)
- : known.filter((m) => !m.alias && m.providers.includes(p.provider)).map((m) => m.id);
- const ctx = rows?.find((r) => r.id === p.model.trim())?.context_window;
+ {
+ deps: [pv?.model_checked_at_ms, pv?.model_fetching, pv?.model_count],
+ events: ["config_reloaded", "models_changed"],
+ },
+ ).data;
+ const choices = useMemo(() => pinnedChoices(p.provider, inventory, known, aliases ?? []), [p.provider, inventory, known, aliases]);
+ const anchor = useRef(null);
+ const trigger = useRef(null);
+ const ctx = inventory?.models.find((r) => r.id === p.model.trim())?.context_window;
return (
{n}
@@ -120,13 +132,55 @@ function PinnedRow({
))}
-
+
+ key={p.provider}
+ items={Array.from(choices.keys())}
+ value={p.model || null}
+ onValueChange={(id) => {
+ if (id !== null) onModel(id);
+ }}
+ filter={(id, query) => {
+ const needle = query.trim().toLowerCase();
+ return id.toLowerCase().includes(needle) || !!choices.get(id)?.some((name) => name.toLowerCase().includes(needle));
+ }}
+ >
+
+ onModel(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === "ArrowDown") {
+ e.preventDefault();
+ trigger.current?.click();
+ }
+ }}
+ />
+
+ } />
+
+
+
+
+ {t.noMatch}
+
+ {(id: string) => {
+ const names = choices.get(id);
+ return (
+
+ {id}
+ {names && names.length > 0 && (
+ {t.aliases(names)}
+ )}
+
+ );
+ }}
+
+
+
{ctx ? compact(ctx) : ""}
diff --git a/src/routing/pinnedChoices.test.ts b/src/routing/pinnedChoices.test.ts
new file mode 100644
index 00000000..739965d2
--- /dev/null
+++ b/src/routing/pinnedChoices.test.ts
@@ -0,0 +1,23 @@
+import { expect, it } from "vitest";
+import type { AliasView, ProviderModelsView } from "@/types";
+import { pinnedChoices } from "./pinnedChoices";
+
+const coding: AliasView = {
+ name: "coding", models: [], shadows: [], requests_24h: 0,
+ served_by: [{ provider: "relay", model: "raw" }, { provider: "other", model: "other-raw" }],
+};
+
+it("offers the ID Core resolves on a provider without a model list, including its other aliases", () => {
+ const inventory: ProviderModelsView = { provider: "relay", source: "none", status: "no_list", fetching: false, models: [] };
+ const options = pinnedChoices("relay", inventory, [], [coding, { ...coding, name: "daily" }]);
+ expect([...options]).toEqual([["raw", ["coding", "daily"]]]);
+});
+
+it("a refreshed provider inventory excludes disabled or removed IDs even if the alias view is older", () => {
+ const inventory: ProviderModelsView = {
+ provider: "relay", source: "discovered", status: "listed", fetching: false,
+ models: [{ id: "raw", enabled: false, manual: false, listed: true, estimated: false, aliases: ["coding"] }],
+ };
+ const removed = { ...coding, name: "old", served_by: [{ provider: "relay", model: "removed" }] };
+ expect([...pinnedChoices("relay", inventory, [], [coding, removed])]).toEqual([]);
+});
diff --git a/src/routing/pinnedChoices.ts b/src/routing/pinnedChoices.ts
new file mode 100644
index 00000000..19674f67
--- /dev/null
+++ b/src/routing/pinnedChoices.ts
@@ -0,0 +1,28 @@
+import type { AliasView, KnownModel, ProviderModelsView } from "@/types";
+
+/** Each option value is a literal upstream ID. Core supplies the effective target for each alias. */
+export function pinnedChoices(
+ provider: string,
+ inventory: ProviderModelsView | undefined,
+ known: readonly KnownModel[],
+ aliases: readonly AliasView[],
+): Map
{
+ const choices = new Map();
+ if (inventory) {
+ for (const row of inventory.models) if (row.enabled) choices.set(row.id, []);
+ } else {
+ for (const row of known) if (!row.alias && row.providers.includes(provider)) choices.set(row.id, []);
+ }
+ for (const alias of aliases) {
+ const target = alias.served_by.find((p) => p.provider === provider);
+ if (!target) continue;
+ const names = choices.get(target.model);
+ if (names) {
+ names.push(alias.name);
+ } else if (!inventory || inventory.source === "none") {
+ // Core can resolve an alias on an upstream without a published model list.
+ choices.set(target.model, [alias.name]);
+ }
+ }
+ return choices;
+}
diff --git a/src/upstreams/UpstreamDialog.tsx b/src/upstreams/UpstreamDialog.tsx
index 4e7178a8..81342c7f 100644
--- a/src/upstreams/UpstreamDialog.tsx
+++ b/src/upstreams/UpstreamDialog.tsx
@@ -1068,7 +1068,7 @@ export function UpstreamDialog({
!o && setNested(null)}
- initial={{ models: [nested.model] }}
+ sourceModel={nested.model}
onSaved={(version) => {
setBase(version);
reloadCatalog();
diff --git a/src/upstreams/UpstreamTable.tsx b/src/upstreams/UpstreamTable.tsx
index 86d81f5b..9f17c224 100644
--- a/src/upstreams/UpstreamTable.tsx
+++ b/src/upstreams/UpstreamTable.tsx
@@ -571,7 +571,7 @@ function ModelsCell({
!o && setAliasFor(null)}
- initial={{ models: aliasFor !== null ? [aliasFor] : [] }}
+ sourceModel={aliasFor ?? undefined}
/>
);
From b07225c5649f1f382e6d95095e9e67b8d13fc6dd Mon Sep 17 00:00:00 2001
From: fylorn <249551762+fylorn@users.noreply.github.com>
Date: Wed, 25 Nov 2026 00:44:52 +0800
Subject: [PATCH 3/4] fix(i18n): clarify alias actions in the upstream model
menu
---
scripts/ui/model-aliases.pw.ts | 8 ++++----
src/aliases/AliasDialog.i18n.ts | 4 ++--
src/aliases/AliasDialog.tsx | 2 +-
src/aliases/AliasesTab.tsx | 2 +-
src/aliases/draft.test.ts | 2 +-
src/upstreams/ModelsPanel.i18n.ts | 4 ++--
src/upstreams/ModelsPanel.tsx | 5 ++---
src/upstreams/ModelsSection.i18n.ts | 4 ++--
src/upstreams/ModelsSection.tsx | 2 +-
src/upstreams/UpstreamDialog.tsx | 2 +-
src/upstreams/UpstreamTable.tsx | 2 +-
11 files changed, 18 insertions(+), 19 deletions(-)
diff --git a/scripts/ui/model-aliases.pw.ts b/scripts/ui/model-aliases.pw.ts
index 62968a6d..69f3c8f5 100644
--- a/scripts/ui/model-aliases.pw.ts
+++ b/scripts/ui/model-aliases.pw.ts
@@ -49,14 +49,14 @@ async function open(page: Page, scene: "upstreams" | "routing") {
async function startAlias(page: Page) {
await page.getByRole("button", { name: "deepseek 的模型", exact: true }).click();
await page.getByRole("button", { name: "deepseek-chat 的操作", exact: true }).click();
- await page.getByRole("menuitem", { name: "起别名…" }).click();
+ await page.getByRole("menuitem", { name: "设置别名…" }).click();
}
test("an upstream model joins an existing alias only after preview and save", async ({ page }) => {
await open(page, "upstreams");
for (const action of ["取消", "保存"]) {
await startAlias(page);
- await page.getByRole("combobox", { name: "加入已有别名…" }).click();
+ await page.getByRole("combobox", { name: "添加到现有别名…" }).click();
await page.getByRole("option", { name: "coding", exact: true }).click();
const editor = page.getByRole("dialog", { name: "编辑别名 coding" });
await expect(editor.getByRole("checkbox", { name: "客户端仅展示别名" })).toBeChecked();
@@ -79,9 +79,9 @@ test("the upstream editor can create another alias for an already included ID",
const upstream = page.getByRole("dialog", { name: "编辑上游" });
await upstream.getByRole("button", { name: "模型", exact: true }).click();
await upstream.getByRole("button", { name: "claude-opus-5 的操作", exact: true }).click();
- await page.getByRole("menuitem", { name: "起别名…" }).click();
+ await page.getByRole("menuitem", { name: "设置别名…" }).click();
const dialog = page.getByRole("dialog", { name: "新建别名" });
- await dialog.getByRole("combobox", { name: "加入已有别名…" }).click();
+ await dialog.getByRole("combobox", { name: "添加到现有别名…" }).click();
await expect(page.getByRole("option", { name: "coding(已包含)" })).toBeDisabled();
await page.keyboard.press("Escape");
await dialog.getByLabel("名称", { exact: true }).fill("new-name");
diff --git a/src/aliases/AliasDialog.i18n.ts b/src/aliases/AliasDialog.i18n.ts
index 2fd5aadc..3c9bd619 100644
--- a/src/aliases/AliasDialog.i18n.ts
+++ b/src/aliases/AliasDialog.i18n.ts
@@ -10,7 +10,7 @@ export const aliasDialogText = messages(
name: "名称",
nameHint: "客户端用这个名称请求。",
- joinExisting: "加入已有别名…",
+ joinExisting: "添加到现有别名…",
alreadyIncludes: (name: string) => `${name}(已包含)`,
editExistingAliasHint: "要添加更多上游模型,请在「上游 → 别名」里编辑已有别名。",
namePlaceholder: "例如 claude-sonnet-5",
@@ -153,7 +153,7 @@ export const aliasDialogText = messages(
notFound: (name: string) => `別名 ${name} 已不在配置裡。`,
name: "名稱",
nameHint: "用戶端用這個名稱請求。",
- joinExisting: "加入現有別名…",
+ joinExisting: "新增至現有別名…",
alreadyIncludes: (name: string) => `${name}(已包含)`,
editExistingAliasHint: "若要新增更多上游模型,請在「上游 → 別名」中編輯現有別名。",
prefilled: (providers: string, name: string) => `${providers} 也有名為 ${name} 的模型,已列為第一個上游模型。`,
diff --git a/src/aliases/AliasDialog.tsx b/src/aliases/AliasDialog.tsx
index d3a57fd6..55ad2d38 100644
--- a/src/aliases/AliasDialog.tsx
+++ b/src/aliases/AliasDialog.tsx
@@ -59,7 +59,7 @@ type AliasFormProps = {
*
* 红字是 core 说的问题,不能保存;黄字是要留意的,可以保存。
*
- * 挂载方:别名标签(新建、编辑),上游模型弹窗和编辑上游对话框的「模型」一节(「起别名…」,
+ * 挂载方:别名标签(新建、编辑),上游模型弹窗和编辑上游对话框的「模型」一节(「设置别名…」,
* `sourceModel` 是当前选中的上游模型 ID)。
*/
export function AliasDialog(props: Omit & {
diff --git a/src/aliases/AliasesTab.tsx b/src/aliases/AliasesTab.tsx
index 8e2e3a6d..ccecb8a2 100644
--- a/src/aliases/AliasesTab.tsx
+++ b/src/aliases/AliasesTab.tsx
@@ -27,7 +27,7 @@ type Providers = Pick[];
* 上游页的「别名」标签:别名表、顶上的建议、尚无别名时直接列出建议。
*
* 新建与编辑的对话框不在这里,交给上游页(`onCreate` / `onEdit`):上游模型弹窗里的
- * 「起别名…」打开的是同一个。同一模型不同名称的对话框和删除对话框在这里。
+ * 「设置别名…」打开的是同一个。同一模型不同名称的对话框和删除对话框在这里。
*/
export function AliasesTab({
providers,
diff --git a/src/aliases/draft.test.ts b/src/aliases/draft.test.ts
index cc793652..7ce00973 100644
--- a/src/aliases/draft.test.ts
+++ b/src/aliases/draft.test.ts
@@ -40,7 +40,7 @@ describe("别名草稿:名称是上游的真模型时自动列为第一个上
expect(d.models).toEqual(["claude-opus-5", "anthropic/claude-opus-5"]);
});
- it("列表里已经有模型(从上游模型弹窗起别名)、编辑时、名称不是真模型:不自动列", () => {
+ it("列表里已经有模型(从上游模型弹窗设置别名)、编辑时、名称不是真模型:不自动列", () => {
expect(withName(draftOf("", ["deepseek-chat"]), "claude-opus-5", offered, true).models).toEqual(["deepseek-chat"]);
expect(withName(draftOf("x", []), "claude-opus-5", offered, false).models).toEqual([]);
expect(withName(draftOf("", []), "my-model", offered, true).models).toEqual([]);
diff --git a/src/upstreams/ModelsPanel.i18n.ts b/src/upstreams/ModelsPanel.i18n.ts
index 141936b4..ea8a19dc 100644
--- a/src/upstreams/ModelsPanel.i18n.ts
+++ b/src/upstreams/ModelsPanel.i18n.ts
@@ -30,7 +30,7 @@ export const modelsPanelText = messages(
context: "上下文窗口",
aliasMark: (alias: string) => `别名 ${alias}`,
aliasTitle: (alias: string) => `别名 ${alias} 列着这个模型:客户端用 ${alias} 请求时可以发往这个模型`,
- makeAlias: "起别名…",
+ makeAlias: "设置别名…",
specs: "规格…",
setPrice: "设置价格…",
unpriced: "未定价",
@@ -120,7 +120,7 @@ export const modelsPanelText = messages(
context: "上下文視窗",
aliasMark: (alias: string) => `別名 ${alias}`,
aliasTitle: (alias: string) => `別名 ${alias} 列著這個模型:用戶端用 ${alias} 請求時可以發往這個模型`,
- makeAlias: "起別名…",
+ makeAlias: "設定別名…",
specs: "規格…",
setPrice: "設定價格…",
unpriced: "未定價",
diff --git a/src/upstreams/ModelsPanel.tsx b/src/upstreams/ModelsPanel.tsx
index a8af097c..49984427 100644
--- a/src/upstreams/ModelsPanel.tsx
+++ b/src/upstreams/ModelsPanel.tsx
@@ -42,8 +42,7 @@ const FILTER_FROM = 10;
* 窗口(不知道写「未知」);在这一家手写过规格的,名字后面标「手动规格」,悬停说是哪几项。
*
* 每行行尾「…」常显,和右键是同一份菜单:「规格…」(`onSpec`,手写规格的对话框)、「设置
- * 价格…」(`onPrice`,价目表对话框)、「起别名…」(`onAlias`,新建别名的对话框,这个模型已经
- * 列为上游模型),手动添加的另有「移除」。和编辑对话框「模型」一节的菜单一样。
+ * 价格…」(`onPrice`,价目表对话框)、「设置别名…」(`onAlias`,为这个模型新建别名或将其添加到现有别名),手动添加的另有「移除」。和编辑对话框「模型」一节的菜单一样。
*/
export function ModelsPanel({
p,
@@ -65,7 +64,7 @@ export function ModelsPanel({
onEdit: () => void;
/** 打开添加模型的对话框。`listed` 是上游自己列出的那些 */
onAdd: (listed: string[]) => void;
- /** 给这个模型起别名。不给就不出「起别名…」 */
+ /** 给这个模型设置别名。不给就不出「设置别名…」 */
onAlias?: (model: string) => void;
/** 手写这个模型的规格。不给就不出「规格…」 */
onSpec?: (model: ModelRow) => void;
diff --git a/src/upstreams/ModelsSection.i18n.ts b/src/upstreams/ModelsSection.i18n.ts
index 5c6e9fb9..64b76dc0 100644
--- a/src/upstreams/ModelsSection.i18n.ts
+++ b/src/upstreams/ModelsSection.i18n.ts
@@ -35,7 +35,7 @@ export const modelsSectionText = messages(
setPrice: "设置价格…",
setPriceShort: "设置价格",
priceOf: (id: string) => `设置 ${id} 的价格`,
- makeAlias: "起别名…",
+ makeAlias: "设置别名…",
aliasMark: (alias: string) => `别名 ${alias}`,
aliasTitle: (alias: string) => `别名 ${alias} 列着这个模型:客户端用 ${alias} 请求时可以发往这个模型`,
unknown: "未知",
@@ -127,7 +127,7 @@ export const modelsSectionText = messages(
setPrice: "設定價格…",
setPriceShort: "設定價格",
priceOf: (id: string) => `設定 ${id} 的價格`,
- makeAlias: "起別名…",
+ makeAlias: "設定別名…",
aliasMark: (alias: string) => `別名 ${alias}`,
aliasTitle: (alias: string) => `別名 ${alias} 列著這個模型:用戶端用 ${alias} 請求時可以發往這個模型`,
fill: "填寫",
diff --git a/src/upstreams/ModelsSection.tsx b/src/upstreams/ModelsSection.tsx
index a05a47ae..d2f45dd3 100644
--- a/src/upstreams/ModelsSection.tsx
+++ b/src/upstreams/ModelsSection.tsx
@@ -126,7 +126,7 @@ export function modelCount(hasList: boolean, listed: number, added: number): str
*
* 编辑已有的上游时(`actions`),上下文窗口、定价两格就是按钮:不知道的写「未知 · 填写」,
* 未定价的写「未定价 · 设置价格」。行尾「…」和右键是同一份菜单:规格…、设置价格…、
- * 起别名…。**这些都只是入口**,打开的是现有的对话框,在那边保存、立即生效,和这个对话框的
+ * 设置别名…。**这些都只是入口**,打开的是现有的对话框,在那边保存、立即生效,和这个对话框的
* 「保存」无关。模型名后面标出列着它的别名。
*
* 输入框的状态(`entry`)放在对话框里:切到别的分节再保存,输入框里没按回车的也要先加上、
diff --git a/src/upstreams/UpstreamDialog.tsx b/src/upstreams/UpstreamDialog.tsx
index 81342c7f..474cb702 100644
--- a/src/upstreams/UpstreamDialog.tsx
+++ b/src/upstreams/UpstreamDialog.tsx
@@ -272,7 +272,7 @@ export function UpstreamDialog({
| { kind: "draft-sheet"; add?: string[] }
/** 「模型」一节里那一行的规格 */
| { kind: "spec"; row: ModelRow }
- /** 「模型」一节里给这个模型起别名 */
+ /** 「模型」一节里给这个模型设置别名 */
| { kind: "alias"; model: string }
>(null);
diff --git a/src/upstreams/UpstreamTable.tsx b/src/upstreams/UpstreamTable.tsx
index 9f17c224..05d6f012 100644
--- a/src/upstreams/UpstreamTable.tsx
+++ b/src/upstreams/UpstreamTable.tsx
@@ -475,7 +475,7 @@ function ModelsCell({
const t = useText(upstreamTableText);
const l = useText(labelsText);
const [open, setOpen] = useState(false);
- /** 「起别名…」点的那个模型。对话框挂在弹窗外面:弹窗一收起,里面的东西就卸掉了 */
+ /** 「设置别名…」点的那个模型。对话框挂在弹窗外面:弹窗一收起,里面的东西就卸掉了 */
const [aliasFor, setAliasFor] = useState(null);
/** 「规格…」点的那一行,同上 */
const [specFor, setSpecFor] = useState(null);
From 14b6d81db56a41659e04d833ed52324ab337fe1c Mon Sep 17 00:00:00 2001
From: fylorn <249551762+fylorn@users.noreply.github.com>
Date: Wed, 25 Nov 2026 00:44:53 +0800
Subject: [PATCH 4/4] chore(release): prepare ThinkWatch Lite 2026.11.25
---
package.json | 2 +-
release-notes/2026.11.25.md | 2 ++
src-tauri/Cargo.lock | 2 +-
src-tauri/Cargo.toml | 2 +-
src-tauri/tauri.conf.json | 2 +-
5 files changed, 6 insertions(+), 4 deletions(-)
create mode 100644 release-notes/2026.11.25.md
diff --git a/package.json b/package.json
index 7bfb72dd..ff5c7ce3 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "thinkwatch-lite",
"private": true,
"description": "Desktop app for a local AI API gateway on macOS, Windows and Linux",
- "version": "2026.11.24",
+ "version": "2026.11.25",
"type": "module",
"packageManager": "pnpm@11.13.1",
"scripts": {
diff --git a/release-notes/2026.11.25.md b/release-notes/2026.11.25.md
new file mode 100644
index 00000000..1f2ecbc9
--- /dev/null
+++ b/release-notes/2026.11.25.md
@@ -0,0 +1,2 @@
+- From an upstream model's menu, choose **Add alias…** to create an alias or add the model to an existing one. The model is appended to the list. Preview which model each upstream will receive before saving.
+- When configuring a route with **Specific upstream models**, select an upstream and search by alias to find its model ID. Selecting a result pins that ID. You can also enter an ID manually. To have the route follow future alias changes, choose **Upstream or group** and enter the alias under **Change model to**.
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index cbd916c6..15dbf62f 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -4950,7 +4950,7 @@ dependencies = [
[[package]]
name = "thinkwatch-lite"
-version = "2026.11.24"
+version = "2026.11.25"
dependencies = [
"anyhow",
"base64 0.22.1",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 67560c66..4fc33ec1 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "thinkwatch-lite"
-version = "2026.11.24"
+version = "2026.11.25"
edition = "2024"
# **这个数决定依赖能升到哪一版。**edition 2024 的解析器只挑声明的 Rust
# 版本编得动的依赖:写 1.85 的时候,`cargo update` 一直停在旧的 time 和
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 25fdb75b..d4ab81e2 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "ThinkWatch Lite",
- "version": "2026.11.24",
+ "version": "2026.11.25",
"identifier": "app.thinkwatch.lite",
"build": {
"beforeDevCommand": "pnpm dev",