Skip to content

Commit

Permalink
fix gpt-4 web unusual activity (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Jan 25, 2024
1 parent e28ec22 commit e2c8041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/background/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
2 changes: 1 addition & 1 deletion src/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{
"operation": "set",
"header": "referer",
"value": "https://tcr9i.chat.openai.com/v2/1.5.5/enforcement.fbfc14b0d793c6ef8359e0e4b4a91f67.html"
"value": "https://tcr9i.chat.openai.com/v2/2.3.4/enforcement.c70df15cb97792b18c2f4978b68954a0.html"
}
]
},
Expand Down

0 comments on commit e2c8041

Please sign in to comment.