From d1012979954869773f34484c5ae9c24be9cce2ce Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 22 Dec 2023 13:52:40 +0530 Subject: [PATCH] Use markdown formatted chat message in chat modal --- src/interface/obsidian/src/chat_modal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface/obsidian/src/chat_modal.ts b/src/interface/obsidian/src/chat_modal.ts index 5b849544..6f990b74 100644 --- a/src/interface/obsidian/src/chat_modal.ts +++ b/src/interface/obsidian/src/chat_modal.ts @@ -244,7 +244,7 @@ export class KhojChatModal extends Modal { if (responseJson.detail) { // 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 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); return false; @@ -364,7 +364,7 @@ export class KhojChatModal extends Modal { } } } catch (err) { - let errorMsg = "

Sorry, unable to get response from Khoj backend ❤️‍🩹. Contact developer for help at team@khoj.dev or in Discord

"; + let errorMsg = "Sorry, unable to get response from Khoj backend ❤️‍🩹. Contact developer for help at team@khoj.dev or [in Discord](https://discord.gg/BDgyabRM6e)"; responseElement.innerHTML = errorMsg } }