|
@@ -11,12 +11,12 @@
|
|
|
import ResponseMessage from './Messages/ResponseMessage.svelte';
|
|
|
import Placeholder from './Messages/Placeholder.svelte';
|
|
|
import Spinner from '../common/Spinner.svelte';
|
|
|
+ import { cancelChatCompletion } from '$lib/apis/ollama';
|
|
|
|
|
|
export let chatId = '';
|
|
|
export let sendPrompt: Function;
|
|
|
export let continueGeneration: Function;
|
|
|
export let regenerateResponse: Function;
|
|
|
- export let stopResponse: Function;
|
|
|
|
|
|
export let processing = '';
|
|
|
export let bottomPadding = false;
|
|
@@ -229,7 +229,7 @@
|
|
|
|
|
|
await updateChatById(localStorage.token, chatId, { history });
|
|
|
await chats.set(await getChatList(localStorage.token));
|
|
|
- stopResponse();
|
|
|
+ await cancelChatCompletion(localStorage.token, chatId);
|
|
|
};
|
|
|
</script>
|
|
|
|