feat: 实现 LLM 文言文摘要生成,优化 Session 创建逻辑
Some checks failed
Release / build (push) Failing after 3h11m18s
Some checks failed
Release / build (push) Failing after 3h11m18s
This commit is contained in:
24
agents.md
24
agents.md
@@ -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
|
||||
```
|
||||
|
||||
配置加载优先级:
|
||||
|
||||
Reference in New Issue
Block a user