From 71f9c4f3ed3d6a9910a7c8159634fbdb6e958d4a Mon Sep 17 00:00:00 2001 From: zmhu Date: Wed, 27 Dec 2023 09:14:52 +0800 Subject: [PATCH] fix: diable prompts input textfield --- lib/pages/chat_edit.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/chat_edit.dart b/lib/pages/chat_edit.dart index 4dfa32d..d8ca796 100644 --- a/lib/pages/chat_edit.dart +++ b/lib/pages/chat_edit.dart @@ -165,7 +165,7 @@ class ChatEditPage extends StatelessWidget { ), )); if (controller.session.modelType == ModelType.chat.name) { - if (aiModel.disablePrompt != null && aiModel.disablePrompt != true) { + if (aiModel.disablePrompt == null || aiModel.disablePrompt == false) { widgets.add(ListTile( dense: true, title: Text(