From eb52872b134f10bae6cb89d1f72f4bcb360068e2 Mon Sep 17 00:00:00 2001 From: GhostXia <33112711+GhostXia@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:19:22 +0800 Subject: [PATCH] change 01ai endpoint --- src/endpoints/backends/chat-completions.js | 2 +- src/endpoints/openai.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 9cd784a0c..4d2eee774 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -49,7 +49,7 @@ const API_COHERE_V2 = 'https://api.cohere.ai/v2'; const API_PERPLEXITY = 'https://api.perplexity.ai'; const API_GROQ = 'https://api.groq.com/openai/v1'; const API_MAKERSUITE = 'https://generativelanguage.googleapis.com'; -const API_01AI = 'https://api.01.ai/v1'; +const API_01AI = 'https://api.lingyiwanwu.com/v1'; const API_BLOCKENTROPY = 'https://api.blockentropy.ai/v1'; const API_AI21 = 'https://api.ai21.com/studio/v1'; const API_NANOGPT = 'https://nano-gpt.com/api/v1'; diff --git a/src/endpoints/openai.js b/src/endpoints/openai.js index 14ee69fb8..c8f1701ce 100644 --- a/src/endpoints/openai.js +++ b/src/endpoints/openai.js @@ -116,7 +116,7 @@ router.post('/caption-image', async (request, response) => { } if (request.body.api === 'zerooneai') { - apiUrl = 'https://api.01.ai/v1/chat/completions'; + apiUrl = 'https://api.lingyiwanwu.com/v1/chat/completions'; } if (request.body.api === 'groq') {