From 8d75b25104f86dba1709bf17600e18400de79816 Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Thu, 18 May 2023 07:45:07 -0400 Subject: [PATCH] Fixes (#313) * refactor(endpoints.js): remove console.log statement refactor(index.html): change title to "ChatGPT Clone" * feat(Chat.jsx): set document title to conversation title or VITE_APP_TITLE or 'Chat' if conversation is null --- api/server/routes/endpoints.js | 1 - client/index.html | 2 +- client/src/routes/Chat.jsx | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/server/routes/endpoints.js b/api/server/routes/endpoints.js index 175ae08cc5..d3ec9288d7 100644 --- a/api/server/routes/endpoints.js +++ b/api/server/routes/endpoints.js @@ -39,7 +39,6 @@ router.get('/', async function (req, res) { key || palmUser ? { userProvide: palmUser, availableModels: ['chat-bison', 'text-bison'] } : false; const azureOpenAI = !!process.env.AZURE_OPENAI_KEY; const apiKey = process.env.OPENAI_KEY || process.env.AZURE_OPENAI_API_KEY; - console.log('API KEY', apiKey); const openAI = apiKey ? { availableModels: getOpenAIModels(), userProvide: apiKey === 'user_provided' } diff --git a/client/index.html b/client/index.html index e77f5dc708..d81d0bf3d4 100644 --- a/client/index.html +++ b/client/index.html @@ -3,7 +3,7 @@
-