Skip to content
Snippets Groups Projects
Commit 3f2430bf authored by Embruch, Gerd's avatar Embruch, Gerd
Browse files

small changes

parent 6c7e5a19
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ cp ./.env.template.local ./.env.production.local ...@@ -41,7 +41,7 @@ cp ./.env.template.local ./.env.production.local
- [x] chat - [x] chat
- [x] list chats - [x] list chats
- [x] EMBEDDINGS - [x] EMBEDDINGS
- [x] status [admin only] - [x] status
- [x] delete vector db [admin only] - [x] delete vector db [admin only]
- [x] update embeddings [admin only] - [x] update embeddings [admin only]
......
...@@ -414,7 +414,7 @@ cp ./.env.template.local ./.env.production.local ...@@ -414,7 +414,7 @@ cp ./.env.template.local ./.env.production.local
</li> </li>
<li><input type="checkbox" id="checkbox17" checked="true"><label for="checkbox17">EMBEDDINGS</label> <li><input type="checkbox" id="checkbox17" checked="true"><label for="checkbox17">EMBEDDINGS</label>
<ul> <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="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> <li><input type="checkbox" id="checkbox20" checked="true"><label for="checkbox20">update embeddings [admin only]</label></li>
</ul> </ul>
......
...@@ -68,11 +68,8 @@ function PromptInput() { ...@@ -68,11 +68,8 @@ function PromptInput() {
try { try {
// send input to api // send input to api
const result = await api.post('/ai/chat', inputs); const result = await api.post('/ai/chat', inputs);
console.log("🚀 ~ handleSendForm ~ result id:", result.data.chat.id);
if (!currentChatId) fetchAllChats(result.data.chat.id); if (!currentChatId) fetchAllChats(result.data.chat.id);
// update chat history // update chat history
updateChatHistory(result.data.chat.id, result.data.chat.chatHistory); updateChatHistory(result.data.chat.id, result.data.chat.chatHistory);
// selectChat(currentChatId); // selectChat(currentChatId);
...@@ -82,7 +79,6 @@ function PromptInput() { ...@@ -82,7 +79,6 @@ function PromptInput() {
} catch (error) { } catch (error) {
console.error(error); console.error(error);
// merge front & backend validation errors // merge front & backend validation errors
console.log("🚀 ~ handleSendForm ~ error:", error);
mergeBackendValidation(error.response.status, error.response.data, methods.setError); mergeBackendValidation(error.response.status, error.response.data, methods.setError);
} }
......
...@@ -34,8 +34,6 @@ function CustomTable({ columns = [], data = {}, title = '' }) { ...@@ -34,8 +34,6 @@ function CustomTable({ columns = [], data = {}, title = '' }) {
filterFns: { filterFns: {
regex: (rows, columnIds, filterValue) => { regex: (rows, columnIds, filterValue) => {
try { try {
console.log("🚀 ~ CustomTable ~ rows.getValue(columnIds):", rows.getValue(columnIds));
const regex = new RegExp(filterValue, 'i'); const regex = new RegExp(filterValue, 'i');
return rows.getValue(columnIds).toString().match(regex) ? true : false; return rows.getValue(columnIds).toString().match(regex) ? true : false;
} catch (error) { } catch (error) {
......
...@@ -32,18 +32,11 @@ function Delete({ setStatus }) { ...@@ -32,18 +32,11 @@ function Delete({ setStatus }) {
try { try {
// install item in backend // install item in backend
const result = await api.delete('/embeddings'); const result = await api.delete('/embeddings');
console.log("🚀 ~ handleDelete ~ result:", result);
// renew status // renew status
setStatus(result.data); setStatus(result.data);
// show message from backend // show message from backend
setFlashMsg(result?.data?.message); setFlashMsg(result?.data?.message);
} catch (error) { } catch (error) {
console.log("🚀 ~ handleDelete ~ error:", error);
mergeBackendValidation(error.response.status, error.response.data); mergeBackendValidation(error.response.status, error.response.data);
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment