Fix available CC models log header

72e0f8ccc5d96d7dc305a432bfc7f7217f648a1a

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

1 files changed, +4 -4Showing whitespace changes
src/endpoints/backends/chat-completions.js+4 -4
@@ -683,7 +683,7 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o
683683 }
684684
685685 if (!api_key_openai && !request.body.reverse_proxy && request.body.chat_completion_source !== CHAT_COMPLETION_SOURCES.CUSTOM) {
686686 console.log('OpenAIChat Completion API key is missing.');
687687 return response_getstatus_openai.status(400).send({ error: true });
688688 }
689689
@@ -727,14 +727,14 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o
727727
728728 if (Array.isArray(models)) {
729729 const modelIds = models.filter(x => x && typeof x === 'object').map(x => x.id).sort();
730730 console.log('Available OpenAI models:', modelIds);
731731 } else {
732732 console.log('OpenAIChat Completion endpoint did not return a list of models.');
733733 }
734734 }
735735 }
736736 else {
737737 console.log('OpenAIChat Completion status check failed. Either Access Token is incorrect or API endpoint is down.');
738738 response_getstatus_openai.send({ error: true, can_bypass: true, data: { data: [] } });
739739 }
740740 } catch (e) {