Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Nov 20, 2023
1 parent e6a295c commit d27fa79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion web/hooks/useActiveModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions web/hooks/useDeleteConversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d27fa79

Please sign in to comment.