chore: display error message from response
This commit is contained in:
parent
e23cc166f7
commit
79b29f7913
@ -46,8 +46,7 @@ const ModelSearch = ({ onSearchLocal }: Props) => {
|
||||
errMessage = err.message
|
||||
}
|
||||
toaster({
|
||||
title: 'Oops, you may be rate limited, give it a bit more time',
|
||||
description: errMessage,
|
||||
title: errMessage,
|
||||
type: 'error',
|
||||
})
|
||||
console.error(err)
|
||||
|
||||
@ -34,9 +34,7 @@ export const fetchHuggingFaceRepoData = async (
|
||||
const data = response as HuggingFaceRepoData
|
||||
|
||||
if (data.tags.indexOf('gguf') === -1) {
|
||||
throw new Error(
|
||||
`${repoId} is not supported. Only GGUF models are supported.`
|
||||
)
|
||||
throw new Error(`Only GGUF models are currently supported.`)
|
||||
}
|
||||
|
||||
// fetching file sizes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user