Skip to content

Commit d4f93ef

Browse files
committed
Keeping step 3 alive
1 parent 0804947 commit d4f93ef

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

colorist/step_03/lib/providers/gemini.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import 'system_prompt.dart';
1313

1414
part 'gemini.g.dart';
1515

16-
@riverpod
16+
@Riverpod(keepAlive: true)
1717
Future<FirebaseApp> firebaseApp(Ref ref) =>
1818
Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
1919

20-
@riverpod
20+
@Riverpod(keepAlive: true)
2121
Future<GenerativeModel> geminiModel(Ref ref) async {
2222
await ref.watch(firebaseAppProvider.future);
2323
final systemPrompt = await ref.watch(systemPromptProvider.future);

colorist/step_03/lib/providers/gemini.g.dart

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

colorist/step_03/lib/providers/system_prompt.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
77

88
part 'system_prompt.g.dart';
99

10-
@riverpod
10+
@Riverpod(keepAlive: true)
1111
Future<String> systemPrompt(Ref ref) =>
1212
rootBundle.loadString('assets/system_prompt.md');

colorist/step_03/lib/providers/system_prompt.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

colorist/step_03/lib/services/gemini_chat_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ class GeminiChatService {
4545
}
4646
}
4747

48-
@riverpod
48+
@Riverpod(keepAlive: true)
4949
GeminiChatService geminiChatService(Ref ref) => GeminiChatService(ref);

colorist/step_03/lib/services/gemini_chat_service.g.dart

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)