mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: add headers for refresh token
This commit is contained in:
parent
6485d7a93e
commit
e47f18a5aa
1 changed files with 4 additions and 1 deletions
|
|
@ -1930,7 +1930,10 @@ export class chatgpt extends plugin {
|
|||
refresh_token: Config.OpenAiPlatformRefreshToken,
|
||||
client_id: 'DRivsnm2Mu42T3KOpqdtwB3NYviHYzwD',
|
||||
grant_type: 'refresh_token'
|
||||
})
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
if (refreshRes.status !== 200) {
|
||||
let errMsg = await refreshRes.json()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue