mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-19 14:04:29 +01:00
- Replaced direct service initialization with Provider and ProxyProvider in main.dart. - Introduced a ChangeNotifierProxyProvider for ApiSettingsViewModel to include a reference to RestApiUtility. - Refactored MyApp class to fetch services from providers instead of direct instantiation. This commit enhances the dependency injection pattern to support dynamic updates to the API base URL. The use of ProxyProvider allows for more flexible and efficient management of dependencies, particularly between RestApiUtility and other services.