fix: 伪人错误记录历史的问题

This commit is contained in:
ikechan8370 2025-03-25 20:31:27 +08:00
parent eb71222ed8
commit 089f6b6316
3 changed files with 10 additions and 0 deletions

View file

@ -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])