cbee02a0 by Leff Tubat

Removed console.log and changed referrer url

1 parent ca7417ef
Showing 1 changed file with 6 additions and 6 deletions
......@@ -194,7 +194,7 @@ async function runGPTTurbo(req, res) {
const validate = await validation(aiwp_app_id, req, res);
if(!validate) return;
const { IS_FREE_USER, aiwp_logged_in, TRIED_USAGE} = validate;
console.log({validate})
if (moderation.data.results[0].flagged) {
res.json({
success: false,
......@@ -338,7 +338,7 @@ async function authenticate(params) {
"Content-Type": "application/json"
},
body: JSON.stringify(params),
referrer: "https://api.ai-pro.org"
referrer: "https://chatgpt.ai-pro.org"
});
return await data.json();
}
......@@ -350,7 +350,7 @@ async function getLimitedUsage(params) {
"Content-Type": "application/json"
},
body: JSON.stringify(params),
referrer: "https://api.ai-pro.org"
referrer: "https://chatgpt.ai-pro.org"
});
return await data.json();
}
......@@ -361,7 +361,7 @@ async function getUsage(params) {
"Content-Type": "application/json"
},
body: JSON.stringify(params),
referrer: "https://api.ai-pro.org"
referrer: "https://chatgpt.ai-pro.org"
});
return await data.json();
}
......@@ -372,7 +372,7 @@ async function setUsage(params) {
"Content-Type": "application/json"
},
body: JSON.stringify(params),
referrer: "https://api.ai-pro.org"
referrer: "https://chatgpt.ai-pro.org"
});
fetch(`${hostapi}/e/set-chat-usage`, {
method: "POST",
......@@ -380,7 +380,7 @@ async function setUsage(params) {
"Content-Type": "application/json"
},
body: JSON.stringify(params),
referrer: "https://api.ai-pro.org"
referrer: "https://chatgpt.ai-pro.org"
});
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!