Fix error message rendering in khoj.el, khoj obsidian chat

- Fix failed to index error message in khoj.el
- Fix chat model not configured message in khoj obsidian chat
This commit is contained in:
Debanjum Singh Solanky
2024-01-10 22:30:00 +05:30
parent 02187b19bb
commit ffdb291fe0
3 changed files with 3 additions and 3 deletions

View File

@@ -245,7 +245,7 @@ export class KhojChatModal extends Modal {
if (responseJson.detail) { if (responseJson.detail) {
// If the server returns error details in response, render a setup hint. // If the server returns error details in response, render a setup hint.
let setupMsg = "Hi 👋🏾, to start chatting add available chat models options via [the Django Admin panel](/server/admin) on the Server"; let setupMsg = "Hi 👋🏾, to start chatting add available chat models options via [the Django Admin panel](/server/admin) on the Server";
this.renderMessage(chatBodyEl, setupMsg, "khoj", undefined, true); this.renderMessage(chatBodyEl, setupMsg, "khoj", undefined);
return false; return false;
} else if (responseJson.response) { } else if (responseJson.response) {

View File

@@ -55,7 +55,7 @@ from khoj.search_filter.file_filter import FileFilter
from khoj.search_filter.word_filter import WordFilter from khoj.search_filter.word_filter import WordFilter
from khoj.search_type import image_search, text_search from khoj.search_type import image_search, text_search
from khoj.utils import constants, state from khoj.utils import constants, state
from khoj.utils.config import GPT4AllProcessorModel, TextSearchModel from khoj.utils.config import GPT4AllProcessorModel
from khoj.utils.helpers import ( from khoj.utils.helpers import (
AsyncIteratorWrapper, AsyncIteratorWrapper,
ConversationCommand, ConversationCommand,