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