Skip to content

Commit 0142050

Browse files
authored
fix(aichat): gpt 修改提示词 (#1242)
1 parent 9cfad30 commit 0142050

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

plugin/aichat/main.go

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,20 @@ func init() {
321321
return
322322
}
323323

324-
// 构造总结请求提示
325-
summaryPrompt := "请总结这个群聊内容,要求按发言顺序梳理,明确标注每个发言者的昵称,并完整呈现其核心观点、提出的问题、发表的看法或做出的回应,确保不遗漏关键信息,且能体现成员间的对话逻辑和互动关系:\n" +
326-
strings.Join(messages, "\n")
324+
// 构造总结请求提示 (使用通用版省流提示词)
325+
// 使用反引号定义多行字符串,更清晰
326+
promptTemplate := `请对以下群聊对话进行【极简总结】。
327+
要求:
328+
1. 剔除客套与废话,直击主题。
329+
2. 使用 Markdown 列表格式。
330+
3. 按以下结构输出:
331+
- 🎯 核心议题:(一句话概括)
332+
- 💡 关键观点/结论:(提取3-5个重点)
333+
- ✅ 下一步/待办:(如果有,明确谁做什么)
334+
335+
群聊对话内容如下:
336+
`
337+
summaryPrompt := promptTemplate + strings.Join(messages, "\n")
327338

328339
stor, err := newstorage(ctx, gid)
329340
if err != nil {

0 commit comments

Comments
 (0)