diff --git a/frontend/plugins/static-i18n-plugin.js b/frontend/plugins/static-i18n-plugin.js index ea747b0..1d136d0 100644 --- a/frontend/plugins/static-i18n-plugin.js +++ b/frontend/plugins/static-i18n-plugin.js @@ -651,7 +651,7 @@ function collectCatalogRecords(rootDir) { return records; } -function syncCatalogFiles(rootDir) { +export function syncCatalogFiles(rootDir) { const records = collectCatalogRecords(rootDir); const catalog = mergeMessageRecords(records); const generatedDir = path.join(rootDir, "src/i18n/generated"); diff --git a/frontend/src/i18n/generated/catalog.json b/frontend/src/i18n/generated/catalog.json index af168af..d19a23a 100644 --- a/frontend/src/i18n/generated/catalog.json +++ b/frontend/src/i18n/generated/catalog.json @@ -7,7 +7,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 831, + "line": 1023, "column": 42 } ] @@ -36,18 +36,6 @@ } ] }, - "045261cc748d4300": { - "source": "Anthropic 思考阶段允许消耗的预算 Token 数。留空时使用默认值。", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/views/ModelEditor.vue", - "line": 90, - "column": 25 - } - ] - }, "047ec6b71d0cec08": { "source": "控制白名单主链路请求走本地服务,还是回到原始 Cursor 上游地址", "kind": "text", @@ -67,7 +55,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 318, + "line": 462, "column": 14 } ] @@ -79,7 +67,7 @@ "refs": [ { "file": "src/views/ModelConfig.vue", - "line": 88, + "line": 91, "column": 139 } ] @@ -96,7 +84,7 @@ }, { "file": "src/views/ModelEditor.vue", - "line": 143, + "line": 154, "column": 16 } ] @@ -108,7 +96,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 39, + "line": 52, "column": 12 } ] @@ -132,7 +120,19 @@ "refs": [ { "file": "src/views/ModelConfig.vue", - "line": 75, + "line": 78, + "column": 20 + } + ] + }, + "09ebc2643631ba25": { + "source": "价值估算", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 145, "column": 20 } ] @@ -144,7 +144,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 309, + "line": 429, "column": 14 } ] @@ -156,12 +156,12 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 67, + "line": 102, "column": 30 }, { "file": "src/layouts/MainLayout.vue", - "line": 67, + "line": 102, "column": 48 } ] @@ -173,23 +173,11 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 90, + "line": 125, "column": 27 } ] }, - "0e40a09ab4e664ab": { - "source": "模型渠道重复,请检查 url、modelID、apiKey、displayName 组合", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/state/appState.js", - "line": 331, - "column": 14 - } - ] - }, "1117a2f86030d03b": { "source": "缓存读写已计入 Prompt 侧统计。", "kind": "text", @@ -197,7 +185,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 94, + "line": 180, "column": 5 } ] @@ -209,7 +197,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 49, + "line": 104, "column": 65 } ] @@ -221,7 +209,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 65, + "line": 121, "column": 20 } ] @@ -233,7 +221,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 30, + "line": 63, "column": 20 } ] @@ -245,11 +233,23 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 86, + "line": 131, "column": 24 } ] }, + "185aebe19c77425d": { + "source": "{0}必须是 JSON 对象", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/state/appState.js", + "line": 309, + "column": 14 + } + ] + }, "18b7312022cd1840": { "source": "启动服务", "kind": "text", @@ -257,7 +257,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 802, + "line": 994, "column": 47 } ] @@ -269,11 +269,23 @@ "refs": [ { "file": "src/state/appState.js", - "line": 340, + "line": 484, "column": 12 } ] }, + "1baddde657dd2720": { + "source": "当前出站请求使用系统代理", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 44, + "column": 9 + } + ] + }, "1bc77f5ab979f4c1": { "source": "新增模型配置", "kind": "text", @@ -281,7 +293,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 79, + "line": 100, "column": 67 } ] @@ -298,7 +310,29 @@ }, { "file": "src/components/ModelAdapterModal.vue", - "line": 104, + "line": 136, + "column": 22 + } + ] + }, + "21296ab18ad9af25": { + "source": "额外参数 JSON", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ModelAdapterModal.vue", + "line": 109, + "column": 28 + }, + { + "file": "src/state/appState.js", + "line": 335, + "column": 36 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 175, "column": 22 } ] @@ -315,12 +349,12 @@ }, { "file": "src/views/Home.vue", - "line": 57, + "line": 118, "column": 27 }, { "file": "src/views/Home.vue", - "line": 65, + "line": 126, "column": 27 }, { @@ -337,25 +371,8 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 66, + "line": 178, "column": 5 - }, - { - "file": "src/components/HomeMetricsCard.vue", - "line": 92, - "column": 5 - } - ] - }, - "258e4620e2108793": { - "source": "留空时默认 4096", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/components/ModelAdapterModal.vue", - "line": 115, - "column": 22 } ] }, @@ -366,7 +383,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 793, + "line": 985, "column": 12 } ] @@ -378,7 +395,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 327, + "line": 471, "column": 14 } ] @@ -395,18 +412,6 @@ } ] }, - "2caeaec539e78898": { - "source": "思考预算 Token", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/views/ModelEditor.vue", - "line": 153, - "column": 22 - } - ] - }, "2cd0f3be8738a86c": { "source": "取消", "kind": "text", @@ -414,7 +419,7 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 138, + "line": 167, "column": 66 }, { @@ -439,7 +444,7 @@ }, { "file": "src/state/appState.js", - "line": 843, + "line": 1035, "column": 52 }, { @@ -468,7 +473,7 @@ "refs": [ { "file": "src/views/ModelConfig.vue", - "line": 91, + "line": 94, "column": 95 } ] @@ -480,11 +485,33 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 173, + "line": 251, "column": 14 } ] }, + "3275d7e70bbdc3d5": { + "source": "{0} 的 {1}", + "kind": "template", + "placeholders": 2, + "refs": [ + { + "file": "src/state/appState.js", + "line": 443, + "column": 16 + }, + { + "file": "src/state/appState.js", + "line": 449, + "column": 16 + }, + { + "file": "src/state/appState.js", + "line": 455, + "column": 16 + } + ] + }, "32b3c9a50003f77a": { "source": "输出 Token 为估算值", "kind": "text", @@ -504,11 +531,23 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 98, + "line": 133, "column": 27 } ] }, + "3463c5585c246df9": { + "source": "合计:{0}", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 194, + "column": 5 + } + ] + }, "3468b57e3edbc599": { "source": "按历史记录里扫描到的回合 summary 汇总。", "kind": "text", @@ -516,7 +555,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 75, + "line": 160, "column": 5 } ] @@ -552,7 +591,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 840, + "line": 1032, "column": 45 } ] @@ -564,12 +603,22 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 16, + "line": 25, + "column": 12 + }, + { + "file": "src/components/ModelAdapterModal.vue", + "line": 33, "column": 12 }, { "file": "src/views/ModelEditor.vue", - "line": 33, + "line": 40, + "column": 12 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 48, "column": 12 } ] @@ -593,7 +642,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 14, + "line": 47, "column": 22 } ] @@ -605,7 +654,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 38, + "line": 51, "column": 12 } ] @@ -617,7 +666,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 300, + "line": 420, "column": 14 } ] @@ -627,10 +676,15 @@ "kind": "text", "placeholders": 0, "refs": [ + { + "file": "src/components/LocaleSelect.vue", + "line": 7, + "column": 39 + }, { "file": "src/layouts/MainLayout.vue", - "line": 84, - "column": 33 + "line": 101, + "column": 12 }, { "file": "src/views/Config.vue", @@ -646,7 +700,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 829, + "line": 1021, "column": 11 } ] @@ -675,6 +729,30 @@ } ] }, + "438bb77c1ecdfab0": { + "source": "缓存写入:{0} × ${1}/1M = {2}", + "kind": "template", + "placeholders": 3, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 192, + "column": 5 + } + ] + }, + "46056425a48ef05b": { + "source": "当前按复用率口径显示", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 71, + "column": 22 + } + ] + }, "468adaa418ee1475": { "source": "例如:https://api.openai.com/v1", "kind": "text", @@ -682,11 +760,23 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 60, + "line": 81, "column": 65 } ] }, + "472642d58d3d5a6d": { + "source": "公式:{0}", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 153, + "column": 5 + } + ] + }, "4923eeb7bd75cccd": { "source": "{0} 的模型标识不能为空", "kind": "template", @@ -694,7 +784,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 312, + "line": 432, "column": 14 } ] @@ -706,19 +796,31 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 41, + "line": 61, "column": 12 } ] }, - "4b8d11bf235e9213": { - "source": "当前命中率:{0}", + "4c0a929bb86ce912": { + "source": "当前:{0}", "kind": "template", "placeholders": 1, "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 64, + "line": 152, + "column": 5 + } + ] + }, + "4d2b6e53be6002e5": { + "source": "缓存统计策略:{0}({1})", + "kind": "template", + "placeholders": 2, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 187, "column": 5 } ] @@ -730,11 +832,23 @@ "refs": [ { "file": "src/state/appState.js", - "line": 107, + "line": 120, "column": 12 } ] }, + "4f0982ba1d37e51b": { + "source": "当前出站请求使用环境变量代理", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 49, + "column": 9 + } + ] + }, "51194c3ad014fb29": { "source": "需重测", "kind": "text", @@ -754,7 +868,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 89, + "line": 138, "column": 23 } ] @@ -771,11 +885,52 @@ }, { "file": "src/views/ModelEditor.vue", - "line": 137, + "line": 148, "column": 22 } ] }, + "593a972852ba0004": { + "source": "Cursor助手|永久免费|自定义API", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 24, + "column": 50 + }, + { + "file": "src/router/index.js", + "line": 12, + "column": 38 + } + ] + }, + "59a2195a01a8b35b": { + "source": "{0}必须是合法 JSON 对象", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/state/appState.js", + "line": 312, + "column": 12 + } + ] + }, + "5aa8f5590c940829": { + "source": "非缓存输入:{0}", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 176, + "column": 5 + } + ] + }, "5beb1206c532729f": { "source": "单次回复允许生成的最大 Token 数。留空时使用默认值。", "kind": "text", @@ -783,7 +938,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 88, + "line": 133, "column": 24 } ] @@ -800,6 +955,18 @@ } ] }, + "5e709712ce012f5d": { + "source": "当前出站请求使用环境变量代理:{0}", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 48, + "column": 9 + } + ] + }, "6106f0a12583a334": { "source": "刷新失败", "kind": "text", @@ -807,7 +974,7 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 45, + "line": 106, "column": 27 } ] @@ -829,6 +996,16 @@ "kind": "text", "placeholders": 0, "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 218, + "column": 55 + }, + { + "file": "src/components/HomeMetricsCard.vue", + "line": 221, + "column": 54 + }, { "file": "src/views/Config.vue", "line": 29, @@ -843,7 +1020,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 295, + "line": 415, "column": 20 } ] @@ -855,11 +1032,23 @@ "refs": [ { "file": "src/views/ModelConfig.vue", - "line": 89, + "line": 92, "column": 156 } ] }, + "64857b4338678314": { + "source": "自定义请求头 {0} 的值必须是字符串", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/state/appState.js", + "line": 328, + "column": 14 + } + ] + }, "64d2730f2ae37997": { "source": "原始返回", "kind": "text", @@ -879,7 +1068,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 791, + "line": 983, "column": 14 } ] @@ -891,11 +1080,23 @@ "refs": [ { "file": "src/state/appState.js", - "line": 306, + "line": 426, "column": 14 } ] }, + "6744b4c6a9aa0038": { + "source": "已关闭", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ui/Switch.vue", + "line": 10, + "column": 42 + } + ] + }, "675109292da4eb36": { "source": "尚未测试", "kind": "text", @@ -908,7 +1109,7 @@ }, { "file": "src/views/ModelEditor.vue", - "line": 76, + "line": 97, "column": 54 } ] @@ -919,9 +1120,9 @@ "placeholders": 0, "refs": [ { - "file": "src/components/DirectModeSwitch.vue", - "line": 6, - "column": 35 + "file": "src/views/Home.vue", + "line": 35, + "column": 12 } ] }, @@ -944,12 +1145,12 @@ "refs": [ { "file": "src/views/ModelConfig.vue", - "line": 74, + "line": 77, "column": 20 }, { "file": "src/views/ModelConfig.vue", - "line": 86, + "line": 89, "column": 23 } ] @@ -976,12 +1177,12 @@ }, { "file": "src/views/Home.vue", - "line": 28, + "line": 89, "column": 30 }, { "file": "src/views/Home.vue", - "line": 28, + "line": 89, "column": 48 }, { @@ -996,6 +1197,18 @@ } ] }, + "6d7872164df9b36e": { + "source": "普通输入:{0} × ${1}/1M = {2}", + "kind": "template", + "placeholders": 3, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 189, + "column": 5 + } + ] + }, "6e584e3d5ce64aa0": { "source": "保存配置", "kind": "text", @@ -1008,6 +1221,30 @@ } ] }, + "6ec87609a8769425": { + "source": "默认 {0} / 计入创建 {1}", + "kind": "template", + "placeholders": 2, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 154, + "column": 5 + } + ] + }, + "72f6c3525c0192a7": { + "source": "开启后把缓存创建纳入分母", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 70, + "column": 22 + } + ] + }, "737225e2904673fc": { "source": "输出推算:{0}", "kind": "template", @@ -1015,7 +1252,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 90, + "line": 175, "column": 5 } ] @@ -1049,6 +1286,18 @@ } ] }, + "774d6e1b7cb89751": { + "source": "默认口径", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 116, + "column": 49 + } + ] + }, "77c9e582e85583af": { "source": "测试失败", "kind": "text", @@ -1061,12 +1310,12 @@ }, { "file": "src/views/ModelEditor.vue", - "line": 179, + "line": 257, "column": 21 }, { "file": "src/views/ModelEditor.vue", - "line": 179, + "line": 257, "column": 21 } ] @@ -1078,7 +1327,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 82, + "line": 127, "column": 16 } ] @@ -1095,12 +1344,12 @@ }, { "file": "src/state/appState.js", - "line": 193, + "line": 214, "column": 12 }, { "file": "src/views/ModelConfig.vue", - "line": 86, + "line": 89, "column": 23 }, { @@ -1122,6 +1371,18 @@ } ] }, + "7df7641e5e741346": { + "source": "缓存读取 /(缓存读取 + 缓存创建 + 非缓存输入)", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 149, + "column": 7 + } + ] + }, "7e9e334aeb0bdc07": { "source": "服务操作失败", "kind": "text", @@ -1129,7 +1390,7 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 35, + "line": 96, "column": 27 } ] @@ -1141,16 +1402,28 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 49, + "line": 60, "column": 16 }, { "file": "src/state/appState.js", - "line": 821, + "line": 1013, "column": 16 } ] }, + "80296f4aa3f4543b": { + "source": "缓存读写", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 156, + "column": 65 + } + ] + }, "81123c56d5d880d0": { "source": "访问密钥", "kind": "text", @@ -1163,6 +1436,18 @@ } ] }, + "8139cb3dd11f5a67": { + "source": "开启后会把 JSON 对象覆盖到最终请求头。同名请求头以这里为准,值必须是字符串。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 136, + "column": 18 + } + ] + }, "8672864e90417138": { "source": "最高", "kind": "text", @@ -1187,7 +1472,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 788, + "line": 980, "column": 14 } ] @@ -1216,15 +1501,27 @@ } ] }, + "8a4ef3e48e4e8a5a": { + "source": "已开启", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ui/Switch.vue", + "line": 9, + "column": 41 + } + ] + }, "8c0d84831a3c3d5b": { "source": "当前为本地服务模式", "kind": "text", "placeholders": 0, "refs": [ { - "file": "src/components/DirectModeSwitch.vue", - "line": 12, - "column": 42 + "file": "src/views/Home.vue", + "line": 38, + "column": 12 } ] }, @@ -1247,7 +1544,7 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 21, + "line": 49, "column": 35 }, { @@ -1262,7 +1559,7 @@ }, { "file": "src/views/Home.vue", - "line": 49, + "line": 55, "column": 69 } ] @@ -1274,7 +1571,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 80, + "line": 165, "column": 5 } ] @@ -1303,6 +1600,18 @@ } ] }, + "8f8baf5d18dd0492": { + "source": "开启后会把 JSON 对象覆盖到 OpenAI 请求体。同名字段以这里为准。OpenAI service_tier 支持 auto、default、flex、scale、priority;priority 可用于高优先级/Fast 类场景。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ModelAdapterModal.vue", + "line": 44, + "column": 22 + } + ] + }, "8faa670b512b6b9b": { "source": "打开模型配置", "kind": "text", @@ -1315,6 +1624,18 @@ } ] }, + "907395551d0f3a93": { + "source": "{0} 的 OpenAI 端点仅支持 /v1/responses、/v1/chat/completions 或以 / 开头的自定义路径", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/state/appState.js", + "line": 438, + "column": 14 + } + ] + }, "917b1c1f18d0276b": { "source": "保存中...", "kind": "text", @@ -1351,7 +1672,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 53, + "line": 108, "column": 23 } ] @@ -1363,7 +1684,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 83, + "line": 128, "column": 12 } ] @@ -1387,11 +1708,35 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 46, + "line": 81, "column": 44 } ] }, + "970388573a3c88c9": { + "source": "缓存读取:{0} × ${1}/1M = {2}", + "kind": "template", + "placeholders": 3, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 191, + "column": 5 + } + ] + }, + "9730c15f3c1963a1": { + "source": "最大", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ModelAdapterModal.vue", + "line": 34, + "column": 12 + } + ] + }, "986678eccf56dc28": { "source": "服务状态更新中,请稍后再试", "kind": "text", @@ -1399,33 +1744,16 @@ "refs": [ { "file": "src/state/appState.js", - "line": 1064, + "line": 1280, "column": 32 }, { "file": "src/state/appState.js", - "line": 1085, + "line": 1301, "column": 32 } ] }, - "991e374fce0f4492": { - "source": "Cursor助手", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/layouts/MainLayout.vue", - "line": 16, - "column": 50 - }, - { - "file": "src/router/index.js", - "line": 12, - "column": 38 - } - ] - }, "9970736b36ff2b68": { "source": "模型服务的 API 根地址,通常为兼容 OpenAI 或 Anthropic 的接口入口。", "kind": "text", @@ -1433,11 +1761,23 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 84, + "line": 129, "column": 12 } ] }, + "9a6e7d6c17471711": { + "source": "当前按默认命中率口径显示", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 72, + "column": 22 + } + ] + }, "9b17fa889b307f7f": { "source": "有效轮次:{0}", "kind": "template", @@ -1445,7 +1785,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 78, + "line": 163, "column": 5 } ] @@ -1457,20 +1797,20 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 75, + "line": 136, "column": 29 } ] }, - "9cd4ac17428b86e4": { - "source": "缓存命中率 = 缓存读取 Token / Prompt Token", + "9c41b3a9e12ac994": { + "source": "思考强度", "kind": "text", "placeholders": 0, "refs": [ { - "file": "src/components/HomeMetricsCard.vue", - "line": 62, - "column": 5 + "file": "src/views/ModelEditor.vue", + "line": 134, + "column": 22 } ] }, @@ -1481,11 +1821,23 @@ "refs": [ { "file": "src/state/appState.js", - "line": 843, + "line": 1035, "column": 45 } ] }, + "9d2fb46c0ba890b9": { + "source": "自定义路径", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ModelAdapterModal.vue", + "line": 40, + "column": 12 + } + ] + }, "9dc0825fba5422e4": { "source": "加载中...", "kind": "text", @@ -1498,6 +1850,18 @@ } ] }, + "9e02529bcaef36c6": { + "source": "模型渠道重复,请检查 url、modelID、apiKey、displayName、endpoint 组合", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/state/appState.js", + "line": 475, + "column": 14 + } + ] + }, "a026f37e613cf48b": { "source": "输出 Token", "kind": "text", @@ -1510,6 +1874,18 @@ } ] }, + "a0d36236c523667c": { + "source": "{0} 的 Anthropic 思考强度仅支持 low、medium、high、xhigh、max", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/state/appState.js", + "line": 459, + "column": 14 + } + ] + }, "a1a038dfa16c3ede": { "source": "当前已是最新版本(v{0})。", "kind": "template", @@ -1517,7 +1893,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 836, + "line": 1028, "column": 42 } ] @@ -1529,7 +1905,7 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 139, + "line": 168, "column": 64 }, { @@ -1546,7 +1922,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 1009, + "line": 1225, "column": 14 }, { @@ -1568,15 +1944,27 @@ } ] }, + "a54d745d9a9249e2": { + "source": "开启后会把 JSON 对象覆盖到 Anthropic 请求体。同名字段以这里为准。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 137, + "column": 25 + } + ] + }, "a55a88237df85d98": { "source": "当前为直连模式", "kind": "text", "placeholders": 0, "refs": [ { - "file": "src/components/DirectModeSwitch.vue", - "line": 11, - "column": 41 + "file": "src/views/Home.vue", + "line": 37, + "column": 12 } ] }, @@ -1587,12 +1975,22 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 14, + "line": 23, + "column": 12 + }, + { + "file": "src/components/ModelAdapterModal.vue", + "line": 31, "column": 12 }, { "file": "src/views/ModelEditor.vue", - "line": 31, + "line": 38, + "column": 12 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 46, "column": 12 } ] @@ -1604,7 +2002,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 85, + "line": 130, "column": 11 } ] @@ -1645,12 +2043,22 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 13, + "line": 22, + "column": 12 + }, + { + "file": "src/components/ModelAdapterModal.vue", + "line": 30, "column": 12 }, { "file": "src/views/ModelEditor.vue", - "line": 30, + "line": 37, + "column": 12 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 45, "column": 12 } ] @@ -1662,7 +2070,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 817, + "line": 1009, "column": 16 } ] @@ -1674,7 +2082,7 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 45, + "line": 51, "column": 48 } ] @@ -1697,9 +2105,21 @@ "placeholders": 0, "refs": [ { - "file": "src/components/DirectModeSwitch.vue", - "line": 7, - "column": 13 + "file": "src/components/ui/Switch.vue", + "line": 11, + "column": 38 + } + ] + }, + "b10041a13f5c55b1": { + "source": "模型输出:{0} × ${1}/1M = {2}", + "kind": "template", + "placeholders": 3, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 190, + "column": 5 } ] }, @@ -1710,12 +2130,22 @@ "refs": [ { "file": "src/components/ModelAdapterModal.vue", - "line": 15, + "line": 24, + "column": 12 + }, + { + "file": "src/components/ModelAdapterModal.vue", + "line": 32, "column": 12 }, { "file": "src/views/ModelEditor.vue", - "line": 32, + "line": 39, + "column": 12 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 47, "column": 12 } ] @@ -1727,11 +2157,23 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 75, + "line": 136, "column": 50 } ] }, + "b5409d4049286061": { + "source": "自定义路径(请输入完整请求地址)", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 55, + "column": 12 + } + ] + }, "b571037dc396a00c": { "source": "总请求 Token 包含 Prompt 和模型输出。", "kind": "text", @@ -1739,7 +2181,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 86, + "line": 171, "column": 5 } ] @@ -1756,6 +2198,30 @@ } ] }, + "b76a22622020f849": { + "source": "选择接口协议端点。选“自定义路径”时,请在接口地址栏填写完整请求地址(含 /chat/completions 或 /responses 路径后缀),系统会根据末段自动判断协议形态。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 134, + "column": 19 + } + ] + }, + "b870928f8f9a24c4": { + "source": "接口端点", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 162, + "column": 22 + } + ] + }, "b90a8ac9c488ce46": { "source": "选择语言", "kind": "text", @@ -1763,11 +2229,23 @@ "refs": [ { "file": "src/components/LocaleSelect.vue", - "line": 9, + "line": 11, "column": 41 } ] }, + "ba3c66f90fd11725": { + "source": "已识别系统代理", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 36, + "column": 12 + } + ] + }, "ba40014ff496f64e": { "source": "类型", "kind": "text", @@ -1792,18 +2270,6 @@ } ] }, - "bbacfde55a92869f": { - "source": "命中率越高,说明重复上下文复用得越多。", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/components/HomeMetricsCard.vue", - "line": 69, - "column": 5 - } - ] - }, "bc87a4121a0873b3": { "source": "刷新统计", "kind": "text", @@ -1811,12 +2277,12 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 9, + "line": 42, "column": 18 }, { "file": "src/components/HomeMetricsCard.vue", - "line": 14, + "line": 47, "column": 22 } ] @@ -1828,11 +2294,23 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 77, + "line": 162, "column": 5 } ] }, + "bddd504af0c92fd0": { + "source": "检测到系统 PAC/自动代理,当前版本按直连处理", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 52, + "column": 12 + } + ] + }, "bef280f9eb392495": { "source": "对话轮次", "kind": "text", @@ -1840,7 +2318,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 38, + "line": 93, "column": 20 } ] @@ -1874,6 +2352,18 @@ } ] }, + "c5af02060847d167": { + "source": "Anthropic adaptive thinking 的思考强度。请求会固定使用新版 thinking.type=adaptive。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 139, + "column": 28 + } + ] + }, "c69f5bce63b9f14c": { "source": "设置文件夹", "kind": "text", @@ -1881,23 +2371,11 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 48, + "line": 54, "column": 64 } ] }, - "c6f743953145f40b": { - "source": "例如:4096(留空用默认值)", - "kind": "text", - "placeholders": 0, - "refs": [ - { - "file": "src/views/ModelEditor.vue", - "line": 159, - "column": 16 - } - ] - }, "c8c14507b2d37395": { "source": "推理强度", "kind": "text", @@ -1917,21 +2395,33 @@ "refs": [ { "file": "src/state/appState.js", - "line": 980, + "line": 1196, "column": 28 }, { "file": "src/state/appState.js", - "line": 982, + "line": 1198, "column": 38 }, { "file": "src/state/appState.js", - "line": 1017, + "line": 1233, "column": 93 } ] }, + "c9dd59beefd7144f": { + "source": "缓存读取 /(缓存读取 + 非缓存输入)", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 150, + "column": 7 + } + ] + }, "ca00a39fcea70dc6": { "source": "启动中...", "kind": "text", @@ -1939,7 +2429,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 800, + "line": 992, "column": 51 } ] @@ -1951,20 +2441,32 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 79, + "line": 164, "column": 5 } ] }, + "cd7ca5fb221e1c53": { + "source": "{0}不能为空", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/state/appState.js", + "line": 304, + "column": 12 + } + ] + }, "ce46f23cea3bf3c5": { "source": "开启后,Cursor将直接接通官方,请勿开启", "kind": "text", "placeholders": 0, "refs": [ { - "file": "src/components/DirectModeSwitch.vue", - "line": 9, - "column": 14 + "file": "src/views/Home.vue", + "line": 36, + "column": 12 } ] }, @@ -1987,7 +2489,7 @@ "refs": [ { "file": "src/views/Home.vue", - "line": 72, + "line": 133, "column": 27 } ] @@ -1999,7 +2501,7 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 60, + "line": 95, "column": 19 } ] @@ -2011,7 +2513,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 297, + "line": 417, "column": 14 } ] @@ -2023,7 +2525,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 79, + "line": 100, "column": 56 } ] @@ -2035,7 +2537,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 961, + "line": 1177, "column": 14 }, { @@ -2064,16 +2566,50 @@ "refs": [ { "file": "src/state/appState.js", - "line": 196, + "line": 217, "column": 38 }, { "file": "src/state/appState.js", - "line": 226, + "line": 247, "column": 50 } ] }, + "d53d32f1a1211371": { + "source": "自定义请求头 JSON", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/state/appState.js", + "line": 318, + "column": 49 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 223, + "column": 22 + } + ] + }, + "d7889896c5b7732a": { + "source": "Anthropic 额外参数 JSON", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/state/appState.js", + "line": 339, + "column": 36 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 199, + "column": 22 + } + ] + }, "d7da2aabd35772ec": { "source": "例如:200000(留空用默认值)", "kind": "text", @@ -2086,6 +2622,23 @@ } ] }, + "d95e5cb6bdcee553": { + "source": "计入缓存创建", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 69, + "column": 22 + }, + { + "file": "src/components/HomeMetricsCard.vue", + "line": 116, + "column": 38 + } + ] + }, "da590a8fe3ce4de0": { "source": "请选择", "kind": "text", @@ -2105,12 +2658,12 @@ "refs": [ { "file": "src/state/appState.js", - "line": 247, + "line": 268, "column": 18 }, { "file": "src/views/ModelEditor.vue", - "line": 168, + "line": 246, "column": 20 } ] @@ -2134,7 +2687,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 303, + "line": 423, "column": 14 } ] @@ -2146,7 +2699,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 828, + "line": 1020, "column": 11 } ] @@ -2163,6 +2716,18 @@ } ] }, + "e01c5dae36cf8c35": { + "source": "开启后会把 JSON 对象覆盖到 OpenAI 请求体。同名字段以这里为准。OpenAI service_tier 支持 auto、default、flex、scale、priority。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/views/ModelEditor.vue", + "line": 135, + "column": 22 + } + ] + }, "e14c41ef2b7253c9": { "source": "总请求:{0}", "kind": "template", @@ -2170,7 +2735,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 88, + "line": 173, "column": 5 } ] @@ -2187,7 +2752,7 @@ }, { "file": "src/views/Home.vue", - "line": 44, + "line": 50, "column": 57 } ] @@ -2211,12 +2776,7 @@ "refs": [ { "file": "src/components/HomeMetricsCard.vue", - "line": 65, - "column": 5 - }, - { - "file": "src/components/HomeMetricsCard.vue", - "line": 91, + "line": 177, "column": 5 } ] @@ -2228,11 +2788,23 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 60, + "line": 81, "column": 32 } ] }, + "eb1be07f2ca6e506": { + "source": "按 Claude Opus 4.7 价格估算。", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/HomeMetricsCard.vue", + "line": 186, + "column": 5 + } + ] + }, "ec3b17a75db49e24": { "source": "{0} t/s | 首字 {1}", "kind": "template", @@ -2240,7 +2812,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 202, + "line": 223, "column": 10 } ] @@ -2252,11 +2824,23 @@ "refs": [ { "file": "src/state/appState.js", - "line": 819, + "line": 1011, "column": 16 } ] }, + "ee95057c6b0335d2": { + "source": "当前出站请求使用系统代理:{0}", + "kind": "template", + "placeholders": 1, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 43, + "column": 9 + } + ] + }, "f1e0fc261d42fe29": { "source": "模型列表 hover 时显示的备注说明。", "kind": "text", @@ -2264,7 +2848,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 91, + "line": 140, "column": 16 } ] @@ -2276,7 +2860,7 @@ "refs": [ { "file": "src/views/ModelEditor.vue", - "line": 87, + "line": 132, "column": 20 } ] @@ -2293,6 +2877,18 @@ } ] }, + "f3fae6cccb9004b1": { + "source": "自定义请求头名称不能为空", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/state/appState.js", + "line": 325, + "column": 14 + } + ] + }, "f474a4108aba4c4c": { "source": "关闭服务", "kind": "text", @@ -2300,11 +2896,38 @@ "refs": [ { "file": "src/state/appState.js", - "line": 802, + "line": 994, "column": 38 } ] }, + "f4f0ead1116b5b62": { + "source": "启用", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/components/ModelAdapterModal.vue", + "line": 117, + "column": 28 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 183, + "column": 22 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 207, + "column": 22 + }, + { + "file": "src/views/ModelEditor.vue", + "line": 231, + "column": 22 + } + ] + }, "f56c6c82203b33f6": { "source": "提示", "kind": "text", @@ -2354,16 +2977,28 @@ "refs": [ { "file": "src/state/appState.js", - "line": 321, + "line": 465, "column": 14 }, { "file": "src/state/appState.js", - "line": 324, + "line": 468, "column": 14 } ] }, + "f6e1c8b1a6970db5": { + "source": "当前出站请求未使用系统代理", + "kind": "text", + "placeholders": 0, + "refs": [ + { + "file": "src/layouts/MainLayout.vue", + "line": 54, + "column": 10 + } + ] + }, "fac2a67ad87807c4": { "source": "确定", "kind": "text", @@ -2391,12 +3026,12 @@ }, { "file": "src/layouts/MainLayout.vue", - "line": 68, + "line": 103, "column": 18 }, { "file": "src/state/appState.js", - "line": 840, + "line": 1032, "column": 56 } ] @@ -2408,7 +3043,7 @@ "refs": [ { "file": "src/state/appState.js", - "line": 800, + "line": 992, "column": 40 } ] @@ -2420,7 +3055,7 @@ "refs": [ { "file": "src/layouts/MainLayout.vue", - "line": 57, + "line": 68, "column": 16 } ] diff --git a/frontend/src/i18n/locales/en-US.json b/frontend/src/i18n/locales/en-US.json index c9af884..39ff4f6 100644 --- a/frontend/src/i18n/locales/en-US.json +++ b/frontend/src/i18n/locales/en-US.json @@ -2,7 +2,6 @@ "02216368edc68816": "No release notes", "02bc2e95bf49e587": "No", "03b11112dc970014": "Base URL", - "045261cc748d4300": "Token budget allowed during Anthropic's thinking phase. Leave blank to use the default.", "047ec6b71d0cec08": "Control whether requests on the whitelist main path go through the local service or return to the original Cursor upstream endpoint", "04f632dd4f034d5e": "{0} context window must be a positive integer", "051836569928a9f9": "Edit", @@ -10,32 +9,35 @@ "05c8a9238c702efa": "Direct Cursor Mode", "0647728439b5da2e": "You can configure the routing mode and model channels. Runtime logs are stored in", "092b520558eff5f2": "Not tested", + "09ebc2643631ba25": "Cost Estimate", "0b0e7478e41fe677": "{0} tooltip text cannot be empty", "0c3b4cf7aa259edb": "Operation failed", "0dde813d719dbd01": "Failed to open homepage", - "0e40a09ab4e664ab": "Duplicate model channel detected. Check the combination of url, modelID, apiKey, and displayName", "1117a2f86030d03b": "Cache reads and writes are included in Prompt-side statistics.", "11afd2a534395b18": "Valid", "124be3f86f197802": "Token Usage", "13b61c5f697b6700": "Cache Hit Rate", "15d124b200ddabed": "Maximum number of context tokens the model can accept in a single request. Leave blank to use the default.", + "185aebe19c77425d": "{0} must be a JSON object", "18b7312022cd1840": "Start Service", "1af38868896cf53d": "Routing mode only supports local or upstream", + "1baddde657dd2720": "Current outbound requests use system proxy", "1bc77f5ab979f4c1": "Add Model Settings", "1e238093b79b3165": "Uses 65536 by default when left blank", + "21296ab18ad9af25": "Extra Params JSON", "24343a2096988d42": "Failed to open", "253d4a3428c648fb": "Cache write tokens: {0}", - "258e4620e2108793": "Uses 4096 by default when left blank", "26a3855aed1d8d17": "Service not running", "281eb6d08c9960d0": "{0} thinking budget token must be a positive integer", "28aeffc70ceb4267": "Change the display language for this interface. The setting takes effect immediately and is saved on this device.", - "2caeaec539e78898": "Thinking Budget Token", "2cd0f3be8738a86c": "Cancel", "2d706f7981b45a7b": "Local settings saved", "2f9daa828907b93f": "Delete", "30bb57a50caedc38": "e.g. For everyday code completion and Q&A", + "3275d7e70bbdc3d5": "{0}'s {1}", "32b3c9a50003f77a": "Output tokens are estimated", "33d2d273e2bd5f88": "Failed to open user guide", + "3463c5585c246df9": "Total: {0}", "3468b57e3edbc599": "Aggregated from turn summaries scanned from the history.", "35076178fe79a210": "Configuration changed. Please test again.", "36c149a9b3e8dca0": "models configured yet.", @@ -49,70 +51,97 @@ "3ea83f9f55062582": "Release date: {0}", "3edda85621fd03b2": "model adapters", "42aa8e01e98c0d8c": "Total Duration", + "438bb77c1ecdfab0": "Cache Write: {0} × ${1}/1M = {2}", + "46056425a48ef05b": "Currently displayed using the reuse rate definition", "468adaa418ee1475": "e.g. https://api.openai.com/v1", + "472642d58d3d5a6d": "Formula: {0}", "4923eeb7bd75cccd": "{0} model ID cannot be empty", "497c85690c4cc0fc": "No data", - "4b8d11bf235e9213": "Current hit rate: {0}", + "4c0a929bb86ce912": "Current: {0}", + "4d2b6e53be6002e5": "Cache Statistics Strategy: {0} ({1})", "4d8c1c5b42830791": "Unknown", + "4f0982ba1d37e51b": "Current outbound requests use environment variable proxy", "51194c3ad014fb29": "Retest required", "5205125c0e91d346": "Maximum tokens an Anthropic model may generate in a single response. Leave blank to use the default.", "56627c94a9decee6": "Max Output Tokens", + "593a972852ba0004": "Cursor Assistant | Permanently Free | Custom API", + "59a2195a01a8b35b": "{0} must be a valid JSON object", + "5aa8f5590c940829": "Non-cache Input: {0}", "5beb1206c532729f": "Maximum number of tokens allowed in a single response. Leave blank to use the default.", "5d1687a4a41883fd": "Stopping...", + "5e709712ce012f5d": "Current outbound requests use environment variable proxy: {0}", "6106f0a12583a334": "Refresh failed", "62873083fcaed27d": "Session Statistics", "6309a3bb5ba4c714": "Save failed", "636e3deffc1e960a": "Model {0}", "63d90d977348ab1f": "Duplicate", + "64857b4338678314": "The value of custom header {0} must be a string", "64d2730f2ae37997": "Raw Response", "65cc5fd2e6ce6e75": "Backend started, proxy not started", "66af574b8948fe83": "{0} API key cannot be empty", + "6744b4c6a9aa0038": "Disabled", "675109292da4eb36": "Not tested yet", "699fe7ade5407687": "Direct Mode", "6a7b96f399e58138": "e.g. sk-xxxxxx", "6aa8f49cc992dfd7": "Test", "6ae23d6d7cb18592": "Service error", + "6d7872164df9b36e": "Normal Input: {0} × ${1}/1M = {2}", "6e584e3d5ce64aa0": "Save Settings", + "6ec87609a8769425": "Default {0} / Count as creation {1}", + "72f6c3525c0192a7": "When enabled, cache creation is included in the denominator", "737225e2904673fc": "Estimated output tokens: {0}", "7520bd50a5ee5471": "Stop testing {0}/{1}", "753d8bb0da9913ce": "Duplication failed", + "774d6e1b7cb89751": "Default Definition", "77c9e582e85583af": "Test failed", "7a26bf794e9fb6bf": "Used only for display in the UI, so you can distinguish different models.", "7b6187c41e88b70c": "Testing...", "7bf8e2c07e084d09": "Model Editor", + "7df7641e5e741346": "Cache Read / (Cache Read + Cache Creation + Non-cache Input)", "7e9e334aeb0bdc07": "Service operation failed", "7f68ebad19ba6bcd": "Check for Updates", + "80296f4aa3f4543b": "Cache Read/Write", "81123c56d5d880d0": "API Key", + "8139cb3dd11f5a67": "When enabled, the JSON object will override the final request headers. Duplicate headers are determined by this field, and values must be strings.", "8672864e90417138": "Max", "86df7ec743047234": "Service running", "87ed126f7bd1121e": "Routing Mode", "899add6275682210": "Uses 200000 by default when left blank", + "8a4ef3e48e4e8a5a": "Enabled", "8c0d84831a3c3d5b": "Currently in Local Service Mode", "8c1935935600e336": "Model Test", "8cbcf741e727dbf7": "Model Settings", "8d1de152be6360ce": "Valid ratio: {0}", "8e2dc7b0d2e8f6f8": "e.g. OpenAI - GPT-4.1", "8f6f8d979c981ced": "Copied", + "8f8baf5d18dd0492": "When enabled, the JSON object will override the OpenAI request body. Duplicate fields are determined by this field. OpenAI service_tier supports auto, default, flex, scale, priority; priority can be used for high-priority/Fast scenarios.", "8faa670b512b6b9b": "Open Model Settings", + "907395551d0f3a93": "{0} OpenAI endpoint only supports /v1/responses, /v1/chat/completions, or a custom path starting with /", "917b1c1f18d0276b": "Saving...", "9196835e388d2550": "Test All", "91cba5c107a51892": "/ Invalid", "92059fe6cd713db4": "The model name actually sent to the server, for example gpt-4.1 or claude-sonnet.", "93e08803675e378b": "Model ID", "942ff2d88baca0c6": "Checking for updates...", + "970388573a3c88c9": "Cache Read: {0} × ${1}/1M = {2}", + "9730c15f3c1963a1": "Max", "986678eccf56dc28": "Service status is being updated. Please try again later.", - "991e374fce0f4492": "Cursor Assistant", "9970736b36ff2b68": "The base URL of the model service, usually an OpenAI- or Anthropic-compatible endpoint.", + "9a6e7d6c17471711": "Currently displayed using the default hit rate definition", "9b17fa889b307f7f": "Valid turns: {0}", "9c38b6e9bf94abec": "Switched to Direct Cursor Mode", - "9cd4ac17428b86e4": "Cache hit rate = cache read tokens / prompt tokens", + "9c41b3a9e12ac994": "Thinking Effort", "9d2ca261281a158a": "Later", + "9d2fb46c0ba890b9": "Custom Path", "9dc0825fba5422e4": "Loading...", + "9e02529bcaef36c6": "Duplicate model channel detected. Please check the combination of url, modelID, apiKey, displayName, and endpoint", "a026f37e613cf48b": "Output Tokens", + "a0d36236c523667c": "{0} Anthropic thinking effort only supports low, medium, high, xhigh, max", "a1a038dfa16c3ede": "You're already on the latest version (v{0}).", "a3030bf8f16dc63c": "Save", "a325d25c69e7256d": "Model settings not found; cannot duplicate", "a4dd8bb7e8b6eb31": "Show API Key", + "a54d745d9a9249e2": "When enabled, the JSON object will override the Anthropic request body. Duplicate fields are determined by this field.", "a55a88237df85d98": "Currently in Direct Mode", "a567bdaa11367f26": "Medium", "a5f1bd344c92e195": "The API key required to call this model service.", @@ -123,25 +152,32 @@ "ad79540418be700a": "Open the settings folder, or manage model settings separately", "ae5a738238463a92": "Hide API Key", "aed55419ce62f08e": "Switching...", + "b10041a13f5c55b1": "Model Output: {0} × ${1}/1M = {2}", "b1c27820fec23edb": "High", "b42049dcf8a05ef7": "Switched to Local Service Mode", + "b5409d4049286061": "Custom Path (Please enter the full request URL)", "b571037dc396a00c": "Total request tokens include both prompt and model output.", "b765005f69fa971f": "e.g. gpt-4.1", + "b76a22622020f849": "Select interface protocol endpoint. When selecting 'Custom Path', please enter the complete request URL in the API address bar (including the /chat/completions or /responses suffix). The system will automatically detect the protocol type based on the trailing segment.", + "b870928f8f9a24c4": "API Endpoint", "b90a8ac9c488ce46": "Select language", + "ba3c66f90fd11725": "System proxy identified", "ba40014ff496f64e": "Type", "bb074b86a98f6911": "Context Window", - "bbacfde55a92869f": "A higher hit rate means more repeated context is being reused.", "bc87a4121a0873b3": "Refresh Stats", "bd4464ea88d3f24a": "Total turns: {0}", + "bddd504af0c92fd0": "System PAC/automatic proxy detected; current version is handled as a direct connection", "bef280f9eb392495": "Conversation Turns", "c228558cf257fc49": "Delete failed", "c3e9c3c60020b8b7": "Select Mode", + "c5af02060847d167": "Thinking effort for Anthropic adaptive thinking. Requests will consistently use the new thinking.type=adaptive.", "c69f5bce63b9f14c": "Settings Folder", - "c6f743953145f40b": "e.g. 4096 (leave blank to use the default)", "c8c14507b2d37395": "Reasoning Effort", "c98e118e0a43f078": "Model", + "c9dd59beefd7144f": "Cache Read / (Cache Read + Non-cache Input)", "ca00a39fcea70dc6": "Starting...", "ca1d1059408b3837": "Invalid turns: {0}", + "cd7ca5fb221e1c53": "{0} cannot be empty", "ce46f23cea3bf3c5": "When enabled, Cursor connects directly to the official service. Do not enable this.", "d0325067fed88e5a": "Cache hit rate {0}", "d08fd4224abcd69d": "Switch failed", @@ -151,26 +187,35 @@ "d3209b935ae86797": "Model settings not found; cannot delete", "d373809ab86ba93b": "Copy", "d3b1da3088ddd334": "Model test failed", + "d53d32f1a1211371": "Custom Headers JSON", + "d7889896c5b7732a": "Anthropic Extra Params JSON", "d7da2aabd35772ec": "e.g. 200000 (leave blank to use the default)", + "d95e5cb6bdcee553": "Include Cache Creation", "da590a8fe3ce4de0": "Please select", "daede9881787abe7": "Notes", "dbb4b5be9b5723dc": "{0} reasoning effort only supports low, medium, high, xhigh, and max", "dbee6e7139243362": "{0} base URL cannot be empty", "dc82c5e8fb2ab777": "Version: v{0}", "de8184da1ef88d03": "Configured", + "e01c5dae36cf8c35": "When enabled, the JSON object will override the OpenAI request body. Duplicate fields are determined by this field. OpenAI service_tier supports auto, default, flex, scale, priority.", "e14c41ef2b7253c9": "Total request tokens: {0}", "e406825e0a72d2c2": "Local Settings", "e552c2accdbf5178": "Add Model", "e6faccfddce722e8": "Cache read tokens: {0}", "eaffd48cd2ea9f1a": "e.g. https://api.anthropic.com", + "eb1be07f2ca6e506": "Estimated based on Claude Opus 4.7 pricing.", "ec3b17a75db49e24": "{0} t/s | First token {1}", "ec99e5c45d648fd6": "Update failed", + "ee95057c6b0335d2": "Current outbound requests use system proxy: {0}", "f1e0fc261d42fe29": "Notes shown when hovering over the model list.", "f363622480699c52": "Reasoning effort only applies to some models that support reasoning_effort. Not all models do. Higher values are usually more stable, but may also be slower.", "f3a76d896853c1df": "Miss", + "f3fae6cccb9004b1": "Custom header name cannot be empty", "f474a4108aba4c4c": "Stop Service", + "f4f0ead1116b5b62": "Enable", "f56c6c82203b33f6": "Notice", "f61e03f047b786d5": "{0} max output tokens must be a positive integer", + "f6e1c8b1a6970db5": "Current outbound requests do not use system proxy", "fac2a67ad87807c4": "OK", "fb7a4c81729ed0ca": "Stopping...", "fec45092945f8790": "User Guide" diff --git a/frontend/src/i18n/locales/ja-JP.json b/frontend/src/i18n/locales/ja-JP.json index d4eb405..ab838d6 100644 --- a/frontend/src/i18n/locales/ja-JP.json +++ b/frontend/src/i18n/locales/ja-JP.json @@ -2,7 +2,6 @@ "02216368edc68816": "更新内容はありません", "02bc2e95bf49e587": "まだ", "03b11112dc970014": "ベース URL", - "045261cc748d4300": "Anthropic の思考フェーズで使用できる予算 Token 数。空欄の場合はデフォルト値を使用します。", "047ec6b71d0cec08": "ホワイトリストのメイン経路のリクエストをローカルサービス経由にするか、元の Cursor 上流アドレスに戻すかを制御します", "04f632dd4f034d5e": "{0} のコンテキストウィンドウは正の整数である必要があります", "051836569928a9f9": "編集", @@ -10,32 +9,35 @@ "05c8a9238c702efa": "Cursor 直結モード", "0647728439b5da2e": "ルーティングモードとモデルチャネルを設定できます。実行ログは次にあります", "092b520558eff5f2": "未テスト", + "09ebc2643631ba25": "価値見積もり", "0b0e7478e41fe677": "{0} のツールチップは必須です", "0c3b4cf7aa259edb": "操作に失敗しました", "0dde813d719dbd01": "ホームページを開けませんでした", - "0e40a09ab4e664ab": "モデルチャネルが重複しています。url、modelID、apiKey、displayName の組み合わせを確認してください", "1117a2f86030d03b": "キャッシュの読み書きは Prompt 側の統計に含まれます。", "11afd2a534395b18": "有効", "124be3f86f197802": "Token 使用量", "13b61c5f697b6700": "キャッシュヒット率", "15d124b200ddabed": "モデルが1回のリクエストで受け取れる最大コンテキスト Token 数。空欄の場合はデフォルト値を使用します。", + "185aebe19c77425d": "{0}はJSONオブジェクトである必要があります", "18b7312022cd1840": "サービスを開始", "1af38868896cf53d": "ルーティングモードは local または upstream のみサポートします", + "1baddde657dd2720": "現在のアウトバウンドリクエストはシステムプロキシを使用しています", "1bc77f5ab979f4c1": "モデル設定を追加", "1e238093b79b3165": "空欄で 65536", + "21296ab18ad9af25": "追加パラメータ JSON", "24343a2096988d42": "開けませんでした", "253d4a3428c648fb": "キャッシュ書き込み Token: {0}", - "258e4620e2108793": "空欄で 4096", "26a3855aed1d8d17": "サービスは起動していません", "281eb6d08c9960d0": "{0} の思考予算 Token は正の整数である必要があります", "28aeffc70ceb4267": "この画面の表示言語を切り替えます。設定はすぐに反映され、この端末に保存されます", - "2caeaec539e78898": "思考予算 Token", "2cd0f3be8738a86c": "キャンセル", "2d706f7981b45a7b": "ローカル設定を保存しました", "2f9daa828907b93f": "削除", "30bb57a50caedc38": "例: 日常的なコード補完や Q&A 用", + "3275d7e70bbdc3d5": "{0} の {1}", "32b3c9a50003f77a": "出力 Token は推定値です", "33d2d273e2bd5f88": "ユーザーガイドを開けませんでした", + "3463c5585c246df9": "合計:{0}", "3468b57e3edbc599": "履歴からスキャンした各ターンの summary を集計しています。", "35076178fe79a210": "設定が変更されました。再テストしてください", "36c149a9b3e8dca0": "モデルは設定されていません。", @@ -49,70 +51,97 @@ "3ea83f9f55062582": "公開日時: {0}", "3edda85621fd03b2": "件のモデルアダプター", "42aa8e01e98c0d8c": "総所要時間", + "438bb77c1ecdfab0": "キャッシュ書き込み:{0} × ${1}/1M = {2}", + "46056425a48ef05b": "現在、再利用率の定義に従って表示されています", "468adaa418ee1475": "例: https://api.openai.com/v1", + "472642d58d3d5a6d": "数式:{0}", "4923eeb7bd75cccd": "{0} のモデル ID は必須です", "497c85690c4cc0fc": "データなし", - "4b8d11bf235e9213": "現在のヒット率: {0}", + "4c0a929bb86ce912": "現在:{0}", + "4d2b6e53be6002e5": "キャッシュ統計ポリシー:{0}({1})", "4d8c1c5b42830791": "不明", + "4f0982ba1d37e51b": "現在のアウトバウンドリクエストは環境変数プロキシを使用しています", "51194c3ad014fb29": "再テストが必要", "5205125c0e91d346": "Anthropic モデルが1回の応答で生成できる最大 Token 数。空欄の場合はデフォルト値を使用します。", "56627c94a9decee6": "最大出力 Token", + "593a972852ba0004": "Cursor アシスタント | 永久無料 | カスタム API", + "59a2195a01a8b35b": "{0}は有効なJSONオブジェクトである必要があります", + "5aa8f5590c940829": "非キャッシュ入力:{0}", "5beb1206c532729f": "1回の応答で生成できる最大 Token 数。空欄の場合はデフォルト値を使用します。", "5d1687a4a41883fd": "停止中...", + "5e709712ce012f5d": "現在のアウトバウンドリクエストは環境変数プロキシを使用しています:{0}", "6106f0a12583a334": "再読み込みに失敗しました", "62873083fcaed27d": "セッション統計", "6309a3bb5ba4c714": "保存に失敗しました", "636e3deffc1e960a": "モデル {0}", "63d90d977348ab1f": "複製", + "64857b4338678314": "カスタムヘッダー {0} の値は文字列である必要があります", "64d2730f2ae37997": "生のレスポンス", "65cc5fd2e6ce6e75": "バックエンドは起動済み、プロキシは未起動です", "66af574b8948fe83": "{0} の API キーは必須です", + "6744b4c6a9aa0038": "無効化", "675109292da4eb36": "まだテストしていません", "699fe7ade5407687": "直結モード", "6a7b96f399e58138": "例: sk-xxxxxx", "6aa8f49cc992dfd7": "テスト", "6ae23d6d7cb18592": "サービスエラー", + "6d7872164df9b36e": "通常入力:{0} × ${1}/1M = {2}", "6e584e3d5ce64aa0": "設定を保存", + "6ec87609a8769425": "デフォルト {0} / 作成カウント {1}", + "72f6c3525c0192a7": "有効にすると、キャッシュ作成が分母に含まれます", "737225e2904673fc": "推定出力 Token: {0}", "7520bd50a5ee5471": "テスト停止 {0}/{1}", "753d8bb0da9913ce": "複製に失敗しました", + "774d6e1b7cb89751": "デフォルト定義", "77c9e582e85583af": "テスト失敗", "7a26bf794e9fb6bf": "UI 上の表示専用で、異なるモデルを見分けやすくします。", "7b6187c41e88b70c": "テスト中...", "7bf8e2c07e084d09": "モデル編集", + "7df7641e5e741346": "キャッシュ読み取り / (キャッシュ読み取り + キャッシュ作成 + 非キャッシュ入力)", "7e9e334aeb0bdc07": "サービス操作に失敗しました", "7f68ebad19ba6bcd": "アップデートを確認", + "80296f4aa3f4543b": "キャッシュ読み書き", "81123c56d5d880d0": "API キー", + "8139cb3dd11f5a67": "有効にすると、JSONオブジェクトが最終的なリクエストヘッダーを上書きします。同名のヘッダーはこの設定が優先され、値は文字列である必要があります。", "8672864e90417138": "最大", "86df7ec743047234": "サービス稼働中", "87ed126f7bd1121e": "ルーティングモード", "899add6275682210": "空欄で 200000", + "8a4ef3e48e4e8a5a": "有効", "8c0d84831a3c3d5b": "現在はローカルサービスモードです", "8c1935935600e336": "モデルテスト", "8cbcf741e727dbf7": "モデル設定", "8d1de152be6360ce": "有効率: {0}", "8e2dc7b0d2e8f6f8": "例: OpenAI - GPT-4.1", "8f6f8d979c981ced": "コピーしました", + "8f8baf5d18dd0492": "有効にすると、JSONオブジェクトがOpenAIのリクエストボディを上書きします。同名のフィールドはこの設定が優先されます。OpenAIのservice_tierはauto、default、flex、scale、priorityをサポートしており、priorityは高優先度/Fastのシナリオで使用できます。", "8faa670b512b6b9b": "モデル設定を開く", + "907395551d0f3a93": "{0} のOpenAIエンドポイントは、/v1/responses、/v1/chat/completions、または / で始まるカスタムパスのみをサポートしています", "917b1c1f18d0276b": "保存中...", "9196835e388d2550": "すべてテスト", "91cba5c107a51892": "/ 異常", "92059fe6cd713db4": "実際にサーバーへ送信されるモデル名です。例: gpt-4.1 または claude-sonnet。", "93e08803675e378b": "モデル ID", "942ff2d88baca0c6": "アップデートを確認中...", + "970388573a3c88c9": "キャッシュ読み取り:{0} × ${1}/1M = {2}", + "9730c15f3c1963a1": "最大", "986678eccf56dc28": "サービス状態を更新中です。しばらくしてからもう一度お試しください", - "991e374fce0f4492": "Cursorアシスタント", "9970736b36ff2b68": "モデルサービスの API ルート URL。通常は OpenAI または Anthropic 互換のエンドポイントです。", + "9a6e7d6c17471711": "現在、デフォルトのヒット率定義に従って表示されています", "9b17fa889b307f7f": "有効ターン: {0}", "9c38b6e9bf94abec": "Cursor 直結モードに切り替えました", - "9cd4ac17428b86e4": "キャッシュヒット率 = キャッシュ読込 Token / Prompt Token", + "9c41b3a9e12ac994": "思考強度", "9d2ca261281a158a": "後で", + "9d2fb46c0ba890b9": "カスタムパス", "9dc0825fba5422e4": "読み込み中...", + "9e02529bcaef36c6": "モデルチャネルが重複しています。url、modelID、apiKey、displayName、endpointの組み合わせを確認してください", "a026f37e613cf48b": "出力 Token", + "a0d36236c523667c": "{0} のAnthropic思考強度はlow、medium、high、xhigh、maxのみをサポートしています", "a1a038dfa16c3ede": "すでに最新バージョンです(v{0})。", "a3030bf8f16dc63c": "保存", "a325d25c69e7256d": "モデル設定が存在しないため複製できません", "a4dd8bb7e8b6eb31": "API キーを表示", + "a54d745d9a9249e2": "有効にすると、JSONオブジェクトがAnthropicのリクエストボディを上書きします。同名のフィールドはこの設定が優先されます。", "a55a88237df85d98": "現在は直結モードです", "a567bdaa11367f26": "中", "a5f1bd344c92e195": "このモデルサービスを呼び出すために必要な API キーです。", @@ -123,25 +152,32 @@ "ad79540418be700a": "設定フォルダーを開くか、モデル設定を個別に管理できます", "ae5a738238463a92": "API キーを隠す", "aed55419ce62f08e": "切替中...", + "b10041a13f5c55b1": "モデル出力:{0} × ${1}/1M = {2}", "b1c27820fec23edb": "高", "b42049dcf8a05ef7": "ローカルサービスモードに切り替えました", + "b5409d4049286061": "カスタムパス(完全なリクエストURLを入力してください)", "b571037dc396a00c": "総リクエスト Token には Prompt とモデル出力の両方が含まれます。", "b765005f69fa971f": "例: gpt-4.1", + "b76a22622020f849": "インターフェースプロトコルのエンドポイントを選択します。「カスタムパス」を選択する場合は、APIアドレスバーに完全なリクエストURL(/chat/completions または /responses のサフィックスを含む)を入力してください。システムは末尾 of セグメントに基づいてプロトコルタイプを自動的に判断します。", + "b870928f8f9a24c4": "APIエンドポイント", "b90a8ac9c488ce46": "言語を選択", + "ba3c66f90fd11725": "システムプロキシを認識しました", "ba40014ff496f64e": "タイプ", "bb074b86a98f6911": "コンテキストウィンドウ", - "bbacfde55a92869f": "ヒット率が高いほど、重複するコンテキストがより多く再利用されていることを示します。", "bc87a4121a0873b3": "統計を更新", "bd4464ea88d3f24a": "総ターン: {0}", + "bddd504af0c92fd0": "システムのPAC/自動プロキシが検出されました。現在のバージョンは直接接続として処理されます", "bef280f9eb392495": "会話ターン", "c228558cf257fc49": "削除に失敗しました", "c3e9c3c60020b8b7": "モードを選択", + "c5af02060847d167": "Anthropic adaptive thinkingの思考強度。リクエストは一貫して新しいthinking.type=adaptiveを使用します。", "c69f5bce63b9f14c": "設定フォルダー", - "c6f743953145f40b": "例: 4096(空欄でデフォルト値)", "c8c14507b2d37395": "推論強度", "c98e118e0a43f078": "モデル", + "c9dd59beefd7144f": "キャッシュ読み取り / (キャッシュ読み取り + 非キャッシュ入力)", "ca00a39fcea70dc6": "起動中...", "ca1d1059408b3837": "異常ターン: {0}", + "cd7ca5fb221e1c53": "{0}は空にできません", "ce46f23cea3bf3c5": "有効にすると、Cursor は公式サービスへ直接接続します。オンにしないでください", "d0325067fed88e5a": "キャッシュヒット率 {0}", "d08fd4224abcd69d": "切替に失敗しました", @@ -151,27 +187,37 @@ "d3209b935ae86797": "モデル設定が存在しないため削除できません", "d373809ab86ba93b": "コピー", "d3b1da3088ddd334": "モデルテストに失敗しました", + "d53d32f1a1211371": "カスタムヘッダー JSON", + "d7889896c5b7732a": "Anthropic 追加パラメータ JSON", "d7da2aabd35772ec": "例: 200000(空欄でデフォルト値)", + "d95e5cb6bdcee553": "キャッシュ作成を含める", "da590a8fe3ce4de0": "選択してください", "daede9881787abe7": "メモ", "dbb4b5be9b5723dc": "{0} の推論強度は low、medium、high、xhigh、max のみサポートします", "dbee6e7139243362": "{0} のベース URL は必須です", "dc82c5e8fb2ab777": "バージョン: v{0}", "de8184da1ef88d03": "設定済み", + "e01c5dae36cf8c35": "有効にすると、JSONオブジェクトがOpenAIのリクエストボディを上書きします。同名のフィールドはこの設定が優先されます。OpenAIのservice_tierはauto、default、flex、scale、priorityをサポートしています。", "e14c41ef2b7253c9": "総リクエスト Token: {0}", "e406825e0a72d2c2": "ローカル設定", "e552c2accdbf5178": "モデルを追加", "e6faccfddce722e8": "キャッシュ読込 Token: {0}", "eaffd48cd2ea9f1a": "例: https://api.anthropic.com", + "eb1be07f2ca6e506": "Claude Opus 4.7の価格に基づいて見積もられます。", "ec3b17a75db49e24": "{0} t/s | 初回 Token {1}", "ec99e5c45d648fd6": "アップデートに失敗しました", + "ee95057c6b0335d2": "現在のアウトバウンドリクエストはシステムプロキシを使用しています:{0}", "f1e0fc261d42fe29": "モデル一覧にホバーしたときに表示されるメモです。", "f363622480699c52": "推論強度は reasoning_effort をサポートする一部のモデルでのみ有効です。すべてのモデルが対応しているわけではありません。値が高いほど安定しやすい反面、遅くなることがあります。", "f3a76d896853c1df": "ミス", + "f3fae6cccb9004b1": "カスタムヘッダー名は空にできません", "f474a4108aba4c4c": "サービスを停止", + "f4f0ead1116b5b62": "有効化", "f56c6c82203b33f6": "お知らせ", "f61e03f047b786d5": "{0} の最大出力 Token は正の整数である必要があります", + "f6e1c8b1a6970db5": "現在のアウトバウンドリクエストはシステムプロキシを使用していません", "fac2a67ad87807c4": "OK", "fb7a4c81729ed0ca": "停止中...", + "a1a038dfa16c3ede": "すでに最新バージョン(v{0})です。", "fec45092945f8790": "ユーザーガイド" } diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.json index 786b8d2..e5ef91f 100644 --- a/frontend/src/i18n/locales/zh-CN.json +++ b/frontend/src/i18n/locales/zh-CN.json @@ -2,7 +2,6 @@ "02216368edc68816": "无更新说明", "02bc2e95bf49e587": "当前还没有配置任何", "03b11112dc970014": "接口地址", - "045261cc748d4300": "Anthropic 思考阶段允许消耗的预算 Token 数。留空时使用默认值。", "047ec6b71d0cec08": "控制白名单主链路请求走本地服务,还是回到原始 Cursor 上游地址", "04f632dd4f034d5e": "{0} 的上下文窗口必须为正整数", "051836569928a9f9": "编辑", @@ -10,32 +9,35 @@ "05c8a9238c702efa": "直连 Cursor 模式", "0647728439b5da2e": "可配置运行模式和模型渠道;运行日志位于", "092b520558eff5f2": "未测试", + "09ebc2643631ba25": "价值估算", "0b0e7478e41fe677": "{0} 的悬停提示不能为空", "0c3b4cf7aa259edb": "操作失败", "0dde813d719dbd01": "打开主页失败", - "0e40a09ab4e664ab": "模型渠道重复,请检查 url、modelID、apiKey、displayName 组合", "1117a2f86030d03b": "缓存读写已计入 Prompt 侧统计。", "11afd2a534395b18": "有效", "124be3f86f197802": "Token 消耗", "13b61c5f697b6700": "缓存命中率", "15d124b200ddabed": "模型单次可接受的最大上下文 Token 数。留空时使用默认值。", + "185aebe19c77425d": "{0}必须是 JSON 对象", "18b7312022cd1840": "启动服务", "1af38868896cf53d": "运行模式仅支持 local 或 upstream", + "1baddde657dd2720": "当前出站请求使用系统代理", "1bc77f5ab979f4c1": "新增模型配置", "1e238093b79b3165": "留空时默认 65536", + "21296ab18ad9af25": "额外参数 JSON", "24343a2096988d42": "打开失败", "253d4a3428c648fb": "缓存写入:{0}", - "258e4620e2108793": "留空时默认 4096", "26a3855aed1d8d17": "服务未启动", "281eb6d08c9960d0": "{0} 的思考预算 Token 必须为正整数", "28aeffc70ceb4267": "切换当前界面显示语言,设置会立即生效并保存在本机", - "2caeaec539e78898": "思考预算 Token", "2cd0f3be8738a86c": "取消", "2d706f7981b45a7b": "本地配置已保存", "2f9daa828907b93f": "删除", "30bb57a50caedc38": "例如:用于日常代码补全与问答", + "3275d7e70bbdc3d5": "{0} 的 {1}", "32b3c9a50003f77a": "输出 Token 为估算值", "33d2d273e2bd5f88": "打开使用教程失败", + "3463c5585c246df9": "合计:{0}", "3468b57e3edbc599": "按历史记录里扫描到的回合 summary 汇总。", "35076178fe79a210": "配置已变更,请重新测试", "36c149a9b3e8dca0": "模型。", @@ -49,70 +51,97 @@ "3ea83f9f55062582": "发布时间:{0}", "3edda85621fd03b2": "个模型适配器", "42aa8e01e98c0d8c": "总耗时", + "438bb77c1ecdfab0": "缓存写入:{0} × ${1}/1M = {2}", + "46056425a48ef05b": "当前按复用率口径显示", "468adaa418ee1475": "例如:https://api.openai.com/v1", + "472642d58d3d5a6d": "公式:{0}", "4923eeb7bd75cccd": "{0} 的模型标识不能为空", "497c85690c4cc0fc": "暂无数据", - "4b8d11bf235e9213": "当前命中率:{0}", + "4c0a929bb86ce912": "当前:{0}", + "4d2b6e53be6002e5": "缓存统计策略:{0}({1})", "4d8c1c5b42830791": "未知", + "4f0982ba1d37e51b": "当前出站请求使用环境变量代理", "51194c3ad014fb29": "需重测", "5205125c0e91d346": "Anthropic 模型单次回复允许生成的最大 Token 数。留空时使用默认值。", "56627c94a9decee6": "最大输出 Token", + "593a972852ba0004": "Cursor助手|永久免费|自定义API", + "59a2195a01a8b35b": "{0}必须是合法 JSON 对象", + "5aa8f5590c940829": "非缓存输入:{0}", "5beb1206c532729f": "单次回复允许生成的最大 Token 数。留空时使用默认值。", "5d1687a4a41883fd": "停止中...", + "5e709712ce012f5d": "当前出站请求使用环境变量代理:{0}", "6106f0a12583a334": "刷新失败", "62873083fcaed27d": "会话统计", "6309a3bb5ba4c714": "保存失败", "636e3deffc1e960a": "模型 {0}", "63d90d977348ab1f": "复制", + "64857b4338678314": "自定义请求头 {0} 的值必须是字符串", "64d2730f2ae37997": "原始返回", "65cc5fd2e6ce6e75": "后端已启动,代理未启动", "66af574b8948fe83": "{0} 的访问密钥不能为空", + "6744b4c6a9aa0038": "已关闭", "675109292da4eb36": "尚未测试", "699fe7ade5407687": "直连模式", "6a7b96f399e58138": "例如:sk-xxxxxx", "6aa8f49cc992dfd7": "测试", "6ae23d6d7cb18592": "服务错误", + "6d7872164df9b36e": "普通输入:{0} × ${1}/1M = {2}", "6e584e3d5ce64aa0": "保存配置", + "6ec87609a8769425": "默认 {0} / 计入创建 {1}", + "72f6c3525c0192a7": "开启后把缓存创建纳入分母", "737225e2904673fc": "输出推算:{0}", "7520bd50a5ee5471": "停止测试 {0}/{1}", "753d8bb0da9913ce": "复制失败", + "774d6e1b7cb89751": "默认口径", "77c9e582e85583af": "测试失败", "7a26bf794e9fb6bf": "仅用于界面展示,便于你区分不同模型。", "7b6187c41e88b70c": "测试中...", "7bf8e2c07e084d09": "模型编辑", + "7df7641e5e741346": "缓存读取 /(缓存读取 + 缓存创建 + 非缓存输入)", "7e9e334aeb0bdc07": "服务操作失败", "7f68ebad19ba6bcd": "检查更新", + "80296f4aa3f4543b": "缓存读写", "81123c56d5d880d0": "访问密钥", + "8139cb3dd11f5a67": "开启后会把 JSON 对象覆盖到最终请求头。同名请求头以这里为准,值必须是字符串。", "8672864e90417138": "最高", "86df7ec743047234": "服务运行中", "87ed126f7bd1121e": "运行模式", "899add6275682210": "留空时默认 200000", + "8a4ef3e48e4e8a5a": "已开启", "8c0d84831a3c3d5b": "当前为本地服务模式", "8c1935935600e336": "模型测试", "8cbcf741e727dbf7": "模型配置", "8d1de152be6360ce": "有效占比:{0}", "8e2dc7b0d2e8f6f8": "例如:OpenAI - GPT-4.1", "8f6f8d979c981ced": "已复制", + "8f8baf5d18dd0492": "开启后会把 JSON 对象覆盖到 OpenAI 请求体。同名字段以这里为准。OpenAI service_tier 支持 auto、default、flex、scale、priority;priority 可用于高优先级/Fast 类场景。", "8faa670b512b6b9b": "打开模型配置", + "907395551d0f3a93": "{0} 的 OpenAI 端点仅支持 /v1/responses、/v1/chat/completions 或以 / 开头的自定义路径", "917b1c1f18d0276b": "保存中...", "9196835e388d2550": "测试全部", "91cba5c107a51892": "/ 异常", "92059fe6cd713db4": "请求实际发送给服务端的模型名称,例如 gpt-4.1 或 claude-sonnet。", "93e08803675e378b": "模型标识", "942ff2d88baca0c6": "检查更新中...", + "970388573a3c88c9": "缓存读取:{0} × ${1}/1M = {2}", + "9730c15f3c1963a1": "最大", "986678eccf56dc28": "服务状态更新中,请稍后再试", - "991e374fce0f4492": "Cursor助手", "9970736b36ff2b68": "模型服务的 API 根地址,通常为兼容 OpenAI 或 Anthropic 的接口入口。", + "9a6e7d6c17471711": "当前按默认命中率口径显示", "9b17fa889b307f7f": "有效轮次:{0}", "9c38b6e9bf94abec": "已切换到直连 Cursor 模式", - "9cd4ac17428b86e4": "缓存命中率 = 缓存读取 Token / Prompt Token", + "9c41b3a9e12ac994": "思考强度", "9d2ca261281a158a": "稍后", + "9d2fb46c0ba890b9": "自定义路径", "9dc0825fba5422e4": "加载中...", + "9e02529bcaef36c6": "模型渠道重复,请检查 url、modelID、apiKey、displayName、endpoint 组合", "a026f37e613cf48b": "输出 Token", + "a0d36236c523667c": "{0} 的 Anthropic 思考强度仅支持 low、medium、high、xhigh、max", "a1a038dfa16c3ede": "当前已是最新版本(v{0})。", "a3030bf8f16dc63c": "保存", "a325d25c69e7256d": "模型配置不存在,无法复制", "a4dd8bb7e8b6eb31": "显示访问密钥", + "a54d745d9a9249e2": "开启后会把 JSON 对象覆盖到 Anthropic 请求体。同名字段以这里为准。", "a55a88237df85d98": "当前为直连模式", "a567bdaa11367f26": "中", "a5f1bd344c92e195": "调用该模型服务需要使用的访问密钥。", @@ -123,25 +152,32 @@ "ad79540418be700a": "打开设置目录,或单独管理模型配置", "ae5a738238463a92": "隐藏访问密钥", "aed55419ce62f08e": "切换中...", + "b10041a13f5c55b1": "模型输出:{0} × ${1}/1M = {2}", "b1c27820fec23edb": "高", "b42049dcf8a05ef7": "已切换到本地服务模式", + "b5409d4049286061": "自定义路径(请输入完整请求地址)", "b571037dc396a00c": "总请求 Token 包含 Prompt 和模型输出。", "b765005f69fa971f": "例如:gpt-4.1", + "b76a22622020f849": "选择接口协议端点。选“自定义路径”时,请在接口地址栏填写完整请求地址(含 /chat/completions 或 /responses 路径后缀),系统会根据末段自动判断协议形态。", + "b870928f8f9a24c4": "接口端点", "b90a8ac9c488ce46": "选择语言", + "ba3c66f90fd11725": "已识别系统代理", "ba40014ff496f64e": "类型", "bb074b86a98f6911": "上下文窗口", - "bbacfde55a92869f": "命中率越高,说明重复上下文复用得越多。", "bc87a4121a0873b3": "刷新统计", "bd4464ea88d3f24a": "总轮次:{0}", + "bddd504af0c92fd0": "检测到系统 PAC/自动代理,当前版本按直连处理", "bef280f9eb392495": "对话轮次", "c228558cf257fc49": "删除失败", "c3e9c3c60020b8b7": "选择模式", + "c5af02060847d167": "Anthropic adaptive thinking 的思考强度。请求会固定使用新版 thinking.type=adaptive。", "c69f5bce63b9f14c": "设置文件夹", - "c6f743953145f40b": "例如:4096(留空用默认值)", "c8c14507b2d37395": "推理强度", "c98e118e0a43f078": "模型", + "c9dd59beefd7144f": "缓存读取 /(缓存读取 + 非缓存输入)", "ca00a39fcea70dc6": "启动中...", "ca1d1059408b3837": "异常轮次:{0}", + "cd7ca5fb221e1c53": "{0}不能为空", "ce46f23cea3bf3c5": "开启后,Cursor将直接接通官方,请勿开启", "d0325067fed88e5a": "缓存命中率 {0}", "d08fd4224abcd69d": "切换失败", @@ -151,26 +187,35 @@ "d3209b935ae86797": "模型配置不存在,无法删除", "d373809ab86ba93b": "拷贝", "d3b1da3088ddd334": "模型测试失败", + "d53d32f1a1211371": "自定义请求头 JSON", + "d7889896c5b7732a": "Anthropic 额外参数 JSON", "d7da2aabd35772ec": "例如:200000(留空用默认值)", + "d95e5cb6bdcee553": "计入缓存创建", "da590a8fe3ce4de0": "请选择", "daede9881787abe7": "备注", "dbb4b5be9b5723dc": "{0} 的推理强度仅支持 low、medium、high、xhigh、max", "dbee6e7139243362": "{0} 的接口地址不能为空", "dc82c5e8fb2ab777": "版本:v{0}", "de8184da1ef88d03": "已配置", + "e01c5dae36cf8c35": "开启后会把 JSON 对象覆盖到 OpenAI 请求体。同名字段以这里为准。OpenAI service_tier 支持 auto、default、flex、scale、priority。", "e14c41ef2b7253c9": "总请求:{0}", "e406825e0a72d2c2": "本地配置", "e552c2accdbf5178": "新增模型", "e6faccfddce722e8": "缓存读取:{0}", "eaffd48cd2ea9f1a": "例如:https://api.anthropic.com", + "eb1be07f2ca6e506": "按 Claude Opus 4.7 价格估算。", "ec3b17a75db49e24": "{0} t/s | 首字 {1}", "ec99e5c45d648fd6": "更新失败", + "ee95057c6b0335d2": "当前出站请求使用系统代理:{0}", "f1e0fc261d42fe29": "模型列表 hover 时显示的备注说明。", "f363622480699c52": "推理强度仅对部分支持 reasoning_effort 的模型生效,并不是所有模型都支持。越高通常越稳,但也可能更慢。", "f3a76d896853c1df": "未命中", + "f3fae6cccb9004b1": "自定义请求头名称不能为空", "f474a4108aba4c4c": "关闭服务", + "f4f0ead1116b5b62": "启用", "f56c6c82203b33f6": "提示", "f61e03f047b786d5": "{0} 的最大输出 Token 必须为正整数", + "f6e1c8b1a6970db5": "当前出站请求未使用系统代理", "fac2a67ad87807c4": "确定", "fb7a4c81729ed0ca": "关闭中...", "fec45092945f8790": "使用教程" diff --git a/frontend/src/i18n/runtime.js b/frontend/src/i18n/runtime.js index 412ebcd..32facfc 100644 --- a/frontend/src/i18n/runtime.js +++ b/frontend/src/i18n/runtime.js @@ -1,4 +1,5 @@ import { computed, ref } from "vue"; +import { Events } from "@wailsio/runtime"; import { DEFAULT_LOCALE, LOCALE_OPTIONS, @@ -143,6 +144,7 @@ class LocalizedText extends String { const currentLocale = ref(resolveInitialLocale()); applyLocaleToDocument(currentLocale.value); +Events.Emit("locale:changed", currentLocale.value); const localizedCache = new Map(); @@ -155,6 +157,7 @@ export function setLocale(locale) { currentLocale.value = nextLocale; persistManualLocale(nextLocale); applyLocaleToDocument(nextLocale); + Events.Emit("locale:changed", nextLocale); return nextLocale; } diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index 2b44072..f1736dc 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -16,6 +16,7 @@ import { import { isWindows } from "@/utils/isWindows"; import { computed, onMounted, onUnmounted, ref } from "vue"; import { useRoute } from "vue-router"; +import { useLocale } from "@/i18n/runtime"; import Logo from "@/assets/logo.png"; const route = useRoute(); @@ -25,6 +26,30 @@ const title = computed(() => route.meta.title ?? "Cursor助手|永久免费| const directlyClose = computed(() => route.meta.directlyClose === true); const showFooter = computed(() => route.path === "/"); const footerAuthorInfo = ref(null); +const { locale } = useLocale(); + +const localizedAuthorInfo = computed(() => { + if (!footerAuthorInfo.value) return null; + if (locale.value === "zh-CN") { + return footerAuthorInfo.value; + } + if (locale.value === "ja-JP") { + return { + buttonText: "著者 leookun", + dialogTitle: "著者からのメッセージ", + dialogContent: "このソフトウェアは完全に無料です。もし料金を請求された場合は、詐欺の可能性が高いです。\n著者のホームページ https://space.bilibili.com/311706663/upload/video にアクセスして、更新情報や利用方法などを確認してください。", + dialogConfirmText: "ホームページへ", + dialogCancelText: "閉じる" + }; + } + return { + buttonText: "Author leookun", + dialogTitle: "Author's Message", + dialogContent: "This software is completely free. If you were charged, you were likely scammed.\nWelcome to visit the author's homepage at https://space.bilibili.com/311706663/upload/video\nto see more updates, sharing guides, and future content.", + dialogConfirmText: "Visit Homepage", + dialogCancelText: "Close" + }; +}); const usageDocsURL = "https://docs.leokun.cn"; let proxyStateTimer = null; const proxyStatePollIntervalMs = 10000; @@ -106,14 +131,14 @@ async function showActionError(title, error) { } async function handleOpenAuthorHome() { - if (!footerAuthorInfo.value) { + if (!localizedAuthorInfo.value) { return; } const confirmed = await showModal({ - title: footerAuthorInfo.value.dialogTitle, - content: footerAuthorInfo.value.dialogContent, - confirmText: footerAuthorInfo.value.dialogConfirmText, - cancelText: footerAuthorInfo.value.dialogCancelText, + title: localizedAuthorInfo.value.dialogTitle, + content: localizedAuthorInfo.value.dialogContent, + confirmText: localizedAuthorInfo.value.dialogConfirmText, + cancelText: localizedAuthorInfo.value.dialogCancelText, showCancel: true, }); if (!confirmed) { @@ -221,13 +246,13 @@ onUnmounted(() => { 使用教程
appState.updateState === "downloading"), footerBusy: computed(() => ["checking", "installing"].includes(appState.updateState)), @@ -1004,36 +1052,54 @@ export const updateViewState = reactive({ width: `${Math.max(0, Math.min(100, appState.updateProgressPercent || 0))}%`, })), promptTitle: computed(() => { + const locale = getLocale ? getLocale() : "zh-CN"; switch (appState.updatePromptKind) { case "ready": + if (locale === "en-US") return "New Version Available"; + if (locale === "ja-JP") return "新しいバージョンがあります"; return "发现新版本"; case "error": + if (locale === "en-US") return "Update Failed"; + if (locale === "ja-JP") return "アップデートに失敗しました"; return "更新失败"; default: + if (locale === "en-US") return "Check for Updates"; + if (locale === "ja-JP") return "アップデートを確認"; return "检查更新"; } }), promptContent: computed(() => { switch (appState.updatePromptKind) { case "ready": - return [ - `版本:v${appState.updateVersion || appState.appVersion || "..."}`, - `发布时间:${formatReleaseDate(appState.updateReleaseDate)}`, - "", - appState.updateReleaseNotes || "无更新说明", - ].join("\n"); + return localizeReadyContent(); case "error": - return appState.updateError || appState.updateMessage || GENERIC_SERVICE_ERROR; + return appState.updateError || localizeUpdateMessage(appState.updateMessage) || GENERIC_SERVICE_ERROR; default: - return appState.updateMessage || `当前已是最新版本(v${appState.appVersion || "..."})。`; + return localizeUpdateMessage(appState.updateMessage) || localizeUpdateMessage(`当前已是最新版本(v${appState.appVersion || "..."})。`); } }), - promptConfirmText: computed(() => - appState.updatePromptKind === "ready" ? "立即重启更新" : "确定", - ), - promptCancelText: computed(() => - appState.updatePromptKind === "ready" ? "稍后" : "取消", - ), + promptConfirmText: computed(() => { + const locale = getLocale ? getLocale() : "zh-CN"; + if (appState.updatePromptKind === "ready") { + if (locale === "en-US") return "Restart to Update"; + if (locale === "ja-JP") return "再起動して更新"; + return "立即重启更新"; + } + if (locale === "en-US") return "OK"; + if (locale === "ja-JP") return "OK"; + return "确定"; + }), + promptCancelText: computed(() => { + const locale = getLocale ? getLocale() : "zh-CN"; + if (appState.updatePromptKind === "ready") { + if (locale === "en-US") return "Later"; + if (locale === "ja-JP") return "後で"; + return "稍后"; + } + if (locale === "en-US") return "Cancel"; + if (locale === "ja-JP") return "キャンセル"; + return "取消"; + }), promptShowCancel: computed(() => appState.updatePromptKind === "ready"), }); diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 52d701d..150eaea 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -6,6 +6,7 @@ import HomeMetricsCard from "@/components/HomeMetricsCard.vue"; import { useMessage } from "@/composables/useMessage"; import { showModal } from "@/composables/useModal"; import { getAdRuntime } from "@/services/clientApi"; +import { useLocale } from "@/i18n/runtime"; import { appState, appViewState, @@ -42,7 +43,12 @@ function asBoolean(value) { return value === true || value === "true" || value === 1 || value === "1"; } +const { locale } = useLocale(); + const homeAds = computed(() => { + if (locale.value !== "zh-CN") { + return []; + } const runtime = adRuntime.value && typeof adRuntime.value === "object" ? adRuntime.value : {}; const slots = Array.isArray(runtime.slots) && runtime.slots.length > 0 ? runtime.slots : [runtime]; return slots