Files
plugin-comment-ai-autopilot/docs/guide/persona.md
T
sunny-335 c3e003a572 feat: streamline dashboard, fix docs, optimize UI width
- Remove AI角色 quick action, keep only 回复日志/插件设置/刷新数据
- Fix LogsView filter/batch bar width to match content area (mx-4 mt-2 -> m-4 mb-0)
- Fix docs: Halo version 2.23->2.25, GitHub link nxxy335->sunny-335, Cravatar link, variable name {{conversation}}->{{conversation_history}}
- Add missing settings docs (maxConversationRounds, rateLimitPerMinute, enabledPresets)
- Update README: remove version display, update changelog
- Update version to 1.0.0-beta.2-r8k4n2
2026-06-17 22:03:35 +08:00

51 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AI角色
AI角色定义了回复评论的虚拟身份,包括昵称、人格和头像。
## 角色配置
### 昵称
AI回复者的显示名称,默认为「小回」。修改后新回复将使用新昵称,已有回复不受影响。
### 人格提示词
人格提示词定义了AI角色的性格和回复风格,是影响回复质量的关键配置。
**默认提示词:**
> 你是「小回」,一个友善的评论者。你的回复简洁自然,像朋友聊天一样。简短的评论就简短回复,有深度的讨论才展开回应。不要长篇大论,不要复述文章内容。
**自定义示例:**
```
你是「小回」,一个博学多才的评论者。你的回复风格:
- 对技术问题给出专业见解
- 对生活感悟表达共鸣
- 适当引用相关知识点
- 保持谦逊友好的态度
```
### 邮箱与头像
填写邮箱后,AI回复者的头像将通过 Gravatar 服务自动生成:
1. 插件根据邮箱生成 SHA-256 哈希
2. 构造 Gravatar URL`https://cn.cravatar.com/avatar/{hash}`(使用 [Cravatar](https://cn.cravatar.com) 镜像服务)
3. 头像URL存储在评论的 `owner.annotations["avatar"]`
::: warning
如果不填写邮箱,AI回复者将使用 Halo 默认头像。
:::
### 头像预览
在设置页面输入邮箱后,右侧会实时显示 Gravatar 头像预览,方便确认头像是否正确。
::: tip
如果预览头像不正确,请检查:
1. 邮箱是否拼写正确
2. 是否已在 [Gravatar](https://gravatar.com) 上为该邮箱设置头像
3. 头像更新可能有缓存延迟
:::