Skip to content

Feature:增加记忆功能提示词自定义功能#752

Open
Pheobe-Southwood wants to merge 4 commits into
Chevey339:masterfrom
Pheobe-Southwood:feature/memory-record-prompt
Open

Feature:增加记忆功能提示词自定义功能#752
Pheobe-Southwood wants to merge 4 commits into
Chevey339:masterfrom
Pheobe-Southwood:feature/memory-record-prompt

Conversation

@Pheobe-Southwood

Copy link
Copy Markdown

概述

为 Assistant 模型增加了 memoryRecordPrompt 可自定义字段,允许用户自定义助手的记忆记录提示词。

变更内容

1. 模型层

  • 在 Assistant 模型中新增 memoryRecordPrompt 字段(含默认值),用于存储用户自定义的记忆记录提示词
  • 默认提示词包含敏感信息警告,提醒模型不应存储用户的敏感个人信息

2. UI 层

  • 将 _MemoryTab 从 StatelessWidget 转换为 StatefulWidget
  • 新增记忆记录提示词编辑器,支持用户自定义修改提示词

3. 本地化

  • 支持中/英文国际化 key

4. 服务层

  • MessageBuilderService 现在使用模型字段 memoryRecordPrompt 替代硬编码的提示词规则
  • 敏感信息警告已移至模型默认值中,UI 可编辑

@Pheobe-Southwood Pheobe-Southwood force-pushed the feature/memory-record-prompt branch from ce523bd to 254469d Compare June 26, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant