fix: 把随机系统消息加回来

This commit is contained in:
ikechan8370 2023-06-16 19:48:09 +08:00 committed by GitHub
parent 317283218a
commit adc0817731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1814,10 +1814,10 @@ export class chatgpt extends plugin {
timeoutMs: 120000
// systemMessage: promptPrefix
}
// if (Math.floor(Math.random() * 100) < 5) {
// // 小概率再次发送系统消息
// option.systemMessage = promptPrefix
// }
if (Math.floor(Math.random() * 100) < 5) {
// 小概率再次发送系统消息
option.systemMessage = promptPrefix
}
if (conversation) {
option = Object.assign(option, conversation)
}