apply feedback
This commit is contained in:
parent
fe50345b7a
commit
6ee931caec
|
|
@ -46,7 +46,7 @@ export function AIConversation({ conversationId }: { conversationId: string }) {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className='message-content'>
|
<div className='message-content'>
|
||||||
<Markdown>{message.displayContent ?? message.content}</Markdown>
|
<Markdown options={{ disableParsingRawHTML: true }}>{message.displayContent ?? message.content}</Markdown>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -250,8 +250,7 @@ export function useIsLLMAvailable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function useLLMConversation(id: string) {
|
export function useLLMConversation(id: string) {
|
||||||
const chat = useLLMChat();
|
const conversation = useLLMChat().getConversation(id);
|
||||||
const conversation = React.useMemo(() => chat.getConversation(id), [chat, id]);
|
|
||||||
if (!conversation)
|
if (!conversation)
|
||||||
throw new Error('No conversation found for id: ' + id);
|
throw new Error('No conversation found for id: ' + id);
|
||||||
const [history, setHistory] = React.useState(conversation.history);
|
const [history, setHistory] = React.useState(conversation.history);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue