This commit is contained in:
Timothy Jaeryang Baek
2025-07-08 12:50:06 +04:00
parent 8febc54a88
commit 09b5c1b4dc
2 changed files with 39 additions and 22 deletions

View File

@@ -31,6 +31,7 @@
export let enhancing = false;
export let streaming = false;
export let stopResponseFlag = false;
export let note = null;
@@ -38,12 +39,12 @@
export let messages = [];
export let onInsert = (content) => {};
export let onStop = () => {};
export let scrollToBottomHandler = () => {};
let loaded = false;
let loading = false;
let stopResponseFlag = false;
let messagesContainerElement: HTMLDivElement;
@@ -88,11 +89,6 @@ Based on the user's instruction, update and enhance the existing notes by incorp
}
};
const stopHandler = () => {
stopResponseFlag = true;
console.log('stopResponse');
};
const chatCompletionHandler = async () => {
if (selectedModelId === '') {
toast.error($i18n.t('Please select a model.'));
@@ -341,7 +337,7 @@ Based on the user's instruction, update and enhance the existing notes by incorp
acceptFiles={false}
inputLoading={loading}
onSubmit={submitHandler}
onStop={stopHandler}
{onStop}
>
<div slot="menu" class="flex items-center justify-between gap-2 w-full pr-2">
<div>