mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: bym conversation history
This commit is contained in:
parent
66905640e4
commit
c44e47be1c
1 changed files with 6 additions and 2 deletions
|
|
@ -53,6 +53,9 @@ export class bym extends plugin {
|
|||
logger.debug('未找到预设,请检查配置文件')
|
||||
return false
|
||||
}
|
||||
/**
|
||||
* @type {import('chaite').SendMessageOption}
|
||||
*/
|
||||
const sendMessageOption = JSON.parse(JSON.stringify(preset.sendMessageOption))
|
||||
if (ChatGPTConfig.bym.presetPrefix) {
|
||||
if (!sendMessageOption.systemOverride) {
|
||||
|
|
@ -76,8 +79,9 @@ export class bym extends plugin {
|
|||
togglePrefix: ChatGPTConfig.basic.togglePrefix
|
||||
})
|
||||
// 伪人不记录历史
|
||||
sendMessageOption.disableHistoryRead = true
|
||||
sendMessageOption.disableHistorySave = true
|
||||
// sendMessageOption.disableHistoryRead = true
|
||||
// sendMessageOption.disableHistorySave = true
|
||||
sendMessageOption.conversationId = 'bym' + e.user_id + Date.now()
|
||||
// 设置多轮调用回掉
|
||||
sendMessageOption.onMessageWithToolCall = async content => {
|
||||
const { msgs, forward } = await toYunzai(e, [content])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue