Update plugins/gptold.js
Browse files- plugins/gptold.js +2 -2
plugins/gptold.js
CHANGED
@@ -7,7 +7,7 @@ const GptRoutes = express.Router();
|
|
7 |
|
8 |
/**
|
9 |
* @swagger
|
10 |
-
* /api/v1/ai/cohere/
|
11 |
* post:
|
12 |
* summary: Cohere AI
|
13 |
* tags: [AI]
|
@@ -28,7 +28,7 @@ const GptRoutes = express.Router();
|
|
28 |
* 200:
|
29 |
* description: Success
|
30 |
*/
|
31 |
-
GptRoutes.post('/api/v1/ai/cohere/
|
32 |
try {
|
33 |
const query = req.query.query;
|
34 |
const results = await CohereAI(query);
|
|
|
7 |
|
8 |
/**
|
9 |
* @swagger
|
10 |
+
* /api/v1/ai/cohere/command-plus:
|
11 |
* post:
|
12 |
* summary: Cohere AI
|
13 |
* tags: [AI]
|
|
|
28 |
* 200:
|
29 |
* description: Success
|
30 |
*/
|
31 |
+
GptRoutes.post('/api/v1/ai/cohere/command-plus', authenticateApiKey, apiLimiter, async (req, res) => {
|
32 |
try {
|
33 |
const query = req.query.query;
|
34 |
const results = await CohereAI(query);
|