Merge pull request #3715 from GhostXia/staging change 01ai endpoint

1122c675e57e123ce2544706c9bd76e2736e6426

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

Signed
3 files changed, +3 -3Showing whitespace changes
public/index.html+1 -1
@@ -3417,7 +3417,7 @@
3417 </form>3417 </form>
3418 <div id="01ai_form" data-source="01ai">3418 <div id="01ai_form" data-source="01ai">
3419 <h4>3419 <h4>
3420 <a data-i18n="01.AI API Key" href="https://platform.01.ai/" target="_blank" rel="noopener noreferrer">3420 <a data-i18n="01.AI API Key" href="https://platform.lingyiwanwu.com/" target="_blank" rel="noopener noreferrer">
3421 01.AI API Key3421 01.AI API Key
3422 </a>3422 </a>
3423 </h4>3423 </h4>
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') {