mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: allow empty api3 token
This commit is contained in:
parent
e70f0a79f4
commit
21a15c58ea
1 changed files with 3 additions and 3 deletions
|
|
@ -415,9 +415,9 @@ class Core {
|
|||
} else if (use === 'api3') {
|
||||
// official without cloudflare
|
||||
let accessToken = await redis.get('CHATGPT:TOKEN')
|
||||
if (!accessToken) {
|
||||
throw new Error('未绑定ChatGPT AccessToken,请使用#chatgpt设置token命令绑定token')
|
||||
}
|
||||
// if (!accessToken) {
|
||||
// throw new Error('未绑定ChatGPT AccessToken,请使用#chatgpt设置token命令绑定token')
|
||||
// }
|
||||
this.chatGPTApi = new OfficialChatGPTClient({
|
||||
accessToken,
|
||||
apiReverseUrl: Config.api,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue