Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: improving the md of the chat

Ilian Sapundshievad33d358e04c
diff --git a/src/renderer/components/chat/ChatView.tsx b/src/renderer/components/chat/ChatView.tsx
index f7b90cc43..8469255f7 100644
--- a/src/renderer/components/chat/ChatView.tsx
+++ b/src/renderer/components/chat/ChatView.tsx
@@ -143,7 +143,7 @@ function ChatView() {
const request = item.request ? item.request : '';
const model = item.modelName ? item.modelName : 'AI model';
const response = item.response
- ? '**' + model + '**:\n\n' + item.response
+ ? '**' + model + '**:\\\n' + item.response
: '';
const images = item.imagePaths
? item.imagePaths.map((i) => {
@@ -158,13 +158,13 @@ function ChatView() {
return (
'' +
date +
- ': \n\n' +
+ ': \\\n' +
request +
'\n' +
images +
'\n' +
response +
- '\n***\n '
+ '\n *** \n '
);
});
const markdown = formattedItems.join(' ');