Merge branch 'v2' of github.com:ikechan8370/chatgpt-plugin into v2

This commit is contained in:
ikechan8370 2023-06-17 15:31:27 +08:00
commit 85e9d079a5
3 changed files with 321 additions and 66 deletions

View file

@ -1817,10 +1817,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)
}