Temporarily disable cometapi provider
This commit is contained in:
+2
-1
@@ -2804,7 +2804,8 @@
|
||||
<option value="aimlapi">AI/ML API</option>
|
||||
<option value="claude">Claude</option>
|
||||
<option value="cohere">Cohere</option>
|
||||
<option value="cometapi">CometAPI</option>
|
||||
<!-- Temporarily disabled. -->
|
||||
<!-- <option value="cometapi">CometAPI</option> -->
|
||||
<option value="deepseek">DeepSeek</option>
|
||||
<option value="fireworks">Fireworks AI</option>
|
||||
<option value="groq">Groq</option>
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user