30852 chatbot chatgpt
-
-
-
-
index.js
174 190 const moderation = await axios.post("https://api.openai.com/v1/moderations", { 175 191 input: query_prompt 176 192 }, { headers: { 'content-type': 'application/json', 'Authorization': `Bearer ${process.env.OPENAI_API_KEY}` } }); 177 193 194 const validate = await validation(aiwp_app_id, req, res); 195 if(!validate) return; 196 const { IS_FREE_USER, aiwp_logged_in, TRIED_USAGE} = validate; 197 console.log({validate}) -
index.js
303 331 } 304 332 } 305 333 334 async function authenticate(params) { 335 let data = await fetch(`${hostapi}/e/authenticate/v2`, { 336 method: "POST", 337 headers: { 338 "Content-Type": "application/json" 339 }, 340 body: JSON.stringify(params), 341 referrer: "https://api.ai-pro.org" -
please change this to https://chatgpt.ai-pro.org
-
-
Toggle commit list
-
-
-
Please register or sign in to post a comment