mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 伪人错误记录历史的问题
This commit is contained in:
parent
eb71222ed8
commit
089f6b6316
3 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ export class bym extends plugin {
|
|||
}
|
||||
|
||||
async bym (e) {
|
||||
if (!Chaite.getInstance()) {
|
||||
return false
|
||||
}
|
||||
if (!ChatGPTConfig.bym.enable) {
|
||||
return false
|
||||
}
|
||||
|
|
@ -82,6 +85,7 @@ export class bym extends plugin {
|
|||
// sendMessageOption.disableHistoryRead = true
|
||||
// sendMessageOption.disableHistorySave = true
|
||||
sendMessageOption.conversationId = 'bym' + e.user_id + Date.now()
|
||||
sendMessageOption.parentMessageId = undefined
|
||||
// 设置多轮调用回掉
|
||||
sendMessageOption.onMessageWithToolCall = async content => {
|
||||
const { msgs, forward } = await toYunzai(e, [content])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue