From f5aa9968c4060415df580e0201155a470a6b2658 Mon Sep 17 00:00:00 2001 From: wenbinyu-PU <78181625+wenbinyu-PU@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:38:39 -0400 Subject: [PATCH] Fix #22: update title to Composite AI --- data/lib/repositories/function_tools_repository_imp.dart | 2 +- domain/lib/usecases/chat_usecase.dart | 2 +- lib/presentation/chat/viewModels/chat_view_model.dart | 2 -- lib/presentation/chat/views/chat_message_list.dart | 2 +- web/index.html | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/data/lib/repositories/function_tools_repository_imp.dart b/data/lib/repositories/function_tools_repository_imp.dart index a488608..34ec54f 100644 --- a/data/lib/repositories/function_tools_repository_imp.dart +++ b/data/lib/repositories/function_tools_repository_imp.dart @@ -3,7 +3,7 @@ import 'package:domain/repositories_abstract/function_tools_repository.dart'; class FunctionToolsRepositoryImp extends FunctionToolsRepository { String get commonDescription => - "Initially, display the default input parameters to the user, clearly outlining each parameter's purpose and current value. Allow the user to either proceed with these default values or modify them as needed to better suit their specific requirements. Based on the user’s decision to either retain or change the parameters, continue with the appropriate calculation process, ensuring that all modifications are fully integrated into the calculation to reflect the user’s preferences accurately."; + "Display the default input parameters first. Allow the user to either proceed with these default values or modify them as needed. Based on the user’s decision to either keep or change the parameters, continue with the appropriate calculation process, ensure that all modifications are used in the calculation to reflect the user’s preferences accurately."; @override List getAllFunctionTools() { diff --git a/domain/lib/usecases/chat_usecase.dart b/domain/lib/usecases/chat_usecase.dart index 8cc4c14..a04ec84 100644 --- a/domain/lib/usecases/chat_usecase.dart +++ b/domain/lib/usecases/chat_usecase.dart @@ -12,7 +12,7 @@ class ChatUseCase { final Message systemMessage = Message( role: "system", content: - "You are an expert assistant specialized in composite materials. Your role is to provide accurate and detailed answers to questions related to composite material properties, design, calculations, and analysis."); + "You are an expert in composite materials and structures. Please answer questions related to composites design and manufacturing."); Stream sendMessages(List messages) { final chatHistory = [systemMessage] + messages; diff --git a/lib/presentation/chat/viewModels/chat_view_model.dart b/lib/presentation/chat/viewModels/chat_view_model.dart index 168dc40..88a82d3 100644 --- a/lib/presentation/chat/viewModels/chat_view_model.dart +++ b/lib/presentation/chat/viewModels/chat_view_model.dart @@ -46,7 +46,6 @@ class ChatViewModel extends ChangeNotifier { ChatSession? get selectedSession => _selectedSession; List defaultQuestions = [ - "What is SwiftComp?", "Calculate lamina engineering constants", "Calculate lamina strain", "Calculate lamina stress", @@ -55,7 +54,6 @@ class ChatViewModel extends ChangeNotifier { "Calculate laminar strain", "Calculate laminate stress", "Calculates the UDFRC (Unidirectional fibre-reinforced composites) properties by rules of mixture", - "What is the upper bound of Young's modulus for composites?", // "Give me some math equations.", ]; diff --git a/lib/presentation/chat/views/chat_message_list.dart b/lib/presentation/chat/views/chat_message_list.dart index 6b9955f..e45656c 100644 --- a/lib/presentation/chat/views/chat_message_list.dart +++ b/lib/presentation/chat/views/chat_message_list.dart @@ -34,7 +34,7 @@ class ChatMessageList extends StatelessWidget { ), ), Text( - "Ask a question to get started!", + "Select a tool to get started!", style: TextStyle(fontSize: 18, color: Colors.grey), ), SizedBox(height: 20), diff --git a/web/index.html b/web/index.html index e01787d..83fa3d9 100644 --- a/web/index.html +++ b/web/index.html @@ -26,7 +26,7 @@ - swiftcomp + Composites AI