diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a707e3f..4818764 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,7 +1,17 @@ -# 变更记录 +# 变更记录 ## v0.1.1(周期表分区 / 全屏视线 / 跨平台 / 窗口图标) +**人设提示词对齐 v1.0(补丁)** +- `src/shared/llm.ts` 的系统提示词按《小钠人设总档 v1.0》第 10 节重写:称呼变量化、认领门槛、被冒犯的四招安全反应、AI 腔黑名单、不当答疑机的硬边界、关系网、示例对话全部写进提示词 +- 新增「设置 → AI → 怎么称呼你」,存进 `data/llm.json` 的 `userName`;留空时统一叫「你」 +- 删掉写死的「Tian_XiaRi」称呼——v1.0 已明确禁止把某个固定名字写死 +- 旧 `llm.json` 无需迁移:缺字段会走 `DEFAULT_LLM` 默认值 + +**仓库清理(补丁)** +- 删除 `docs/` 下 13 张早期截图(含本机窗口覆盖),这些图从未被任何文档引用 +- 以后入库前逐张检查;`.gitignore` 继续忽略 `docs/shot-*.png` + **周期表分区订正** - 采用教科书五大分区:s / p / d / **ds** / f(此前 s/p/d/f 把 ds 区(Cu、Ag、Au、Zn、Cd、Hg 等)算进了 d 区,颜色也不对) - 标准配色照教材插图:s 红、p 绿、d 黄、ds 青、f 粉;等级预览与编辑器共用同一套逻辑 diff --git a/docs/RELEASE-v0.1.1.md b/docs/RELEASE-v0.1.1.md index 6b8cccb..e3de822 100644 --- a/docs/RELEASE-v0.1.1.md +++ b/docs/RELEASE-v0.1.1.md @@ -28,6 +28,10 @@ - 新增 Linux(AppImage / deb)与 macOS(dmg / zip)打包配置与 GitHub Actions 三平台构建 - 数据目录、点击穿透、图标路径按平台自适应 +**人设提示词对齐 v1.0(补丁)** +- 聊天用的系统提示词按《小钠人设总档 v1.0》重写:称呼不再写死,认领门槛、红线、四招反应、AI 腔黑名单全部补齐 +- 设置 → AI 新增「怎么称呼你」,留空就叫「你」 + ## 下载 ### Windows(本页附件) diff --git a/docs/bubble.png b/docs/bubble.png deleted file mode 100644 index e3e7c7d..0000000 Binary files a/docs/bubble.png and /dev/null differ diff --git a/docs/chatbar.png b/docs/chatbar.png deleted file mode 100644 index 48bf519..0000000 Binary files a/docs/chatbar.png and /dev/null differ diff --git a/docs/menu-day.png b/docs/menu-day.png deleted file mode 100644 index d02eb64..0000000 Binary files a/docs/menu-day.png and /dev/null differ diff --git a/docs/menu.png b/docs/menu.png deleted file mode 100644 index 87a99c3..0000000 Binary files a/docs/menu.png and /dev/null differ diff --git a/docs/menu2.png b/docs/menu2.png deleted file mode 100644 index 56e601e..0000000 Binary files a/docs/menu2.png and /dev/null differ diff --git a/docs/panel-day.png b/docs/panel-day.png deleted file mode 100644 index 9fab342..0000000 Binary files a/docs/panel-day.png and /dev/null differ diff --git a/docs/panel-final.png b/docs/panel-final.png deleted file mode 100644 index 4d600e5..0000000 Binary files a/docs/panel-final.png and /dev/null differ diff --git a/docs/panel-interact.png b/docs/panel-interact.png deleted file mode 100644 index 011f976..0000000 Binary files a/docs/panel-interact.png and /dev/null differ diff --git a/docs/panel-m1.png b/docs/panel-m1.png deleted file mode 100644 index 57ef6ff..0000000 Binary files a/docs/panel-m1.png and /dev/null differ diff --git a/docs/panel-shop.png b/docs/panel-shop.png deleted file mode 100644 index f2462a1..0000000 Binary files a/docs/panel-shop.png and /dev/null differ diff --git a/docs/panel-shop2.png b/docs/panel-shop2.png deleted file mode 100644 index a11c4d3..0000000 Binary files a/docs/panel-shop2.png and /dev/null differ diff --git a/docs/pet-crop.png b/docs/pet-crop.png deleted file mode 100644 index b9e808c..0000000 Binary files a/docs/pet-crop.png and /dev/null differ diff --git a/docs/pet-final.png b/docs/pet-final.png deleted file mode 100644 index 6874f76..0000000 Binary files a/docs/pet-final.png and /dev/null differ diff --git a/src/main/llm.ts b/src/main/llm.ts index 7aedff6..7c488b3 100644 --- a/src/main/llm.ts +++ b/src/main/llm.ts @@ -41,7 +41,7 @@ export class ChatService { return reply } - const sys = systemPrompt(this.getSave(), cfg.personaExtra, flavor) + const sys = systemPrompt(this.getSave(), cfg, flavor) const messages: ChatMessage[] = [ { role: 'system', diff --git a/src/renderer/src/panel/Panel.tsx b/src/renderer/src/panel/Panel.tsx index 388665d..4cef4f4 100644 --- a/src/renderer/src/panel/Panel.tsx +++ b/src/renderer/src/panel/Panel.tsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo, useRef, useState } from 'react' +import { useEffect, useMemo, useRef, useState } from 'react' import { CATEGORY_LABEL, DESIGN_H, @@ -1514,6 +1514,15 @@ export default function Panel(): React.ReactElement { /> {llm.temperature.toFixed(2)} +