diff --git a/lib/core/providers/app_providers.dart b/lib/core/providers/app_providers.dart index 21c3563..3c53a35 100644 --- a/lib/core/providers/app_providers.dart +++ b/lib/core/providers/app_providers.dart @@ -989,10 +989,8 @@ class ActiveConversationNotifier extends Notifier { } // Provider to load full conversation with messages -final loadConversationProvider = FutureProvider.family(( - ref, - conversationId, -) async { +@riverpod +Future loadConversation(Ref ref, String conversationId) async { final api = ref.watch(apiServiceProvider); if (api == null) { throw Exception('No API service available'); @@ -1011,7 +1009,7 @@ final loadConversationProvider = FutureProvider.family(( ); return fullConversation; -}); +} // Provider to automatically load and set the default model from user settings or OpenWebUI final defaultModelProvider = FutureProvider((ref) async {