Fix available CC models log header
| @@ -683,7 +683,7 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o | ||
| 683 | 683 | } |
| 684 | 684 | |
| 685 | 685 | if (!api_key_openai && !request.body.reverse_proxy && request.body.chat_completion_source !== CHAT_COMPLETION_SOURCES.CUSTOM) { |
| 686 | 686 | console.log('OpenAIChat Completion API key is missing.'); |
| 687 | 687 | return response_getstatus_openai.status(400).send({ error: true }); |
| 688 | 688 | } |
| 689 | 689 | |
| @@ -727,14 +727,14 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o | ||
| 727 | 727 | |
| 728 | 728 | if (Array.isArray(models)) { |
| 729 | 729 | const modelIds = models.filter(x => x && typeof x === 'object').map(x => x.id).sort(); |
| 730 | 730 | console.log('Available OpenAI models:', modelIds); |
| 731 | 731 | } else { |
| 732 | 732 | console.log('OpenAIChat Completion endpoint did not return a list of models.'); |
| 733 | 733 | } |
| 734 | 734 | } |
| 735 | 735 | } |
| 736 | 736 | else { |
| 737 | 737 | console.log('OpenAIChat Completion status check failed. Either Access Token is incorrect or API endpoint is down.'); |
| 738 | 738 | response_getstatus_openai.send({ error: true, can_bypass: true, data: { data: [] } }); |
| 739 | 739 | } |
| 740 | 740 | } catch (e) { |