Skip to content

Commit

Permalink
fix: unofficial api proxy be less strict with json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed May 2, 2023
1 parent 92c0271 commit 0949961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chatgpt-unofficial-proxy-api.ts
Expand Up @@ -218,7 +218,8 @@ export class ChatGPTUnofficialProxyAPI {
}
}
} catch (err) {
reject(err)
console.warn('chatgpt unexpected JSON error', err)
// reject(err)
}
},
onError: (err) => {
Expand Down

0 comments on commit 0949961

Please sign in to comment.