mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-19 11:22:09 +08:00
chore: fix GPT-4 Web arkose_token (#34)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user