- plugins/gptold.js +35 -0
plugins/gptold.js
CHANGED
@@ -29,6 +29,7 @@ import {
|
|
29 |
AlibabaTurboTogether,
|
30 |
CloudFlareQwenTogether,
|
31 |
DeepseekQwenTogether,
|
|
|
32 |
} from '../lib/@randydev/together/qwen-ai.js';
|
33 |
|
34 |
import { CloudFlareMistralTogether } from '../lib/@randydev/together/cloudflare-ai.js';
|
@@ -161,6 +162,40 @@ GptRoutes.get('/api/v1/ai/deepseek/deepseek-r1-distill-qwen-32b', authenticateAp
|
|
161 |
}
|
162 |
});
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
/**
|
165 |
* @swagger
|
166 |
* /api/v1/ai/deepseek/deepseek-R1:
|
|
|
29 |
AlibabaTurboTogether,
|
30 |
CloudFlareQwenTogether,
|
31 |
DeepseekQwenTogether,
|
32 |
+
Qwen323NewResponse,
|
33 |
} from '../lib/@randydev/together/qwen-ai.js';
|
34 |
|
35 |
import { CloudFlareMistralTogether } from '../lib/@randydev/together/cloudflare-ai.js';
|
|
|
162 |
}
|
163 |
});
|
164 |
|
165 |
+
/**
|
166 |
+
* @swagger
|
167 |
+
* /api/v1/ai/qwen/qwen3-235b-dev:
|
168 |
+
* get:
|
169 |
+
* summary: Qwen3 35B
|
170 |
+
* tags: [AI]
|
171 |
+
* parameters:
|
172 |
+
* - in: query
|
173 |
+
* name: query
|
174 |
+
* required: true
|
175 |
+
* description: User's input query
|
176 |
+
* schema:
|
177 |
+
* type: string
|
178 |
+
* - in: header
|
179 |
+
* name: x-api-key
|
180 |
+
* required: true
|
181 |
+
* description: API key for authentication
|
182 |
+
* schema:
|
183 |
+
* type: string
|
184 |
+
* responses:
|
185 |
+
* 200:
|
186 |
+
* description: Success
|
187 |
+
*/
|
188 |
+
GptRoutes.get('/api/v1/ai/qwen/qwen3-235b-dev', authenticateApiKeyPremium, apiLimiter, async (req, res) => {
|
189 |
+
try {
|
190 |
+
const query = req.query.query;
|
191 |
+
const results = await Qwen323NewResponse(query);
|
192 |
+
res.json({ results });
|
193 |
+
} catch (error) {
|
194 |
+
res.status(401).json({ error: error.message });
|
195 |
+
}
|
196 |
+
});
|
197 |
+
|
198 |
+
|
199 |
/**
|
200 |
* @swagger
|
201 |
* /api/v1/ai/deepseek/deepseek-R1:
|