mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
fix(aichat): gpt 修改提示词 (#1242)
Some checks failed
最新版 / Build binary CI (386, linux) (push) Has been cancelled
最新版 / Build binary CI (386, windows) (push) Has been cancelled
最新版 / Build binary CI (amd64, linux) (push) Has been cancelled
最新版 / Build binary CI (amd64, windows) (push) Has been cancelled
最新版 / Build binary CI (arm, linux) (push) Has been cancelled
最新版 / Build binary CI (arm64, linux) (push) Has been cancelled
PushLint / lint (push) Has been cancelled
Some checks failed
最新版 / Build binary CI (386, linux) (push) Has been cancelled
最新版 / Build binary CI (386, windows) (push) Has been cancelled
最新版 / Build binary CI (amd64, linux) (push) Has been cancelled
最新版 / Build binary CI (amd64, windows) (push) Has been cancelled
最新版 / Build binary CI (arm, linux) (push) Has been cancelled
最新版 / Build binary CI (arm64, linux) (push) Has been cancelled
PushLint / lint (push) Has been cancelled
This commit is contained in:
parent
9cfad308b0
commit
0142050d6a
@ -321,9 +321,20 @@ func init() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 构造总结请求提示
|
// 构造总结请求提示 (使用通用版省流提示词)
|
||||||
summaryPrompt := "请总结这个群聊内容,要求按发言顺序梳理,明确标注每个发言者的昵称,并完整呈现其核心观点、提出的问题、发表的看法或做出的回应,确保不遗漏关键信息,且能体现成员间的对话逻辑和互动关系:\n" +
|
// 使用反引号定义多行字符串,更清晰
|
||||||
strings.Join(messages, "\n")
|
promptTemplate := `请对以下群聊对话进行【极简总结】。
|
||||||
|
要求:
|
||||||
|
1. 剔除客套与废话,直击主题。
|
||||||
|
2. 使用 Markdown 列表格式。
|
||||||
|
3. 按以下结构输出:
|
||||||
|
- 🎯 核心议题:(一句话概括)
|
||||||
|
- 💡 关键观点/结论:(提取3-5个重点)
|
||||||
|
- ✅ 下一步/待办:(如果有,明确谁做什么)
|
||||||
|
|
||||||
|
群聊对话内容如下:
|
||||||
|
`
|
||||||
|
summaryPrompt := promptTemplate + strings.Join(messages, "\n")
|
||||||
|
|
||||||
stor, err := newstorage(ctx, gid)
|
stor, err := newstorage(ctx, gid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user