randydev commited on
Commit
1dc0e47
·
verified ·
1 Parent(s): 2ed4152

Update plugins/gptold.js

Browse files
Files changed (1) hide show
  1. plugins/gptold.js +47 -3
plugins/gptold.js CHANGED
@@ -29,6 +29,7 @@ import {
29
  AlibabaTogether,
30
  AlibabaTurboTogether,
31
  CloudFlareQwenTogether,
 
32
  DeepseekQwenTogether,
33
  Qwen323NewResponse,
34
  } from '../lib/@randydev/together/qwen-ai.js';
@@ -120,6 +121,49 @@ GptRoutes.get("/api/v1/ai/openai/whisper-large-v3-turbo", authenticateApiKey, ap
120
  }
121
  });
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  /**
124
  * @swagger
125
  * /api/v1/ai/deepseek/deepseek-r1-distill-qwen-32b:
@@ -152,7 +196,7 @@ GptRoutes.get("/api/v1/ai/openai/whisper-large-v3-turbo", authenticateApiKey, ap
152
  GptRoutes.get('/api/v1/ai/deepseek/deepseek-r1-distill-qwen-32b', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
153
  try {
154
  const query = req.query.query;
155
- const system_prompt = req.query.system_prompt || "Your name is AkenoX AI A kind and friendly AI assistant that answers in a short and concise answer. Give short step-by-step reasoning if required.";
156
 
157
  const results = await DeepseekQwenTogether(query, {
158
  system_prompt: system_prompt
@@ -228,7 +272,7 @@ GptRoutes.get('/api/v1/ai/deepseek/deepseek-R1', authenticateApiKeyPremium, apiL
228
  GptRoutes.get('/api/v1/ai/mistral/mistral-7b-instruct-v0.1', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
229
  try {
230
  const query = req.query.query;
231
- const system_prompt = req.query.system_prompt || "Your name is AkenoX AI A kind and friendly AI assistant that answers in a short and concise answer. Give short step-by-step reasoning if required.";
232
 
233
  const results = await CloudFlareMistralTogether(query, {
234
  system_prompt: system_prompt
@@ -335,7 +379,7 @@ GptRoutes.get('/api/v1/ai/akenox/nocodefou', authenticateApiKeyPremium, apiLimit
335
  * 200:
336
  * description: Success
337
  */
338
- GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-Englsih', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
339
  try {
340
  const query = req.query.query;
341
  if (!query) {
 
29
  AlibabaTogether,
30
  AlibabaTurboTogether,
31
  CloudFlareQwenTogether,
32
+ CloudFlareQwen32BTogether,
33
  DeepseekQwenTogether,
34
  Qwen323NewResponse,
35
  } from '../lib/@randydev/together/qwen-ai.js';
 
121
  }
122
  });
123
 
124
+ /**
125
+ * @swagger
126
+ * /api/v1/ai/deepseek/deepseek-r1-distill-qwen-32b:
127
+ * get:
128
+ * summary: deepseek r1 distill-qwen-32b
129
+ * tags: [AI]
130
+ * parameters:
131
+ * - in: query
132
+ * name: query
133
+ * required: true
134
+ * description: User's input query
135
+ * schema:
136
+ * type: string
137
+ * - in: query
138
+ * name: system_prompt
139
+ * required: false
140
+ * description: Custom system prompt
141
+ * schema:
142
+ * type: string
143
+ * - in: header
144
+ * name: x-api-key
145
+ * required: true
146
+ * description: API key for authentication
147
+ * schema:
148
+ * type: string
149
+ * responses:
150
+ * 200:
151
+ * description: Success
152
+ */
153
+ GptRoutes.get('/api/v1/ai/alibaba/qwen-32b', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
154
+ try {
155
+ const query = req.query.query;
156
+ const system_prompt = req.query.system_prompt || "Your name is Ryzenth AI A kind and friendly AI assistant that answers in a short and concise answer. Give short step-by-step reasoning if required.";
157
+
158
+ const results = await CloudFlareQwen32BTogether(query, {
159
+ system_prompt: system_prompt
160
+ });
161
+ res.json({ results });
162
+ } catch (error) {
163
+ res.status(401).json({ error: error.message });
164
+ }
165
+ });
166
+
167
  /**
168
  * @swagger
169
  * /api/v1/ai/deepseek/deepseek-r1-distill-qwen-32b:
 
196
  GptRoutes.get('/api/v1/ai/deepseek/deepseek-r1-distill-qwen-32b', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
197
  try {
198
  const query = req.query.query;
199
+ const system_prompt = req.query.system_prompt || "Your name is Ryzenth AI A kind and friendly AI assistant that answers in a short and concise answer. Give short step-by-step reasoning if required.";
200
 
201
  const results = await DeepseekQwenTogether(query, {
202
  system_prompt: system_prompt
 
272
  GptRoutes.get('/api/v1/ai/mistral/mistral-7b-instruct-v0.1', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
273
  try {
274
  const query = req.query.query;
275
+ const system_prompt = req.query.system_prompt || "Your name is Ryzenth AI A kind and friendly AI assistant that answers in a short and concise answer. Give short step-by-step reasoning if required.";
276
 
277
  const results = await CloudFlareMistralTogether(query, {
278
  system_prompt: system_prompt
 
379
  * 200:
380
  * description: Success
381
  */
382
+ GptRoutes.get('/api/v1/ai/akenox/AkenoX-1.9-Hybrid-English', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
383
  try {
384
  const query = req.query.query;
385
  if (!query) {