diff --git a/frontend/src/pages/Completion.tsx b/frontend/src/pages/Completion.tsx index f6a6af3..f444006 100644 --- a/frontend/src/pages/Completion.tsx +++ b/frontend/src/pages/Completion.tsx @@ -137,6 +137,7 @@ const CompletionPanel: FC = observer(() => { const onSubmit = (prompt: string) => { if (commonStore.status.modelStatus === ModelStatus.Offline) { toast(t('Please click the button in the top right corner to start the model'), { type: 'warning' }); + commonStore.setCompletionGenerating(false); return; }