randydev commited on
Commit
8cbeb3c
·
verified ·
1 Parent(s): 05cd1d9
Files changed (1) hide show
  1. plugins/gptold.js +12 -4
plugins/gptold.js CHANGED
@@ -358,7 +358,7 @@ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyP
358
  * tags: [AI]
359
  * parameters:
360
  * - in: query
361
- * name: query
362
  * required: true
363
  * description: User's input query
364
  * schema:
@@ -371,6 +371,13 @@ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyP
371
  * type: string
372
  * example: "<string or UUID, e.g. 'anonymous' or 'user_1234'>"
373
  * - in: query
 
 
 
 
 
 
 
374
  * name: timestamp
375
  * required: true
376
  * description: Custom timestamp
@@ -389,14 +396,15 @@ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyP
389
  */
390
  GptRoutes.get('/api/v1/ai/r/Ryzenth-Humanize-05-06-2025', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
391
  try {
392
- const query = req.query.query;
393
  const author_id = req.query.author_id;
 
394
  const timestamp = req.query.timestamp;
395
- if (!query && !author_id && !timestamp) {
396
  return res.status(500).json({ error: "all required" });
397
  }
398
  const results = await AlibabaTogether(query, {
399
- system_prompt: SystemHumanizeRyzenth(author_id, timestamp)
400
  });
401
  res.json({ results });
402
  } catch (error) {
 
358
  * tags: [AI]
359
  * parameters:
360
  * - in: query
361
+ * name: text
362
  * required: true
363
  * description: User's input query
364
  * schema:
 
371
  * type: string
372
  * example: "<string or UUID, e.g. 'anonymous' or 'user_1234'>"
373
  * - in: query
374
+ * name: writing_style
375
+ * required: true
376
+ * description: Custom writing style
377
+ * schema:
378
+ * type: string
379
+ * example: "<blog-like | spoken | journalistic | narrative | etc.>"
380
+ * - in: query
381
  * name: timestamp
382
  * required: true
383
  * description: Custom timestamp
 
396
  */
397
  GptRoutes.get('/api/v1/ai/r/Ryzenth-Humanize-05-06-2025', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
398
  try {
399
+ const query = req.query.text;
400
  const author_id = req.query.author_id;
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(500).json({ error: "all required" });
405
  }
406
  const results = await AlibabaTogether(query, {
407
+ system_prompt: SystemHumanizeRyzenth(author_id, writing_style, timestamp)
408
  });
409
  res.json({ results });
410
  } catch (error) {