fix: try to fix no handler version

This commit is contained in:
ikechan8370 2024-03-06 23:09:11 +08:00 committed by GitHub
parent 87af85671e
commit 03068f5101
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1202,7 +1202,9 @@ export class chatgpt extends plugin {
bingToken: previousConversation.bingToken
}
}
let handler = this.e.runtime?.handler || {}
let handler = this.e.runtime?.handler || {
has: (arg1) => false
}
try {
if (Config.debug) {
logger.mark({ conversation })