randydev commited on
Commit
4205463
·
verified ·
1 Parent(s): 612d04b

Update plugins/gptold.js

Browse files
Files changed (1) hide show
  1. plugins/gptold.js +38 -0
plugins/gptold.js CHANGED
@@ -3,6 +3,7 @@ import { OpenaiRes } from '../lib/scrapper.js';
3
  import { audioContent } from '../lib/all.js';
4
  import { NvidiaTogether } from '../lib/@randydev/together/llama.js';
5
  import { CohereAI } from '../lib/@randydev/together/cohere.js';
 
6
  import {
7
  SYSTEMJAWA,
8
  SYSTEMSUNDA,
@@ -765,6 +766,43 @@ GptRoutes.get('/api/v1/ai/akenox/aigen-v2', authenticateApiKeyPremium, apiLimite
765
  }
766
  });
767
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
768
 
769
  /**
770
  * @swagger
 
3
  import { audioContent } from '../lib/all.js';
4
  import { NvidiaTogether } from '../lib/@randydev/together/llama.js';
5
  import { CohereAI } from '../lib/@randydev/together/cohere.js';
6
+ import { ModeratorAntiEvalVersionV3 } from "../moderator.js";
7
  import {
8
  SYSTEMJAWA,
9
  SYSTEMSUNDA,
 
766
  }
767
  });
768
 
769
+ /**
770
+ * @swagger
771
+ * /api/v1/ai/akenox/antievalai-v3:
772
+ * get:
773
+ * summary: Custom Moderator Anti Eval V3 AI
774
+ * tags: [AI]
775
+ * parameters:
776
+ * - in: query
777
+ * name: query
778
+ * required: true
779
+ * description: User's input query
780
+ * schema:
781
+ * type: string
782
+ * - in: header
783
+ * name: x-api-key
784
+ * required: true
785
+ * description: API key for authentication
786
+ * schema:
787
+ * type: string
788
+ * responses:
789
+ * 200:
790
+ * description: Success
791
+ */
792
+ GptRoutes.get('/api/v1/ai/akenox/antievalai-v3', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
793
+ try {
794
+ const query = req.query.query;
795
+ if (!query) {
796
+ return res.status(500).json({ error: "query required" });
797
+ }
798
+ const results = await CloudFlareQwenTogether(query, {
799
+ system_prompt: ModeratorAntiEvalVersionV3
800
+ });
801
+ res.json({ results });
802
+ } catch (error) {
803
+ res.status(401).json({ error: error.message });
804
+ }
805
+ });
806
 
807
  /**
808
  * @swagger