apply feedback
This commit is contained in:
parent
fe50345b7a
commit
6ee931caec
|
|
@ -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>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue