diff --git a/web/containers/ModelSearch/index.tsx b/web/containers/ModelSearch/index.tsx index 9f2910fef9..9c3ca1cb02 100644 --- a/web/containers/ModelSearch/index.tsx +++ b/web/containers/ModelSearch/index.tsx @@ -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) diff --git a/web/utils/huggingface.test.ts b/web/utils/huggingface.test.ts index 26975f6909..9f616cdbea 100644 --- a/web/utils/huggingface.test.ts +++ b/web/utils/huggingface.test.ts @@ -64,7 +64,7 @@ describe('huggingface utils', () => { }) await expect(fetchHuggingFaceRepoData('user/repo')).rejects.toThrow( - 'user/repo is not supported. Only GGUF models are supported.' + 'Only GGUF models are currently supported.' ) }) diff --git a/web/utils/huggingface.ts b/web/utils/huggingface.ts index 1550f183a1..9167ea7dc8 100644 --- a/web/utils/huggingface.ts +++ b/web/utils/huggingface.ts @@ -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