Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msveshnikov committed Mar 25, 2024
1 parent ed7118d commit d9207e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/ChatHistory.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { Box, CircularProgress } from "@mui/material";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
// import remarkGfm from "remark-gfm";

const getFileTypeIcon = (mimeType) => {
switch (mimeType) {
Expand Down Expand Up @@ -67,9 +67,7 @@ const ChatHistory = ({ chatHistory, isModelResponding, chatContainerRef }) => {
chat.assistant === null &&
chatHistory[chatHistory.length - 1] === chat && <CircularProgress size={20} />}
{chat.assistant !== null && (
<ReactMarkdown remarkPlugins={[remarkGfm]} renderers={renderers}>
{chat.assistant}
</ReactMarkdown>
<ReactMarkdown components={renderers}>{chat.assistant}</ReactMarkdown>
)}
{chat.error && chat.error}
{chat.image && (
Expand Down

0 comments on commit d9207e5

Please sign in to comment.