change 01ai endpoint
| @@ -49,7 +49,7 @@ const API_COHERE_V2 = 'https://api.cohere.ai/v2'; | ||
| 49 | 49 | const API_PERPLEXITY = 'https://api.perplexity.ai'; |
| 50 | 50 | const API_GROQ = 'https://api.groq.com/openai/v1'; |
| 51 | 51 | const API_MAKERSUITE = 'https://generativelanguage.googleapis.com'; |
| 52 | 52 | const API_01AI = 'https://api.01lingyiwanwu.aicom/v1'; |
| 53 | 53 | const API_BLOCKENTROPY = 'https://api.blockentropy.ai/v1'; |
| 54 | 54 | const API_AI21 = 'https://api.ai21.com/studio/v1'; |
| 55 | 55 | const API_NANOGPT = 'https://nano-gpt.com/api/v1'; |
| @@ -116,7 +116,7 @@ router.post('/caption-image', async (request, response) => { | ||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | if (request.body.api === 'zerooneai') { |
| 119 | 119 | apiUrl = 'https://api.01lingyiwanwu.aicom/v1/chat/completions'; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | if (request.body.api === 'groq') { |