style(llm,memory): 模型侧文案 AI 友好化——占位改键值记号,记忆/画像头删人读整句

- 重负载占位:[OMITTED, http_status=200, size=6465] / [OMITTED, size=12000];
  url/path 不再重复进占位——发起调用的 assistant 行里本就有,参数即恢复指针
- memory.journalFor 注入头置空后整体移除(head 恒空,顺带消开头空行残留)
- user-profile 快照头去掉「· 背景参考」后缀
- trim-smoke 断言同步键值格式
This commit is contained in:
2026-10-02 09:27:15 +08:00
parent f8126bfa00
commit d0d7b838e9
4 changed files with 13 additions and 16 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const SET_MAX = 20; // AI 写 honorific/industry 的单值帽(称谓应当
const TAG_MAX = 15; // 单个偏好标签长度帽
const TAGS_MAX = 24; // 偏好标签数量帽
const TAG_SPLIT = /[、,,;;\n]+/;
const SNAPSHOT_HEAD = '【用户画像 · 背景参考】以下为历史会话沉淀的粗粒度认知,非任务约束;与当前请求冲突时,一律以当前请求为准。';
const SNAPSHOT_HEAD = '【用户画像】以下为历史会话沉淀的粗粒度认知,非任务约束;与当前请求冲突时,一律以当前请求为准。';
const FIELD_LABELS = { honorific: '称谓', industry: '行业', preference: '偏好' };
function readRow(db, user) {