mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-27 02:58:33 -05:00
refac
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
};
|
||||
|
||||
let files = [];
|
||||
let messages = [];
|
||||
|
||||
let versionIdx = null;
|
||||
let selectedModelId = null;
|
||||
@@ -1033,7 +1034,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||
</Pane>
|
||||
<NotePanel bind:show={showPanel}>
|
||||
{#if selectedPanel === 'chat'}
|
||||
<Chat bind:show={showPanel} bind:selectedModelId />
|
||||
<Chat bind:show={showPanel} bind:selectedModelId bind:messages />
|
||||
{:else if selectedPanel === 'settings'}
|
||||
<Settings bind:show={showPanel} bind:selectedModelId />
|
||||
{/if}
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
export let messages = [];
|
||||
|
||||
let loaded = false;
|
||||
|
||||
let loading = false;
|
||||
@@ -35,9 +37,6 @@
|
||||
let messagesContainerElement: HTMLDivElement;
|
||||
|
||||
let system = '';
|
||||
let content = '';
|
||||
|
||||
let messages = [];
|
||||
let chatInputElement = null;
|
||||
|
||||
const scrollToBottom = () => {
|
||||
|
||||
Reference in New Issue
Block a user