- plugins/gptold.js +41 -1
plugins/gptold.js
CHANGED
@@ -22,7 +22,8 @@ import {
|
|
22 |
AkenoX19Hybrid,
|
23 |
AkenoX19HybridEnglish,
|
24 |
ModeratorAntiEval,
|
25 |
-
ModeratorAntiEvalVersionV2
|
|
|
26 |
} from '../models.js';
|
27 |
import {
|
28 |
AlibabaTogether,
|
@@ -349,6 +350,45 @@ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyP
|
|
349 |
}
|
350 |
});
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
/**
|
353 |
* @swagger
|
354 |
* /api/v1/ai/akenox/AkenoX-1.9-Hybrid:
|
|
|
22 |
AkenoX19Hybrid,
|
23 |
AkenoX19HybridEnglish,
|
24 |
ModeratorAntiEval,
|
25 |
+
ModeratorAntiEvalVersionV2,
|
26 |
+
SystemHumanizeRyzenth
|
27 |
} from '../models.js';
|
28 |
import {
|
29 |
AlibabaTogether,
|
|
|
350 |
}
|
351 |
});
|
352 |
|
353 |
+
/**
|
354 |
+
* @swagger
|
355 |
+
* /api/v1/ai/r/Ryzenth-Humanize-05-06-2025:
|
356 |
+
* get:
|
357 |
+
* summary: Custom Ryzenth Humanize AI
|
358 |
+
* tags: [AI]
|
359 |
+
* parameters:
|
360 |
+
* - in: query
|
361 |
+
* name: query
|
362 |
+
* required: true
|
363 |
+
* description: User's input query
|
364 |
+
* schema:
|
365 |
+
* type: string
|
366 |
+
* - in: header
|
367 |
+
* name: x-api-key
|
368 |
+
* required: true
|
369 |
+
* description: API key for authentication
|
370 |
+
* schema:
|
371 |
+
* type: string
|
372 |
+
* responses:
|
373 |
+
* 200:
|
374 |
+
* description: Success
|
375 |
+
*/
|
376 |
+
GptRoutes.get('/api/v1/ai/r/Ryzenth-Humanize-05-06-2025', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
|
377 |
+
try {
|
378 |
+
const query = req.query.query;
|
379 |
+
if (!query) {
|
380 |
+
return res.status(500).json({ error: "query required" });
|
381 |
+
}
|
382 |
+
const results = await AlibabaTogether(query, {
|
383 |
+
system_prompt: SystemHumanizeRyzenth
|
384 |
+
});
|
385 |
+
res.json({ results });
|
386 |
+
} catch (error) {
|
387 |
+
res.status(401).json({ error: error.message });
|
388 |
+
}
|
389 |
+
});
|
390 |
+
|
391 |
+
|
392 |
/**
|
393 |
* @swagger
|
394 |
* /api/v1/ai/akenox/AkenoX-1.9-Hybrid:
|