Merge branch 'sipeed:main' into main

This commit is contained in:
Tao 2026-02-10 16:09:20 +08:00 committed by Tao
commit 5d328d7e1d
2 changed files with 0 additions and 72 deletions

View file

@ -1,72 +0,0 @@
# 修改日志
## 2026-02-10 - 将提示文本改为英文
### 修改内容
将大模型执行操作时的所有中文提示文本改为英文,提升国际化体验。
### 修改的文件
#### 1. pkg/agent/loop.go
修改所有流式事件的提示文本:
- ✅ `"开始处理请求..."``"Starting to process request..."`
- ✅ `"思考中... (迭代 %d/%d)"``"Thinking... (iteration %d/%d)"`
- ✅ `"执行工具: %s"``"Executing tool: %s"`
- ✅ `"工具 %s 完成"``"Tool %s completed"`
- ✅ `"处理完成"``"Processing complete"`
- ✅ `"内容生成完成"``"Content generation complete"`
- ✅ `"处理被中断"``"Processing interrupted"`
- ✅ `"用户中断"``"Interrupted by user"`
- ✅ `"LLM 调用失败"``"LLM call failed"`
#### 2. cmd/picoclaw/main.go
修改 CLI 的中断提示:
- ✅ `"中断处理中..."``"Interrupting..."`
- ✅ `"已中断"``"Interrupted"`
#### 3. pkg/channels/telegram.go
修改 Telegram 状态消息:
- ✅ `"执行工具: %s"``"Executing tool: %s"`
- ✅ `"工具 %s 完成"``"Tool %s completed"`
### 效果对比
#### 修改前
```
🦞 You: 帮我搜索天气
🦞 💭 开始处理请求...
🦞 ⏳ 思考中... (迭代 1/20)
🦞 🔧 执行工具: web_search
🦞 ✓ 工具 web_search 完成
```
#### 修改后
```
🦞 You: Search for weather
🦞 💭 Starting to process request...
🦞 ⏳ Thinking... (iteration 1/20)
🦞 🔧 Executing tool: web_search
🦞 ✓ Tool web_search completed
```
### 测试结果
```bash
$ go build ./cmd/picoclaw
✅ 编译成功
$ go test ./pkg/bus -v
✅ 所有测试通过
```
### 影响范围
- ✅ CLI 交互模式
- ✅ Telegram Bot
- ✅ 流式事件系统
- ✅ 错误提示信息
### 向后兼容
完全兼容,仅修改显示文本,不影响功能逻辑。
---
**修改人**: OpenCode Assistant
**日期**: 2026-02-10

BIN
picoclaw

Binary file not shown.