diff --git a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx index 95ba8b8d..d5a2ad98 100644 --- a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx +++ b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx @@ -83,7 +83,7 @@ const Inputbar: FC = ({ assistant, setActiveTopic }) => { const message: Message = { id: uuid(), role: 'user', - content: text.replace(/\n/g, ' \n'), + content: text, assistantId: assistant.id, topicId: assistant.topics[0].id || uuid(), createdAt: dayjs().format('YYYY-MM-DD HH:mm:ss'),