mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 14:02:29 +00:00
refac
This commit is contained in:
parent
27ff386115
commit
01c077da3d
@ -295,7 +295,7 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class=" pb-10">
|
<div class="pt-2 pb-10">
|
||||||
{#key chatId}
|
{#key chatId}
|
||||||
{#each messages as message, messageIdx}
|
{#each messages as message, messageIdx}
|
||||||
<div class=" w-full">
|
<div class=" w-full">
|
||||||
|
@ -137,20 +137,22 @@
|
|||||||
.getElementById(`message-${message.id}`)
|
.getElementById(`message-${message.id}`)
|
||||||
?.getElementsByClassName('chat-assistant');
|
?.getElementsByClassName('chat-assistant');
|
||||||
|
|
||||||
for (const element of chatMessageElements) {
|
if (chatMessageElements) {
|
||||||
auto_render(element, {
|
for (const element of chatMessageElements) {
|
||||||
// customised options
|
auto_render(element, {
|
||||||
// • auto-render specific keys, e.g.:
|
// customised options
|
||||||
delimiters: [
|
// • auto-render specific keys, e.g.:
|
||||||
{ left: '$$', right: '$$', display: false },
|
delimiters: [
|
||||||
{ left: '$ ', right: ' $', display: false },
|
{ left: '$$', right: '$$', display: false },
|
||||||
{ left: '\\(', right: '\\)', display: false },
|
{ left: '$ ', right: ' $', display: false },
|
||||||
{ left: '\\[', right: '\\]', display: false },
|
{ left: '\\(', right: '\\)', display: false },
|
||||||
{ left: '[ ', right: ' ]', display: false }
|
{ left: '\\[', right: '\\]', display: false },
|
||||||
],
|
{ left: '[ ', right: ' ]', display: false }
|
||||||
// • rendering keys, e.g.:
|
],
|
||||||
throwOnError: false
|
// • rendering keys, e.g.:
|
||||||
});
|
throwOnError: false
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user