chore: typo
This commit is contained in:
parent
e6a295ccad
commit
d27fa7962f
@ -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,
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user