Merge pull request #14 from ikechan8370/v2

fix: 纯图片触发的伪人对话 跳过查找工具关键词 (#771)
This commit is contained in:
ycxom 2025-03-05 17:36:01 +08:00 committed by GitHub
commit e1aca91e7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -591,7 +591,7 @@ class Core {
await e.reply(msg, true)
}
})
option.toolMode = (opt.settings.forceTool || Config.geminiForceToolKeywords?.find(k => prompt.includes(k))) ? 'ANY' : 'AUTO'
option.toolMode = (opt.settings.forceTool || Config.geminiForceToolKeywords?.find(k => prompt?.includes(k))) ? 'ANY' : 'AUTO'
return await client.sendMessage(prompt, option)
} else if (use === 'chatglm4') {
const client = new ChatGLM4Client({