Add upstream model list fetching and a Codex-specific model section

This commit is contained in:
kate522 committed 2026-10-18 19:33:32 +08:00
1 parent d759fe5e5d
commit f3bf1472e7
12 files changed
+339 -16

No files matched your search

+10
View File
@@ -74,6 +74,11 @@ export const zhCN = {
extraKey: "请求的模型名",
extraValue: "上游模型名",
addMapping: "添加一行",
fetchModels: "获取模型列表",
fetchingModels: "获取中",
modelsFetched: "已获取 {{count}} 个模型",
modelsFetchHint: "点「获取模型列表」从供应商拉取可用模型,下方输入可从列表选择;不支持列表的供应商可手动输入。",
fetchModelsNeedKey: "请先填写 Base URL 和 API Key",
extraHint: "Codex 等客户端会把模型名原样发给网关,在此把入站模型名映射到上游模型名。",
activated: "已激活",
activate: "激活并写入",
@@ -202,6 +207,11 @@ export const enUS = {
extraKey: "Requested model",
extraValue: "Upstream model",
addMapping: "Add row",
fetchModels: "Fetch models",
fetchingModels: "Fetching",
modelsFetched: "Fetched {{count}} models",
modelsFetchHint: "Fetch the provider's model list to pick from the inputs below; providers without a list can be filled in manually.",
fetchModelsNeedKey: "Base URL and API key are required first",
extraHint: "Clients like Codex send their model names as-is; map inbound names onto upstream models here.",
activated: "Active",
activate: "Activate & apply",