From 3f2430bf51d1af69c31794e5edca16ec721ea5b6 Mon Sep 17 00:00:00 2001 From: "Embruch, Gerd" <gerd.embruch@uni-hamburg.de> Date: Wed, 7 Aug 2024 18:14:35 +0200 Subject: [PATCH] small changes --- README.md | 2 +- README_tmp.html | 2 +- src/components/chat/PromptInput.jsx | 4 ---- src/components/table/customTable.jsx | 2 -- src/pages/Config/Embeddings/Delete.jsx | 7 ------- 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ce68996..5aa3ef2 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ cp ./.env.template.local ./.env.production.local - [x] chat - [x] list chats - [x] EMBEDDINGS - - [x] status [admin only] + - [x] status - [x] delete vector db [admin only] - [x] update embeddings [admin only] diff --git a/README_tmp.html b/README_tmp.html index 726e54b..3a44d49 100644 --- a/README_tmp.html +++ b/README_tmp.html @@ -414,7 +414,7 @@ cp ./.env.template.local ./.env.production.local </li> <li><input type="checkbox" id="checkbox17" checked="true"><label for="checkbox17">EMBEDDINGS</label> <ul> -<li><input type="checkbox" id="checkbox18" checked="true"><label for="checkbox18">status [admin only]</label></li> +<li><input type="checkbox" id="checkbox18" checked="true"><label for="checkbox18">status</label></li> <li><input type="checkbox" id="checkbox19" checked="true"><label for="checkbox19">delete vector db [admin only]</label></li> <li><input type="checkbox" id="checkbox20" checked="true"><label for="checkbox20">update embeddings [admin only]</label></li> </ul> diff --git a/src/components/chat/PromptInput.jsx b/src/components/chat/PromptInput.jsx index 3561f2d..b9d941d 100644 --- a/src/components/chat/PromptInput.jsx +++ b/src/components/chat/PromptInput.jsx @@ -68,11 +68,8 @@ function PromptInput() { try { // send input to api const result = await api.post('/ai/chat', inputs); - console.log("🚀 ~ handleSendForm ~ result id:", result.data.chat.id); - if (!currentChatId) fetchAllChats(result.data.chat.id); - // update chat history updateChatHistory(result.data.chat.id, result.data.chat.chatHistory); // selectChat(currentChatId); @@ -82,7 +79,6 @@ function PromptInput() { } catch (error) { console.error(error); // merge front & backend validation errors - console.log("🚀 ~ handleSendForm ~ error:", error); mergeBackendValidation(error.response.status, error.response.data, methods.setError); } diff --git a/src/components/table/customTable.jsx b/src/components/table/customTable.jsx index 07c5742..d5b6242 100644 --- a/src/components/table/customTable.jsx +++ b/src/components/table/customTable.jsx @@ -34,8 +34,6 @@ function CustomTable({ columns = [], data = {}, title = '' }) { filterFns: { regex: (rows, columnIds, filterValue) => { try { - console.log("🚀 ~ CustomTable ~ rows.getValue(columnIds):", rows.getValue(columnIds)); - const regex = new RegExp(filterValue, 'i'); return rows.getValue(columnIds).toString().match(regex) ? true : false; } catch (error) { diff --git a/src/pages/Config/Embeddings/Delete.jsx b/src/pages/Config/Embeddings/Delete.jsx index 928d9cf..e440ae1 100644 --- a/src/pages/Config/Embeddings/Delete.jsx +++ b/src/pages/Config/Embeddings/Delete.jsx @@ -32,18 +32,11 @@ function Delete({ setStatus }) { try { // install item in backend const result = await api.delete('/embeddings'); - - console.log("🚀 ~ handleDelete ~ result:", result); - // renew status setStatus(result.data); // show message from backend setFlashMsg(result?.data?.message); } catch (error) { - - console.log("🚀 ~ handleDelete ~ error:", error); - - mergeBackendValidation(error.response.status, error.response.data); } }; -- GitLab