Temporarily disable cometapi provider

12ac17197925ee1e1dba00a9505001e09e13dfde

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +4 -1Ignore whitespace
public/index.html+2 -1
@@ -2804,7 +2804,8 @@
28042804 <option value="aimlapi">AI/ML API</option>
28052805 <option value="claude">Claude</option>
28062806 <option value="cohere">Cohere</option>
2807- <option value="cometapi">CometAPI</option>
2807+ <!-- Temporarily disabled. -->
2808+ <!-- <option value="cometapi">CometAPI</option> -->
28082809 <option value="deepseek">DeepSeek</option>
28092810 <option value="fireworks">Fireworks AI</option>
28102811 <option value="groq">Groq</option>
src/endpoints/backends/chat-completions.js+2 -0
@@ -1253,6 +1253,7 @@ router.post('/status', async function (request, statusResponse) {
12531253 apiUrl = API_COMETAPI;
12541254 apiKey = readSecret(request.user.directories, SECRET_KEYS.COMETAPI);
12551255 headers = {};
1256+ throw new Error('This provider is temporarily disabled.');
12561257 } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MOONSHOT) {
12571258 apiUrl = API_MOONSHOT;
12581259 apiKey = readSecret(request.user.directories, SECRET_KEYS.MOONSHOT);
@@ -1673,6 +1674,7 @@ router.post('/generate', function (request, response) {
16731674 bodyParams = {
16741675 reasoning_effort: request.body.reasoning_effort,
16751676 };
1677+ throw new Error('This provider is temporarily disabled.');
16761678 } else {
16771679 console.warn('This chat completion source is not supported yet.');
16781680 return response.status(400).send({ error: true });