change 01ai endpoint

eb52872b134f10bae6cb89d1f72f4bcb360068e2

GhostXia <33112711+GhostXia@users.noreply.github.com>

2 files changed, +2 -2Ignore whitespace
src/endpoints/backends/chat-completions.js+1 -1
@@ -49,7 +49,7 @@ const API_COHERE_V2 = 'https://api.cohere.ai/v2';
49const API_PERPLEXITY = 'https://api.perplexity.ai';49const API_PERPLEXITY = 'https://api.perplexity.ai';
50const API_GROQ = 'https://api.groq.com/openai/v1';50const API_GROQ = 'https://api.groq.com/openai/v1';
51const API_MAKERSUITE = 'https://generativelanguage.googleapis.com';51const API_MAKERSUITE = 'https://generativelanguage.googleapis.com';
52const API_01AI = 'https://api.01.ai/v1';52const API_01AI = 'https://api.lingyiwanwu.com/v1';
53const API_BLOCKENTROPY = 'https://api.blockentropy.ai/v1';53const API_BLOCKENTROPY = 'https://api.blockentropy.ai/v1';
54const API_AI21 = 'https://api.ai21.com/studio/v1';54const API_AI21 = 'https://api.ai21.com/studio/v1';
55const API_NANOGPT = 'https://nano-gpt.com/api/v1';55const API_NANOGPT = 'https://nano-gpt.com/api/v1';
src/endpoints/openai.js+1 -1
@@ -116,7 +116,7 @@ router.post('/caption-image', async (request, response) => {
116 }116 }
117117
118 if (request.body.api === 'zerooneai') {118 if (request.body.api === 'zerooneai') {
119 apiUrl = 'https://api.01.ai/v1/chat/completions';119 apiUrl = 'https://api.lingyiwanwu.com/v1/chat/completions';
120 }120 }
121121
122 if (request.body.api === 'groq') {122 if (request.body.api === 'groq') {