Temporarily disable cometapi provider
| @@ -2804,7 +2804,8 @@ | |||
| 2804 | <option value="aimlapi">AI/ML API</option> | 2804 | <option value="aimlapi">AI/ML API</option> |
| 2805 | <option value="claude">Claude</option> | 2805 | <option value="claude">Claude</option> |
| 2806 | <option value="cohere">Cohere</option> | 2806 | <option value="cohere">Cohere</option> |
| 2807 | <option value="cometapi">CometAPI</option> | 2807 | <!-- Temporarily disabled. --> |
| 2808 | <!-- <option value="cometapi">CometAPI</option> --> | ||
| 2808 | <option value="deepseek">DeepSeek</option> | 2809 | <option value="deepseek">DeepSeek</option> |
| 2809 | <option value="fireworks">Fireworks AI</option> | 2810 | <option value="fireworks">Fireworks AI</option> |
| 2810 | <option value="groq">Groq</option> | 2811 | <option value="groq">Groq</option> |
| @@ -1253,6 +1253,7 @@ router.post('/status', async function (request, statusResponse) { | |||
| 1253 | apiUrl = API_COMETAPI; | 1253 | apiUrl = API_COMETAPI; |
| 1254 | apiKey = readSecret(request.user.directories, SECRET_KEYS.COMETAPI); | 1254 | apiKey = readSecret(request.user.directories, SECRET_KEYS.COMETAPI); |
| 1255 | headers = {}; | 1255 | headers = {}; |
| 1256 | throw new Error('This provider is temporarily disabled.'); | ||
| 1256 | } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MOONSHOT) { | 1257 | } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MOONSHOT) { |
| 1257 | apiUrl = API_MOONSHOT; | 1258 | apiUrl = API_MOONSHOT; |
| 1258 | apiKey = readSecret(request.user.directories, SECRET_KEYS.MOONSHOT); | 1259 | apiKey = readSecret(request.user.directories, SECRET_KEYS.MOONSHOT); |
| @@ -1673,6 +1674,7 @@ router.post('/generate', function (request, response) { | |||
| 1673 | bodyParams = { | 1674 | bodyParams = { |
| 1674 | reasoning_effort: request.body.reasoning_effort, | 1675 | reasoning_effort: request.body.reasoning_effort, |
| 1675 | }; | 1676 | }; |
| 1677 | throw new Error('This provider is temporarily disabled.'); | ||
| 1676 | } else { | 1678 | } else { |
| 1677 | console.warn('This chat completion source is not supported yet.'); | 1679 | console.warn('This chat completion source is not supported yet.'); |
| 1678 | return response.status(400).send({ error: true }); | 1680 | return response.status(400).send({ error: true }); |