randydev commited on
Commit
0c26c72
·
verified ·
1 Parent(s): 3683f5b

Update plugins/gptold.js

Browse files
Files changed (1) hide show
  1. 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
- if (!query) {
393
- return res.status(500).json({ error: "query required" });
 
 
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)