fix: 增加强制工具关键词 看你还不听话

This commit is contained in:
ikechan8370 2025-02-17 02:09:51 +08:00
parent b486b45f44
commit d29bfb0bc2
3 changed files with 23 additions and 1 deletions

View file

@ -127,7 +127,8 @@ class Core {
},
settings: {
replyPureTextCallback: undefined,
enableGroupContext: Config.enableGroupContext
enableGroupContext: Config.enableGroupContext,
forceTool: false
}
}) {
if (!conversation) {
@ -567,6 +568,7 @@ class Core {
await e.reply(msg, true)
}
})
option.toolMode = opt.settings.forceTool ? 'ANY' : 'AUTO'
return await client.sendMessage(prompt, option)
} else if (use === 'chatglm4') {
const client = new ChatGLM4Client({