fix gpt-4 web unusual activity (#615)

This commit is contained in:
josc146
2024-01-25 13:20:57 +08:00
parent e28ec22caf
commit e2c8041667
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -258,7 +258,9 @@ try {
}
setUserConfig({
chatgptArkoseReqUrl: details.url,
chatgptArkoseReqForm: formData.toString(),
chatgptArkoseReqForm:
formData.toString() ||
new TextDecoder('utf-8').decode(new Uint8Array(details.requestBody.raw[0].bytes)),
}).then(() => {
console.log('Arkose req url and form saved')
})