Skip to content

Commit 0949961

Browse files
fix: unofficial api proxy be less strict with json parsing
1 parent 92c0271 commit 0949961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/chatgpt-unofficial-proxy-api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ export class ChatGPTUnofficialProxyAPI {
218218
}
219219
}
220220
} catch (err) {
221-
reject(err)
221+
console.warn('chatgpt unexpected JSON error', err)
222+
// reject(err)
222223
}
223224
},
224225
onError: (err) => {

0 commit comments

Comments
 (0)