Update index.js
Browse files
index.js
CHANGED
@@ -25,7 +25,13 @@ const payload = (prompt) => ({
|
|
25 |
|
26 |
const OpenaiRes = async (prompt) => {
|
27 |
try {
|
28 |
-
const
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
const headers = {
|
30 |
"Accept": "application/json",
|
31 |
"Content-Type": "application/json",
|
|
|
25 |
|
26 |
const OpenaiRes = async (prompt) => {
|
27 |
try {
|
28 |
+
const EncodeUrl = "aHR0cHM6Ly9vcGVuYWktZ3B0LnJlbWl4cHJvamVjdC5vcmcv"
|
29 |
+
let url;
|
30 |
+
try {
|
31 |
+
url = atob(EncodeUrl);
|
32 |
+
} catch (e) {
|
33 |
+
console.error("Could not decode the string! " + e);
|
34 |
+
}
|
35 |
const headers = {
|
36 |
"Accept": "application/json",
|
37 |
"Content-Type": "application/json",
|