mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +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('未找到预设,请检查配置文件')
|
logger.debug('未找到预设,请检查配置文件')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @type {import('chaite').SendMessageOption}
|
||||||
|
*/
|
||||||
const sendMessageOption = JSON.parse(JSON.stringify(preset.sendMessageOption))
|
const sendMessageOption = JSON.parse(JSON.stringify(preset.sendMessageOption))
|
||||||
if (ChatGPTConfig.bym.presetPrefix) {
|
if (ChatGPTConfig.bym.presetPrefix) {
|
||||||
if (!sendMessageOption.systemOverride) {
|
if (!sendMessageOption.systemOverride) {
|
||||||
|
|
@ -76,8 +79,9 @@ export class bym extends plugin {
|
||||||
togglePrefix: ChatGPTConfig.basic.togglePrefix
|
togglePrefix: ChatGPTConfig.basic.togglePrefix
|
||||||
})
|
})
|
||||||
// 伪人不记录历史
|
// 伪人不记录历史
|
||||||
sendMessageOption.disableHistoryRead = true
|
// sendMessageOption.disableHistoryRead = true
|
||||||
sendMessageOption.disableHistorySave = true
|
// sendMessageOption.disableHistorySave = true
|
||||||
|
sendMessageOption.conversationId = 'bym' + e.user_id + Date.now()
|
||||||
// 设置多轮调用回掉
|
// 设置多轮调用回掉
|
||||||
sendMessageOption.onMessageWithToolCall = async content => {
|
sendMessageOption.onMessageWithToolCall = async content => {
|
||||||
const { msgs, forward } = await toYunzai(e, [content])
|
const { msgs, forward } = await toYunzai(e, [content])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue