fix: allow empty api3 token

This commit is contained in:
ikechan8370 2024-05-14 22:59:27 +08:00 committed by GitHub
parent 21a15c58ea
commit 6f7bb4f7fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,7 @@ export class OfficialChatGPTClient {
headers: {
accept: 'text/event-stream',
'x-openai-assistant-app-id': '',
authorization: `Bearer ${this._accessToken}`,
authorization: this._accessToken ? `Bearer ${this._accessToken}` : '',
'content-type': 'application/json',
referer: 'https://chat.openai.com/chat',
library: 'chatgpt-plugin'