Skip to content

Commit 4100798

Browse files
committed
release: v3.3.5 kimi toolchain and reasoning fixes
1 parent 5fe501a commit 4100798

7 files changed

Lines changed: 518 additions & 190 deletions

File tree

RELEASE_NOTES_v3.3.5.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Augment Proxy Manager v3.3.5 - Kimi 工具链闭环与标准 API reasoning 修复
2+
3+
## 核心结论
4+
5+
v3.3.5 集中修 Kimi / Moonshot 相关的两条主链:
6+
7+
- Kimi standard API (`https://api.moonshot.cn/v1/chat/completions`) continuation 历史回放缺失 `reasoning_content`
8+
- Kimi Coding Anthropic 兼容链上的 `tool_call_id` / `tool_result` / thinking 回放不完整
9+
10+
## 本次修复
11+
12+
### 1. Standard API `reasoning_content` 补齐
13+
- `assistant + tool_calls` 历史消息现在会从 `<think>...</think>` 中拆出 `reasoning_content`
14+
- replay `assistant` tool call 消息时,若只有 reasoning 无正文,会发送 `content: null`
15+
- 修复 Moonshot/Kimi continuation 第二轮因缺失 `reasoning_content` 返回 `400 invalid_request_error`
16+
17+
### 2. Kimi Coding / Anthropic 工具链闭环
18+
- `tool_result` 兼容读取 `tool_call_id` / `tool_use_id` / `id`
19+
- `tool_result` 补带 `tool_name`
20+
- 增加 tool turn adjacency stabilize,降低 `tool_use` / `tool_result` 错位
21+
- 保留带工具调用的空 assistant turn,避免误删合法历史
22+
23+
### 3. Thinking 历史回放
24+
- `kimi-anthropic` 历史中的 `<think>...</think>` 会回放为 Anthropic `thinking`
25+
- 若存在 `thought_signature`,会一并回放到 `signature`
26+
27+
## 验证结果
28+
29+
- `npm run compile` 通过
30+
- 针对 `splitReasoningContentFromText()` 的 smoke 通过
31+
- `augmentToOpenAIMessages()` / `augmentToAnthropicMessages()` 的工具链历史重建 smoke 通过
32+
33+
## 已知问题
34+
35+
- `api.kimi.com/coding/v1/messages` 需要有效的 Kimi Coding subscription;无效或过期 key 会返回 `401 authentication_error`
36+
- 标准 API 可能返回 `429 engine_overloaded_error`;这表示请求结构已通过校验,但上游引擎过载

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "augment-proxy-manager",
33
"displayName": "Augment Proxy Manager",
44
"description": "管理 Augment API 代理服务器,支持自定义 API 端点和多种 AI 供应商",
5-
"version": "3.3.4",
5+
"version": "3.3.5",
66
"publisher": "legna",
77
"repository": {
88
"type": "git",

readme.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
零注入 · 零登录 · 零配置
1010

11-
[![Version](https://img.shields.io/badge/version-3.3.4-blue.svg)](https://github.com/LegnaOS/VSC-Augment-Proxy-Manager)
11+
[![Version](https://img.shields.io/badge/version-3.3.5-blue.svg)](https://github.com/LegnaOS/VSC-Augment-Proxy-Manager)
1212
[![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-lightgrey.svg)]()
1313

1414
</div>
@@ -37,8 +37,9 @@ Augment 扩展 → 本地代理 (:8765) → 你的 AI 供应商 API
3737
| **DeepSeek** | Anthropic 兼容 | `deepseek-chat` |
3838
| **Google Gemini** | Google 原生 | `gemini-3-pro-preview` |
3939
| **OpenAI** | 原生 | `gpt-4` |
40-
| **GLM (智谱)** | OpenAI 兼容 | `glm-5` |
41-
| **Kimi (月之暗面)** | OpenAI 兼容 | `moonshot-v1-auto` |
40+
| **GLM (智谱)** | OpenAI 兼容 | `glm-4.7` |
41+
| **Kimi (月之暗面)** | OpenAI 兼容 | `kimi-k2.5` |
42+
| **Kimi Coding Plan** | Anthropic Messages 兼容 | `kimi-for-coding` |
4243
| **自定义** | Anthropic / OpenAI ||
4344

4445
## 快速开始
@@ -71,6 +72,8 @@ Augment 扩展 → 本地代理 (:8765) → 你的 AI 供应商 API
7172
- **协议转换层** — 代理统一承接 Augment 请求格式,并转换到 Anthropic / OpenAI / Google 等不同后端协议
7273
- **continuity 修复** — 保留原始 `chat_history`,压缩结果写入 `compressed_chat_history`,避免多步任务上下文被压坏
7374
- **状态端点最小实现**`/save-chat``/record-session-events``/record-user-events``/record-request-events``/context-canvas/list` 已从固定成功响应调整为最小状态实现
75+
- **Kimi 工具链兼容修复** — 补齐 `tool_call_id` / `tool_name` 映射,稳定 `tool_use ↔ tool_result` 邻接关系
76+
- **Kimi reasoning / thinking 回放修复** — continuation 历史中的 `<think>...</think>` 会被拆分并回放到 `reasoning_content` / `thinking`
7477
- **配置热更新** — 切换供应商或模型无需重启代理,实时生效
7578

7679
### 🔍 RAG 语义搜索
@@ -162,6 +165,14 @@ src/
162165

163166
## 更新日志
164167

168+
### v3.3.5 — Kimi 工具链闭环 + 标准 API reasoning 修复
169+
170+
- **Kimi standard API continuation**`assistant + tool_calls` 历史回放时补齐 `reasoning_content`,修复 Moonshot/Kimi 第二轮 continuation 直接 400 的问题
171+
- **Kimi Coding / Anthropic tool chain** — 补齐 `tool_call_id → tool_use_id``tool_name` 映射,修复 `tool_call_id is not found` / tool adjacency 错位
172+
- **timeline normalization** — 增加 turn merge / adjacency stabilize / forward-vs-reversed scoring,降低脏历史导致的工具链断裂概率
173+
- **thinking replay**`kimi-anthropic` 历史中的 `<think>...</think>``thought_signature` 现在会回放为 Anthropic `thinking` block
174+
- **known issues**`api.kimi.com/coding/v1/messages` 需要有效的 Kimi Coding subscription;标准 API 若遇到 `429 engine_overloaded_error` 属于上游容量问题,不是本地协议错误
175+
165176
### v3.3.4 — Continuity 修复 + 协议状态承接
166177

167178
- **continuation handling**`"..."` 按 continuation signal 处理,不再改写用户消息内容

0 commit comments

Comments
 (0)