apply feedback

This commit is contained in:
Simon Knott 2025-02-14 14:56:34 +01:00
parent fe50345b7a
commit 6ee931caec
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
2 changed files with 2 additions and 3 deletions

View file

@ -46,7 +46,7 @@ export function AIConversation({ conversationId }: { conversationId: string }) {
</div>
)}
<div className='message-content'>
<Markdown>{message.displayContent ?? message.content}</Markdown>
<Markdown options={{ disableParsingRawHTML: true }}>{message.displayContent ?? message.content}</Markdown>
</div>
</div>
))}

View file

@ -250,8 +250,7 @@ export function useIsLLMAvailable() {
}
export function useLLMConversation(id: string) {
const chat = useLLMChat();
const conversation = React.useMemo(() => chat.getConversation(id), [chat, id]);
const conversation = useLLMChat().getConversation(id);
if (!conversation)
throw new Error('No conversation found for id: ' + id);
const [history, setHistory] = React.useState(conversation.history);