Update plugins/gptold.js
Browse files- plugins/gptold.js +39 -0
plugins/gptold.js
CHANGED
@@ -16,6 +16,7 @@ import {
|
|
16 |
PythonToJS,
|
17 |
JsToPython,
|
18 |
curlCommandCode,
|
|
|
19 |
} from '../models.js';
|
20 |
import {
|
21 |
AlibabaTogether,
|
@@ -303,6 +304,44 @@ GptRoutes.get('/api/v1/ai/akenox/nocodefou', authenticateApiKeyPremium, apiLimit
|
|
303 |
}
|
304 |
});
|
305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
/**
|
307 |
* @swagger
|
308 |
* /api/v1/ai/akenox/mia-khalifah:
|
|
|
16 |
PythonToJS,
|
17 |
JsToPython,
|
18 |
curlCommandCode,
|
19 |
+
AkenoX19Hybrid
|
20 |
} from '../models.js';
|
21 |
import {
|
22 |
AlibabaTogether,
|
|
|
304 |
}
|
305 |
});
|
306 |
|
307 |
+
/**
|
308 |
+
* @swagger
|
309 |
+
* /api/v1/ai/akenox/AkenoX-1-9-Hybrid:
|
310 |
+
* get:
|
311 |
+
* summary: Custom AkenoX-1-9-Hybrid AI
|
312 |
+
* tags: [AI]
|
313 |
+
* parameters:
|
314 |
+
* - in: query
|
315 |
+
* name: query
|
316 |
+
* required: true
|
317 |
+
* description: User's input query
|
318 |
+
* schema:
|
319 |
+
* type: string
|
320 |
+
* - in: header
|
321 |
+
* name: x-api-key
|
322 |
+
* required: true
|
323 |
+
* description: API key for authentication
|
324 |
+
* schema:
|
325 |
+
* type: string
|
326 |
+
* responses:
|
327 |
+
* 200:
|
328 |
+
* description: Success
|
329 |
+
*/
|
330 |
+
GptRoutes.get('/api/v1/ai/akenox/AkenoX-1-9-Hybrid', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
|
331 |
+
try {
|
332 |
+
const query = req.query.query;
|
333 |
+
if (!query) {
|
334 |
+
return res.status(500).json({ error: "query required" });
|
335 |
+
}
|
336 |
+
const results = await AlibabaTogether(query, {
|
337 |
+
system_prompt: AkenoX19Hybrid
|
338 |
+
});
|
339 |
+
res.json({ results });
|
340 |
+
} catch (error) {
|
341 |
+
res.status(401).json({ error: error.message });
|
342 |
+
}
|
343 |
+
});
|
344 |
+
|
345 |
/**
|
346 |
* @swagger
|
347 |
* /api/v1/ai/akenox/mia-khalifah:
|