Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Integrate ApiSettingsViewModel into main.dart

hunteraraujoe69e683f70fa
diff --git a/lib/main.dart b/lib/main.dart
index 467cc2a663..ade23b4cd9 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,3 +1,4 @@
+import 'package:auto_gpt_flutter_client/viewmodels/api_settings_viewmodel.dart';
import 'package:flutter/material.dart';
import 'views/main_layout.dart';
import 'package:provider/provider.dart';
@@ -42,6 +43,7 @@ class MyApp extends StatelessWidget {
create: (context) => ChatViewModel(chatService)),
ChangeNotifierProvider(
create: (context) => TaskViewModel(taskService)),
+ ChangeNotifierProvider(create: (context) => ApiSettingsViewModel()),
],
child: const MainLayout(),
), // Set MainLayout as the home screen of the app