Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Jan 4, 2025
2 parents 5b4878e + 64416c3 commit 7988e0d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ app.post("/api/chat", async (req, res) => {
Authorization: `Bearer ${randomAPIKey}`,
"Content-Type": "application/json",
},
}
},
);
if (response.status === 429) {
switchModel();
Expand All @@ -102,7 +102,7 @@ app.post("/api/chat", async (req, res) => {
Authorization: `Bearer ${randomAPIKey}`,
"Content-Type": "application/json",
},
}
},
);
const aiResponse = response.data.choices[0].message.content;
conversation.push({ role: "assistant", content: aiResponse });
Expand Down Expand Up @@ -174,7 +174,7 @@ app.post("/api/signUp", async (req, res) => {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
}
},
);

if (!captchaVerifyResponse.data.success) {
Expand All @@ -194,7 +194,7 @@ app.post("/api/signUp", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand Down Expand Up @@ -223,7 +223,7 @@ app.post("/api/login", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand All @@ -249,7 +249,7 @@ app.post("/api/checkPremium", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand Down Expand Up @@ -277,7 +277,7 @@ app.post("/api/uploadSave", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand All @@ -303,7 +303,7 @@ app.post("/api/readSave", async (req, res) => {
Authorization: process.env.workerAUTH,
"Content-Type": "application/json",
},
}
},
);

res.status(200).json(response.data);
Expand Down

0 comments on commit 7988e0d

Please sign in to comment.