This commit is contained in:
josc146 2023-05-24 23:17:08 +08:00
parent 673ecb489e
commit ed330566e3

View File

@ -137,6 +137,7 @@ const CompletionPanel: FC = observer(() => {
const onSubmit = (prompt: string) => { const onSubmit = (prompt: string) => {
if (commonStore.status.modelStatus === ModelStatus.Offline) { if (commonStore.status.modelStatus === ModelStatus.Offline) {
toast(t('Please click the button in the top right corner to start the model'), { type: 'warning' }); toast(t('Please click the button in the top right corner to start the model'), { type: 'warning' });
commonStore.setCompletionGenerating(false);
return; return;
} }