Update plugins/gptold.js
Browse files- plugins/gptold.js +6 -2
plugins/gptold.js
CHANGED
@@ -370,12 +370,14 @@ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyP
|
|
370 |
* description: Custom Nickname
|
371 |
* schema:
|
372 |
* type: string
|
|
|
373 |
* - in: query
|
374 |
* name: timestamp
|
375 |
* required: true
|
376 |
* description: Custom timestamp
|
377 |
* schema:
|
378 |
* type: string
|
|
|
379 |
* - in: header
|
380 |
* name: x-api-key
|
381 |
* required: true
|
@@ -389,8 +391,10 @@ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyP
|
|
389 |
GptRoutes.get('/api/v1/ai/r/Ryzenth-Humanize-05-06-2025', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
|
390 |
try {
|
391 |
const query = req.query.query;
|
392 |
-
|
393 |
-
|
|
|
|
|
394 |
}
|
395 |
const results = await AlibabaTogether(query, {
|
396 |
system_prompt: SystemHumanizeRyzenth(author_id, timestamp)
|
|
|
370 |
* description: Custom Nickname
|
371 |
* schema:
|
372 |
* type: string
|
373 |
+
* example: "lu api key di @aknuserbot telegram"
|
374 |
* - in: query
|
375 |
* name: timestamp
|
376 |
* required: true
|
377 |
* description: Custom timestamp
|
378 |
* schema:
|
379 |
* type: string
|
380 |
+
* example: "lu api key di @aknuserbot telegram"
|
381 |
* - in: header
|
382 |
* name: x-api-key
|
383 |
* required: true
|
|
|
391 |
GptRoutes.get('/api/v1/ai/r/Ryzenth-Humanize-05-06-2025', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
|
392 |
try {
|
393 |
const query = req.query.query;
|
394 |
+
const author_id = req.query.author_id;
|
395 |
+
const timestamp = req.query.timestamp;
|
396 |
+
if (!query && !author_id && !timestamp) {
|
397 |
+
return res.status(500).json({ error: "all required" });
|
398 |
}
|
399 |
const results = await AlibabaTogether(query, {
|
400 |
system_prompt: SystemHumanizeRyzenth(author_id, timestamp)
|