feat: 实现 LLM 文言文摘要生成,优化 Session 创建逻辑
Some checks failed
Release / build (push) Failing after 3h11m18s

This commit is contained in:
2026-04-27 08:58:08 +08:00
parent f41aa8b453
commit 124b0baa26
7 changed files with 126 additions and 24 deletions

View File

@@ -98,9 +98,10 @@
- 实现向量生成和相似度检索
4. **会话管理**
- 自动创建 Session首次输入时
- 手动创建(/new 命令)
- 消息摘要生成
- 自动创建 Session首次输入聊天消息时)
- 手动创建(/new 命令,只是重置 currentSession
- LLM 生成摘要(文言文风格)
- summary_timeout 配置(默认 30 秒)
5. **UI 优化**
- 合并状态显示到单行
@@ -112,7 +113,7 @@
- 合并到 hxclaw 的会话摘要上下文
- AI 同时看到长期记忆和会话摘要
5. **JSON 导出**
7. **JSON 导出**
- 退出时自动导出
- 手动导出
@@ -147,6 +148,21 @@ tts:
enabled: false # 全局开关(默认关闭)
port: 9876 # mimo-tts daemon 端口
auto: true # AI 回复后自动朗读
# 聊天记忆体配置
memory:
enabled: true # 启用开关
auto_session: true # 自动创建 Session
auto_export: true # 退出时自动导出
summary_timeout: 30 # 摘要生成超时(秒)
vector:
api_key: "" # 硅基流动 API Key
base_url: "https://api.siliconflow.cn/v1"
model: "BAAI/bge-m3"
recall:
keywords: ["之前", "聊过", "记得"]
auto_recall: true
similarity_threshold: 0.7
```
配置加载优先级: