randydev commited on
Commit
3cb6e84
·
verified ·
1 Parent(s): 4b82ade

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
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);