- plugins/gptold.js +4 -1
plugins/gptold.js
CHANGED
@@ -401,7 +401,10 @@ GptRoutes.get('/api/v1/ai/r/Ryzenth-Humanize-05-06-2025', authenticateApiKeyPrem
|
|
401 |
const writing_style = req.query.writing_style;
|
402 |
const timestamp = req.query.timestamp;
|
403 |
if (!query && !author_id && !timestamp && !writing_style) {
|
404 |
-
return res.status(
|
|
|
|
|
|
|
405 |
}
|
406 |
const results = await AlibabaTogether(query, {
|
407 |
system_prompt: SystemHumanizeRyzenth(author_id, writing_style, timestamp)
|
|
|
401 |
const writing_style = req.query.writing_style;
|
402 |
const timestamp = req.query.timestamp;
|
403 |
if (!query && !author_id && !timestamp && !writing_style) {
|
404 |
+
return res.status(403).json({ error: "all required" });
|
405 |
+
}
|
406 |
+
if (author_id === "0" || author_id === 0) {
|
407 |
+
return res.status(403).json({ error: "author Cannot zero" });
|
408 |
}
|
409 |
const results = await AlibabaTogether(query, {
|
410 |
system_prompt: SystemHumanizeRyzenth(author_id, writing_style, timestamp)
|