From 375d38f7bad8cc3bceef85372ebf3012805cafb5 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Wed, 21 May 2025 13:56:05 +0200 Subject: [PATCH] update Mzansi AI Thoughts window --- .../mzansi_ai/package_tools/ai_chat.dart | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart b/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart index 030d3220..48850001 100644 --- a/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart +++ b/Frontend/lib/mih_packages/mzansi_ai/package_tools/ai_chat.dart @@ -236,23 +236,20 @@ class _AiChatState extends State { Navigator.of(context).pop(); }, windowBody: Column( + mainAxisSize: MainAxisSize.max, children: [ Stack( children: [ - Column( - children: [ - Text( - snapshot.requireData, - textAlign: TextAlign.left, - style: TextStyle( - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - fontSize: _chatFrontSize, - fontWeight: FontWeight.bold, - ), - ), - ], + Text( + snapshot.requireData, + textAlign: TextAlign.left, + style: TextStyle( + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + fontSize: _chatFrontSize, + fontWeight: FontWeight.bold, + ), ), Positioned( bottom: 0, @@ -657,7 +654,7 @@ class _AiChatState extends State { ); _modelController.text = 'gemma3:4b'; _fontSizeController.text = _chatFrontSize.ceil().toString(); - systemPromt = setSystemPromt(); + _chatHistory.add( ollama.Message( role: ollama.MessageRole.system,