fix: add more hint

This commit is contained in:
ikechan8370 2023-02-12 23:00:53 +08:00
parent 4b93a2aa72
commit 12290ad8e4

View file

@ -360,7 +360,7 @@ export class chatgpt extends plugin {
}
let accessToken = await redis.get('CHATGPT:TOKEN')
if (!accessToken) {
throw new Error('未绑定ChatGPT AccessToken')
throw new Error('未绑定ChatGPT AccessToken,请使用#chatgpt设置token命令绑定token')
}
// console.log(accessToken)
this.chatGPTApi = new ChatGPTClient(accessToken, clientOptions, cacheOptions)