diff --git a/src/services/apis/chatgpt-web.mjs b/src/services/apis/chatgpt-web.mjs index 67ee05e..89f11c0 100644 --- a/src/services/apis/chatgpt-web.mjs +++ b/src/services/apis/chatgpt-web.mjs @@ -113,6 +113,13 @@ export async function generateAnswersWithChatgptWebApi(port, question, session, timezone_offset_min: new Date().getTimezoneOffset(), variant_purpose: 'none', history_and_training_disabled: config.disableWebModeHistory, + arkose_token: usedModel.startsWith('gpt-4') + ? `${Array.from({ length: 17 }, () => Math.floor(Math.random() * 16).toString(16)).join( + '', + )}|r=ap-southeast-1|meta=3|meta_width=300|metabgclr=transparent|metaiconclr=%23555555|guitextcolor=%23000000|pk=35536E1E-65B4-4D96-9D97-6ADB7EFF8147|at=40|sup=1|rid=${ + Math.floor(Math.random() * 99) + 1 + }|ag=101|cdn_url=https%3A%2F%2Ftcr9i.chat.openai.com%2Fcdn%2Ffc|lurl=https%3A%2F%2Faudio-ap-southeast-1.arkoselabs.com|surl=https%3A%2F%2Ftcr9i.chat.openai.com|smurl=https%3A%2F%2Ftcr9i.chat.openai.com%2Fcdn%2Ffc%2Fassets%2Fstyle-manager` + : undefined, }), onMessage(message) { console.debug('sse message', message)