Skip to content

Commit

Permalink
fix: properly fixed model list not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Jul 19, 2024
1 parent fa3fe73 commit c530008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions components/Endpoint/Local.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const Local = () => {
Llama.deleteModel(currentModel ?? '')
.then(() => {
Logger.log('Model Deleted Successfully', true)
setCurrentModel(undefined)
getModels()
})
.catch(() => Logger.log('Could Not Delete Model', true))
Expand All @@ -94,9 +95,7 @@ const Local = () => {

const handleImport = async () => {
setModelLoading(true)
await Llama.importModel().then(() => {
getModels()
})
await Llama.importModel()
await getModels()
setModelLoading(false)
}
Expand Down
2 changes: 1 addition & 1 deletion constants/LlamaLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export namespace Llama {
.catch((error) => {
Logger.log(`Import Failed: ${error.message}`, true)
})
}).catch
})
}

export const getKVSizeMB = async () => {
Expand Down

0 comments on commit c530008

Please sign in to comment.