From d27fa7962f987986360be4895f805006ae682782 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 17 Nov 2023 14:42:56 +0700 Subject: [PATCH] chore: typo --- web/hooks/useActiveModel.ts | 5 ++++- web/hooks/useDeleteConversation.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/hooks/useActiveModel.ts b/web/hooks/useActiveModel.ts index 3496f8396..57e3a0118 100644 --- a/web/hooks/useActiveModel.ts +++ b/web/hooks/useActiveModel.ts @@ -33,7 +33,10 @@ export function useActiveModel() { const model = downloadedModels.find((e) => e.id === modelId) if (!model) { - alert(`Model ${modelId} not found! Please re-download the model first.`) + toaster({ + title: `Model ${modelId} not found!`, + description: `Please download the model first.`, + }) setStateModel(() => ({ state: 'start', loading: false, diff --git a/web/hooks/useDeleteConversation.ts b/web/hooks/useDeleteConversation.ts index 36ae2a789..4b2aa9859 100644 --- a/web/hooks/useDeleteConversation.ts +++ b/web/hooks/useDeleteConversation.ts @@ -41,8 +41,8 @@ export default function useDeleteConversation() { deleteMessages(activeConvoId) setCurrentPrompt('') toaster({ - title: 'Succes delete a chat', - description: `Delete chat with ${activeModel?.name} has been completed`, + title: 'Chat successfully deleted.', + description: `Chat with ${activeModel?.name} has been successfully deleted.`, }) if (currentConversations.length > 0) { setActiveConvoId(currentConversations[0].id)