mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 修复Sydney模式下依赖报错导致无法结束对话的问题
This commit is contained in:
parent
9910e5d825
commit
1dae9b5b36
2 changed files with 4 additions and 4 deletions
|
|
@ -168,7 +168,7 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
let Keyv
|
||||
try {
|
||||
Keyv = await import('keyv').Keyv
|
||||
Keyv = (await import('keyv')).default
|
||||
} catch (err) {
|
||||
await this.reply('依赖keyv未安装,请执行pnpm install keyv', true)
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
let Keyv
|
||||
try {
|
||||
Keyv = await import('keyv').default
|
||||
Keyv = (await import('keyv')).default
|
||||
} catch (err) {
|
||||
await this.reply('依赖keyv未安装,请执行pnpm install keyv', true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue