From 12ac17197925ee1e1dba00a9505001e09e13dfde Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 25 Aug 2025 20:41:26 +0300 Subject: [PATCH] Temporarily disable cometapi provider --- public/index.html | 3 ++- src/endpoints/backends/chat-completions.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index d498de698..88a9700b7 100644 --- a/public/index.html +++ b/public/index.html @@ -2804,7 +2804,8 @@ - + + diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 809de9049..b755f32f4 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -1253,6 +1253,7 @@ router.post('/status', async function (request, statusResponse) { apiUrl = API_COMETAPI; apiKey = readSecret(request.user.directories, SECRET_KEYS.COMETAPI); headers = {}; + throw new Error('This provider is temporarily disabled.'); } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MOONSHOT) { apiUrl = API_MOONSHOT; apiKey = readSecret(request.user.directories, SECRET_KEYS.MOONSHOT); @@ -1673,6 +1674,7 @@ router.post('/generate', function (request, response) { bodyParams = { reasoning_effort: request.body.reasoning_effort, }; + throw new Error('This provider is temporarily disabled.'); } else { console.warn('This chat completion source is not supported yet.'); return response.status(400).send({ error: true });