mirror of
https://github.com/open-webui/open-webui
synced 2025-02-19 19:38:52 +00:00
refac
This commit is contained in:
parent
9dade91ef5
commit
7a024fbe1e
@ -1679,25 +1679,6 @@
|
|||||||
|
|
||||||
<audio id="audioElement" src="" style="display: none;" />
|
<audio id="audioElement" src="" style="display: none;" />
|
||||||
|
|
||||||
<ChatControls
|
|
||||||
models={selectedModelIds.reduce((a, e, i, arr) => {
|
|
||||||
const model = $models.find((m) => m.id === e);
|
|
||||||
if (model) {
|
|
||||||
return [...a, model];
|
|
||||||
}
|
|
||||||
return a;
|
|
||||||
}, [])}
|
|
||||||
bind:show={showControls}
|
|
||||||
bind:chatFiles
|
|
||||||
bind:params
|
|
||||||
bind:files
|
|
||||||
{submitPrompt}
|
|
||||||
{stopResponse}
|
|
||||||
modelId={selectedModelIds?.at(0) ?? null}
|
|
||||||
chatId={$chatId}
|
|
||||||
{eventTarget}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<EventConfirmDialog
|
<EventConfirmDialog
|
||||||
bind:show={showEventConfirmation}
|
bind:show={showEventConfirmation}
|
||||||
title={eventConfirmationTitle}
|
title={eventConfirmationTitle}
|
||||||
@ -1835,3 +1816,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<ChatControls
|
||||||
|
models={selectedModelIds.reduce((a, e, i, arr) => {
|
||||||
|
const model = $models.find((m) => m.id === e);
|
||||||
|
if (model) {
|
||||||
|
return [...a, model];
|
||||||
|
}
|
||||||
|
return a;
|
||||||
|
}, [])}
|
||||||
|
bind:show={showControls}
|
||||||
|
bind:chatFiles
|
||||||
|
bind:params
|
||||||
|
bind:files
|
||||||
|
{submitPrompt}
|
||||||
|
{stopResponse}
|
||||||
|
modelId={selectedModelIds?.at(0) ?? null}
|
||||||
|
chatId={$chatId}
|
||||||
|
{eventTarget}
|
||||||
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user