mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ try {
|
|||
async function getWebSocket () {
|
||||
let WebSocket
|
||||
try {
|
||||
WebSocket = await import('ws').default
|
||||
WebSocket = (await import('ws')).default
|
||||
} catch (error) {
|
||||
throw new Error('ws依赖未安装,请使用pnpm install ws安装')
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@ async function getWebSocket () {
|
|||
async function getKeyv () {
|
||||
let Keyv
|
||||
try {
|
||||
Keyv = await import('keyv').default
|
||||
Keyv = (await import('keyv')).default
|
||||
} catch (error) {
|
||||
throw new Error('ws依赖未安装,请使用pnpm install keyv安装')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue