chore: typo

This commit is contained in:
Louis 2023-11-17 14:42:56 +07:00
parent e6a295ccad
commit d27fa7962f
2 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,10 @@ export function useActiveModel() {
const model = downloadedModels.find((e) => e.id === modelId) const model = downloadedModels.find((e) => e.id === modelId)
if (!model) { 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(() => ({ setStateModel(() => ({
state: 'start', state: 'start',
loading: false, loading: false,

View File

@ -41,8 +41,8 @@ export default function useDeleteConversation() {
deleteMessages(activeConvoId) deleteMessages(activeConvoId)
setCurrentPrompt('') setCurrentPrompt('')
toaster({ toaster({
title: 'Succes delete a chat', title: 'Chat successfully deleted.',
description: `Delete chat with ${activeModel?.name} has been completed`, description: `Chat with ${activeModel?.name} has been successfully deleted.`,
}) })
if (currentConversations.length > 0) { if (currentConversations.length > 0) {
setActiveConvoId(currentConversations[0].id) setActiveConvoId(currentConversations[0].id)