From ac82135deee58d02f481b5cda41d566a224ffd10 Mon Sep 17 00:00:00 2001 From: KimiSwitch Dev Date: Sun, 4 Oct 2026 00:59:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(settings):=20=E9=80=82=E9=85=8D=20kimi-cod?= =?UTF-8?q?e=20=E6=96=B0=E5=A2=9E=20auto=5Fsession=5Ftitle=20/=20repeat=5F?= =?UTF-8?q?breaker=20=E9=A1=B6=E5=B1=82=E5=BC=80=E5=85=B3=EF=BC=9B?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E8=BE=93=E5=87=BA=E6=9C=AA=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E5=9B=9E=E5=A1=AB=20131072=EF=BC=9Bwatch=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E4=BF=AE=E6=AD=A3=20=E2=80=94=20bump=20to=20v0.8.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 包含未发布的 ef6749b / 24cb04b / 977f433 三个提交,官网同步更新至 v0.8.1 --- CHANGELOG.md | 7 +++++ docs/release-notes/release-notes-v0.8.1.md | 17 ++++++++++++ package.json | 2 +- public/models-dev.json | 31 +++++++++++----------- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/lib/models-dev-full.json | 31 +++++++++++----------- src/lib/models-dev.json | 31 +++++++++++----------- website/index.html | 2 +- website/src/i18n.tsx | 18 +++++++++++++ website/src/sections/Download.tsx | 2 +- 12 files changed, 96 insertions(+), 51 deletions(-) create mode 100644 docs/release-notes/release-notes-v0.8.1.md diff --git a/CHANGELOG.md b/CHANGELOG.md index e7cd72f..2853a7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ --- +## v0.8.1 (2026-10-04) + +- **全局配置新增两个顶层开关**:自动生成会话标题(`auto_session_title`)与重复调用拦截(`repeat_breaker`),默认开启,关闭显式写 `false`、开启删键跟随上游默认(适配 kimi-code #3962 / #3995) +- **最大输出未匹配 models.dev 时回填默认值 131072**(128K 兜底,编辑页回填与获取模型列表预填同口径) +- **修复 `[watch] enabled` 默认值显示**:上游 #4015 已翻回默认开启,设置页同步修正 +- **「最大输出 Token」列名精简为「最大输出」**,描述对齐上游 #4091(留空即不发送输出上限) + ## v0.8.0 (2026-10-03) - **模型映射新增「最大输出 Token」列**:逐模型设置 `max_output_size`(写入 config.toml,留空用上游默认),models.dev 有 output 上限时显示可点击参考值一键填入;获取模型列表时自动预填 diff --git a/docs/release-notes/release-notes-v0.8.1.md b/docs/release-notes/release-notes-v0.8.1.md new file mode 100644 index 0000000..a08d42f --- /dev/null +++ b/docs/release-notes/release-notes-v0.8.1.md @@ -0,0 +1,17 @@ +# KimiSwitch v0.8.1 + +## 新功能 + +- **全局配置新增两个顶层开关**(适配 kimi-code 近期版本): + - **自动生成会话标题**(`auto_session_title`,上游 #3962):允许客户端自动生成会话标题,默认开启;关闭后显式写入 `false`,开启即删键跟随上游默认 + - **重复调用拦截**(`repeat_breaker`,上游 #3995):连续重复相同工具调用时提醒并强制停止,默认开启;可被环境变量 `KIMI_CODE_REPEAT_BREAKER` 覆盖 +- **最大输出未匹配时回填默认值 131072**(Kimi Code):打开供应商编辑页自动回填时,models.dev 未收录的模型按 128K(131072)兜底;「获取模型列表」新增模型同口径预填 + +## 修复 + +- **`[watch] enabled` 默认值修正为开启**:kimi-code #4015 已把文件监听默认值翻回开启(2.0.2 曾短暂默认关闭),设置页的开关显示默认值同步修正 +- **「最大输出 Token」列名精简为「最大输出」**;列描述修正为「留空则不发送输出上限」(对齐上游 #4091:未显式配置时不发送 `max_tokens`,避免严格服务栈如 bare vLLM 报 400) + +## 备注 + +- 前端 130 测试 / Rust 162 测试全量通过 diff --git a/package.json b/package.json index 1e5e351..45444c5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "kimiswitch", "private": true, - "version": "0.8.0", + "version": "0.8.1", "type": "module", "scripts": { "dev": "vite", diff --git a/public/models-dev.json b/public/models-dev.json index 6fa06d8..c214178 100644 --- a/public/models-dev.json +++ b/public/models-dev.json @@ -23338,9 +23338,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.13, - "output": 0.53, - "cache_read": 0.033 + "input": 0.0825, + "output": 0.33, + "cache_read": 0.020625 } }, "kilo/tencent/hy-mt2-7b": { @@ -23361,9 +23361,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.834, - "output": 2.501, - "cache_read": 0.042 + "input": 0.7506, + "output": 2.2509, + "cache_read": 0.0378 } }, "kilo/anthracite-org/magnum-v4-72b": { @@ -25260,9 +25260,10 @@ "image": true, "video": true, "cost": { - "input": 0.99, - "output": 13, - "cache_read": 0.8 + "input": 3, + "output": 15, + "cache_read": 0.3, + "cache_write": 3.75 } }, "kilo/moonshotai/kimi-k2.6": { @@ -35356,9 +35357,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.132, - "output": 0.528, - "cache_read": 0.033 + "input": 0.0825, + "output": 0.33, + "cache_read": 0.020625 } }, "openrouter/tencent/hy-mt2-7b": { @@ -35379,9 +35380,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.834, - "output": 2.501, - "cache_read": 0.042 + "input": 0.7506, + "output": 2.2509, + "cache_read": 0.0378 } }, "openrouter/anthracite-org/magnum-v4-72b": { diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 91d0b2f..8d2fac6 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1978,7 +1978,7 @@ dependencies = [ [[package]] name = "kimiswitch" -version = "0.8.0" +version = "0.8.1" dependencies = [ "anyhow", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 48c8136..69a6aaa 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kimiswitch" -version = "0.8.0" +version = "0.8.1" description = "Kimi Switch - model config manager" authors = ["codingplan.site"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8a15594..7b3c2e8 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "productName": "Kimi Switch", - "version": "0.8.0", + "version": "0.8.1", "identifier": "com.kimiswitch.app", "build": { "beforeDevCommand": "npm run dev", diff --git a/src/lib/models-dev-full.json b/src/lib/models-dev-full.json index e391faf..c85643a 100644 --- a/src/lib/models-dev-full.json +++ b/src/lib/models-dev-full.json @@ -26175,9 +26175,9 @@ "id": "tencent/hy3", "name": "Hy3", "cost": { - "input": 0.13, - "output": 0.53, - "cache_read": 0.033 + "input": 0.0825, + "output": 0.33, + "cache_read": 0.020625 }, "context": 262144, "input_limit": 192000, @@ -26201,9 +26201,9 @@ "id": "tencent/hy4-preview", "name": "Hy4 preview", "cost": { - "input": 0.834, - "output": 2.501, - "cache_read": 0.042 + "input": 0.7506, + "output": 2.2509, + "cache_read": 0.0378 }, "context": 1048576, "output_limit": 64000, @@ -28245,9 +28245,10 @@ "id": "moonshotai/kimi-k3", "name": "Kimi K3", "cost": { - "input": 0.99, - "output": 13, - "cache_read": 0.8 + "input": 3, + "output": 15, + "cache_read": 0.3, + "cache_write": 3.75 }, "context": 1048576, "output_limit": 943718, @@ -39344,9 +39345,9 @@ "id": "tencent/hy3", "name": "Hy3", "cost": { - "input": 0.132, - "output": 0.528, - "cache_read": 0.033 + "input": 0.0825, + "output": 0.33, + "cache_read": 0.020625 }, "context": 262144, "input_limit": 192000, @@ -39370,9 +39371,9 @@ "id": "tencent/hy4-preview", "name": "Hy4 preview", "cost": { - "input": 0.834, - "output": 2.501, - "cache_read": 0.042 + "input": 0.7506, + "output": 2.2509, + "cache_read": 0.0378 }, "context": 1048576, "output_limit": 64000, diff --git a/src/lib/models-dev.json b/src/lib/models-dev.json index 6fa06d8..c214178 100644 --- a/src/lib/models-dev.json +++ b/src/lib/models-dev.json @@ -23338,9 +23338,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.13, - "output": 0.53, - "cache_read": 0.033 + "input": 0.0825, + "output": 0.33, + "cache_read": 0.020625 } }, "kilo/tencent/hy-mt2-7b": { @@ -23361,9 +23361,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.834, - "output": 2.501, - "cache_read": 0.042 + "input": 0.7506, + "output": 2.2509, + "cache_read": 0.0378 } }, "kilo/anthracite-org/magnum-v4-72b": { @@ -25260,9 +25260,10 @@ "image": true, "video": true, "cost": { - "input": 0.99, - "output": 13, - "cache_read": 0.8 + "input": 3, + "output": 15, + "cache_read": 0.3, + "cache_write": 3.75 } }, "kilo/moonshotai/kimi-k2.6": { @@ -35356,9 +35357,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.132, - "output": 0.528, - "cache_read": 0.033 + "input": 0.0825, + "output": 0.33, + "cache_read": 0.020625 } }, "openrouter/tencent/hy-mt2-7b": { @@ -35379,9 +35380,9 @@ "tool_call": true, "structured_output": true, "cost": { - "input": 0.834, - "output": 2.501, - "cache_read": 0.042 + "input": 0.7506, + "output": 2.2509, + "cache_read": 0.0378 } }, "openrouter/anthracite-org/magnum-v4-72b": { diff --git a/website/index.html b/website/index.html index c46c684..8cb07c1 100644 --- a/website/index.html +++ b/website/index.html @@ -50,7 +50,7 @@ "url": "https://billowliu2.github.io/KimiSwitch/", "applicationCategory": "DeveloperApplication", "operatingSystem": "Windows 10, Windows 11, macOS, Linux", - "softwareVersion": "0.8.0", + "softwareVersion": "0.8.1", "dateModified": "2026-09-03", "description": "桌面端 LLM 供应商配置管理器:22 个预设选好即写入 config.toml,用量与账单直读各厂商官方接口。Tauri + Rust,开源 MIT。", "downloadUrl": "https://github.com/billowliu2/KimiSwitch/releases", diff --git a/website/src/i18n.tsx b/website/src/i18n.tsx index 1750ad6..9056405 100644 --- a/website/src/i18n.tsx +++ b/website/src/i18n.tsx @@ -140,6 +140,15 @@ const zh = { syncedNote: "数据已同步 GitHub Releases", fallbackNote: "内置版本记录", entries: [ + { + version: "v0.8.1", + date: "2026-10-04", + items: [ + "全局配置新增两个顶层开关:自动生成会话标题(auto_session_title)与重复调用拦截(repeat_breaker),默认开启", + "最大输出未匹配 models.dev 时回填默认值 131072(128K 兜底)", + "修复 [watch] enabled 默认值显示(上游 #4015 翻回默认开启);「最大输出」列描述对齐上游 #4091", + ], + }, { version: "v0.8.0", date: "2026-10-03", @@ -532,6 +541,15 @@ const en: Dict = { syncedNote: "Synced from GitHub Releases", fallbackNote: "Built-in release notes", entries: [ + { + version: "v0.8.1", + date: "2026-10-04", + items: [ + "Two new top-level switches in Global Settings: auto session title (auto_session_title) and repeat breaker (repeat_breaker), on by default", + "Max output backfills a 131072 (128K) default when models.dev has no match", + "Fixed the [watch] enabled default display (upstream #4015 flipped it back on); Max output column wording aligned with upstream #4091", + ], + }, { version: "v0.8.0", date: "2026-10-03", diff --git a/website/src/sections/Download.tsx b/website/src/sections/Download.tsx index 345792f..148f08e 100644 --- a/website/src/sections/Download.tsx +++ b/website/src/sections/Download.tsx @@ -8,7 +8,7 @@ const icons: Record = { linux: LinuxLogo, }; -const VERSION = "0.8.0"; +const VERSION = "0.8.1"; const GITHUB = "https://github.com/billowliu2/KimiSwitch"; const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releases"; const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;