mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +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') {
|
} else if (use === 'api3') {
|
||||||
// official without cloudflare
|
// official without cloudflare
|
||||||
let accessToken = await redis.get('CHATGPT:TOKEN')
|
let accessToken = await redis.get('CHATGPT:TOKEN')
|
||||||
if (!accessToken) {
|
// if (!accessToken) {
|
||||||
throw new Error('未绑定ChatGPT AccessToken,请使用#chatgpt设置token命令绑定token')
|
// throw new Error('未绑定ChatGPT AccessToken,请使用#chatgpt设置token命令绑定token')
|
||||||
}
|
// }
|
||||||
this.chatGPTApi = new OfficialChatGPTClient({
|
this.chatGPTApi = new OfficialChatGPTClient({
|
||||||
accessToken,
|
accessToken,
|
||||||
apiReverseUrl: Config.api,
|
apiReverseUrl: Config.api,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue