update
Browse files- plugins/gptold.js +2 -27
- template.txt +24 -0
plugins/gptold.js
CHANGED
@@ -607,7 +607,6 @@ GptRoutes.get('/api/v1/ai/akenox/al-sholawat', authenticateApiKeyPremium, apiLim
|
|
607 |
}
|
608 |
});
|
609 |
|
610 |
-
|
611 |
/**
|
612 |
* @swagger
|
613 |
* /api/v1/ai/akenox/moderator:
|
@@ -920,31 +919,7 @@ GptRoutes.get('/api/v1/ai/nvidia/llama-31-70b', authenticateApiKeyPremium, apiLi
|
|
920 |
}
|
921 |
});
|
922 |
|
923 |
-
|
924 |
-
/**
|
925 |
-
* @swagger
|
926 |
-
* /api/v1/ai/openai/gpt-4o:
|
927 |
-
* get:
|
928 |
-
* summary: GPT 4o version turbo
|
929 |
-
* tags: [AI]
|
930 |
-
* parameters:
|
931 |
-
* - in: query
|
932 |
-
* name: query
|
933 |
-
* required: true
|
934 |
-
* description: The query to be processed by the GPT OLD.
|
935 |
-
* schema:
|
936 |
-
* type: string
|
937 |
-
* - in: header
|
938 |
-
* name: x-api-key
|
939 |
-
* required: true
|
940 |
-
* description: API key for authentication
|
941 |
-
* schema:
|
942 |
-
* type: string
|
943 |
-
* responses:
|
944 |
-
* 200:
|
945 |
-
* description: Success
|
946 |
-
*/
|
947 |
-
GptRoutes.get('/api/v1/ai/openai/gpt-4o', authenticateApiKey, apiLimiter, async (req, res) => {
|
948 |
try {
|
949 |
const query = req.query.query;
|
950 |
const results = await OpenaiRes(query);
|
@@ -952,6 +927,6 @@ GptRoutes.get('/api/v1/ai/openai/gpt-4o', authenticateApiKey, apiLimiter, async
|
|
952 |
} catch (error) {
|
953 |
res.status(401).json({ error: error.message });
|
954 |
}
|
955 |
-
});
|
956 |
|
957 |
export { GptRoutes };
|
|
|
607 |
}
|
608 |
});
|
609 |
|
|
|
610 |
/**
|
611 |
* @swagger
|
612 |
* /api/v1/ai/akenox/moderator:
|
|
|
919 |
}
|
920 |
});
|
921 |
|
922 |
+
/* GptRoutes.get('/api/v1/ai/openai/gpt-4o', authenticateApiKey, apiLimiter, async (req, res) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
923 |
try {
|
924 |
const query = req.query.query;
|
925 |
const results = await OpenaiRes(query);
|
|
|
927 |
} catch (error) {
|
928 |
res.status(401).json({ error: error.message });
|
929 |
}
|
930 |
+
}); */
|
931 |
|
932 |
export { GptRoutes };
|
template.txt
CHANGED
@@ -26,4 +26,28 @@
|
|
26 |
* description: Unauthorized (e.g., missing or invalid API key)
|
27 |
* 500:
|
28 |
* description: Internal Server Error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
*/
|
|
|
26 |
* description: Unauthorized (e.g., missing or invalid API key)
|
27 |
* 500:
|
28 |
* description: Internal Server Error
|
29 |
+
*/
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @swagger
|
33 |
+
* /api/v1/ai/openai/gpt-4o:
|
34 |
+
* get:
|
35 |
+
* summary: GPT 4o version turbo
|
36 |
+
* tags: [AI]
|
37 |
+
* parameters:
|
38 |
+
* - in: query
|
39 |
+
* name: query
|
40 |
+
* required: true
|
41 |
+
* description: The query to be processed by the GPT OLD.
|
42 |
+
* schema:
|
43 |
+
* type: string
|
44 |
+
* - in: header
|
45 |
+
* name: x-api-key
|
46 |
+
* required: true
|
47 |
+
* description: API key for authentication
|
48 |
+
* schema:
|
49 |
+
* type: string
|
50 |
+
* responses:
|
51 |
+
* 200:
|
52 |
+
* description: Success
|
53 |
*/
|