Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #22: update title to Composites AI #23

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/lib/repositories/function_tools_repository_imp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<FunctionTool> getAllFunctionTools() {
Expand Down
2 changes: 1 addition & 1 deletion domain/lib/usecases/chat_usecase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Message> sendMessages(List<Message> messages) {
final chatHistory = [systemMessage] + messages;
Expand Down
2 changes: 0 additions & 2 deletions lib/presentation/chat/viewModels/chat_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class ChatViewModel extends ChangeNotifier {
ChatSession? get selectedSession => _selectedSession;

List<String> defaultQuestions = [
"What is SwiftComp?",
"Calculate lamina engineering constants",
"Calculate lamina strain",
"Calculate lamina stress",
Expand All @@ -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.",
];

Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/chat/views/chat_message_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<meta name="apple-mobile-web-app-title" content="swiftcomp">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<title>swiftcomp</title>
<title>Composites AI</title>
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" type="text/css" href="splash/style.css">
</head>
Expand Down
Loading