diff --git a/README.md b/README.md index ce689966568c5744ecd08a575b627c50d38818b4..5aa3ef2eed83328e1ff709143a4498764b22f7a3 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 726e54b313e956aa3f6569eb05b15b4ed41a2b87..3a44d49584d30455f70b84aa9a6d11746288dabd 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 3561f2d78223bd06e9ddf7fe60351d4123192790..b9d941d7027ea38dc51d5a6894837bb8bd48cf94 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 07c5742b17494ff8856e15167ad527d6e57bec3f..d5b624219465a4dd443e0eff01566f1d836fa5d6 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 928d9cfbcdfdaac984f0e97311129d24fd3b9b1f..e440ae12d2c403ea064d9f24392a9b82a1b28631 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); } };