mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-31 10:36:16 -05:00
refac
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
let contentContainerElement;
|
||||
let floatingButtonsElement;
|
||||
|
||||
|
||||
let sourceIds = [];
|
||||
$: getSourceIds(sources);
|
||||
|
||||
@@ -160,7 +161,9 @@
|
||||
<div bind:this={contentContainerElement}>
|
||||
<Markdown
|
||||
{id}
|
||||
{content}
|
||||
content={model?.info?.meta?.capabilities?.citations == false
|
||||
? content.replace(/\s*(\[(?:\d+(?:#[^,\]\s]+)?(?:,\s*\d+(?:#[^,\]\s]+)?)*)\])+/g, '')
|
||||
: content}
|
||||
{model}
|
||||
{save}
|
||||
{preview}
|
||||
|
||||
Reference in New Issue
Block a user