diff --git a/web/hooks/useActiveModel.ts b/web/hooks/useActiveModel.ts index 20b8aec15..db70b0aeb 100644 --- a/web/hooks/useActiveModel.ts +++ b/web/hooks/useActiveModel.ts @@ -23,7 +23,10 @@ export function useActiveModel() { const { downloadedModels } = useGetDownloadedModels() const startModel = async (modelId: string) => { - if (activeModel && activeModel.id === modelId) { + if ( + (activeModel && activeModel.id === modelId) || + (stateModel.model === modelId && stateModel.loading) + ) { console.debug(`Model ${modelId} is already init. Ignore..`) return }