Skip to content

Commit

Permalink
try using the MarkdownSynapse renderer (seems to work well for most c…
Browse files Browse the repository at this point in the history
…ases)
  • Loading branch information
jay-hodgson committed Sep 18, 2024
1 parent b19229c commit 47abba8
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ColorPartial } from '@mui/material/styles/createPalette'
import { SkeletonParagraph } from '../Skeleton'
import { SmartToyTwoTone } from '@mui/icons-material'
import { SynapseSpinner } from '../LoadingScreen/LoadingScreen'
import MarkdownSynapse from '../Markdown/MarkdownSynapse'

export type SynapseChatInteractionProps = {
userMessage: string
Expand Down Expand Up @@ -74,15 +75,15 @@ export const SynapseChatInteraction: React.FunctionComponent<
>
<SmartToyTwoTone sx={{ color: 'secondary.main' }} />
</Box>
<ListItemText
primary={chatResponseText}
<Box
sx={{
borderRadius: '10px',
padding: '10px',
maxWidth: '100%',
whiteSpace: 'pre-wrap',
}}
/>
>
<MarkdownSynapse markdown={chatResponseText} />
</Box>
</ListItem>
)}
{chatErrorReason && (
Expand Down

0 comments on commit 47abba8

Please sign in to comment.