mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Use markdown formatted chat message in chat modal
This commit is contained in:
parent
350fd89c8d
commit
d101297995
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,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 <a class='inline-chat-link' href='/server/admin'>the Django Admin panel</a> 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, true);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -364,7 +364,7 @@ export class KhojChatModal extends Modal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
let errorMsg = "<p>Sorry, unable to get response from Khoj backend ❤️🩹. Contact developer for help at team@khoj.dev or <a href='https://discord.gg/BDgyabRM6e'>in Discord</a></p>";
|
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
|
responseElement.innerHTML = errorMsg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue