fix: 减少系统消息发送频率,避免太快到达4096token限制

This commit is contained in:
ikechan8370 2023-03-05 12:32:42 +08:00
parent c9361c63b4
commit 1619927bde

View file

@ -828,8 +828,8 @@ export class chatgpt extends plugin {
fetch: newFetch fetch: newFetch
}) })
let option = { let option = {
timeoutMs: 120000, timeoutMs: 120000
systemMessage: promptPrefix // systemMessage: promptPrefix
} }
if (conversation) { if (conversation) {
option = Object.assign(option, conversation) option = Object.assign(option, conversation)