mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 增加强制工具关键词 看你还不听话
This commit is contained in:
parent
b486b45f44
commit
d29bfb0bc2
3 changed files with 23 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue