Update index.js
Browse files
index.js
CHANGED
@@ -39,6 +39,7 @@ const OpenaiRes = async (prompt) => {
|
|
39 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
|
40 |
};
|
41 |
const response = await axios.post(url, payload(prompt), { headers, timeout: 50000 });
|
|
|
42 |
return response.data.choices[0].message.content + "\n\nPowered By xtdevs";
|
43 |
} catch (error) {
|
44 |
console.error("Error:", error.message);
|
|
|
39 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
|
40 |
};
|
41 |
const response = await axios.post(url, payload(prompt), { headers, timeout: 50000 });
|
42 |
+
console.log("Response:", response)
|
43 |
return response.data.choices[0].message.content + "\n\nPowered By xtdevs";
|
44 |
} catch (error) {
|
45 |
console.error("Error:", error.message);
|