summaryrefslogtreecommitdiffstats
path: root/unfinished/vercelai/test.js
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-29 00:54:35 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-29 00:54:35 +0200
commitdc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8 (patch)
tree28161f968e3dc2f824bcc3b4884439e34ae373c7 /unfinished/vercelai/test.js
parentMerge pull request #241 from ethanx40/main (diff)
downloadgpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.tar
gpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.tar.gz
gpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.tar.bz2
gpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.tar.lz
gpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.tar.xz
gpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.tar.zst
gpt4free-dc912e0fc985c0d8b17bb29a27bb6ee62dfb7bc8.zip
Diffstat (limited to 'unfinished/vercelai/test.js')
-rw-r--r--unfinished/vercelai/test.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/unfinished/vercelai/test.js b/unfinished/vercelai/test.js
new file mode 100644
index 00000000..0f822cfd
--- /dev/null
+++ b/unfinished/vercelai/test.js
@@ -0,0 +1,33 @@
+(async () => {
+
+ let response = await fetch("https://play.vercel.ai/openai.jpeg", {
+ "headers": {
+ "accept": "*/*",
+ "accept-language": "en,fr-FR;q=0.9,fr;q=0.8,es-ES;q=0.7,es;q=0.6,en-US;q=0.5,am;q=0.4,de;q=0.3",
+ "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
+ "sec-ch-ua-mobile": "?0",
+ "sec-ch-ua-platform": "\"macOS\"",
+ "sec-fetch-dest": "empty",
+ "sec-fetch-mode": "cors",
+ "sec-fetch-site": "same-origin"
+ },
+ "referrer": "https://play.vercel.ai/",
+ "referrerPolicy": "strict-origin-when-cross-origin",
+ "body": null,
+ "method": "GET",
+ "mode": "cors",
+ "credentials": "omit"
+ });
+
+
+ let data = JSON.parse(atob(await response.text()))
+ let ret = eval("(".concat(data.c, ")(data.a)"));
+
+ botPreventionToken = btoa(JSON.stringify({
+ r: ret,
+ t: data.t
+ }))
+
+ console.log(botPreventionToken);
+
+})() \ No newline at end of file