Skip to content

Commit 0804947

Browse files
committed
Keeping step 4 alive
1 parent 70e6f1d commit 0804947

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

colorist/step_04/lib/providers/gemini.dart

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

1515
part 'gemini.g.dart';
1616

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

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

colorist/step_04/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_04/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_04/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_04/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_04/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.

colorist/step_04/lib/services/gemini_tools.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ class GeminiTools {
2727
];
2828
}
2929

30-
@riverpod
30+
@Riverpod(keepAlive: true)
3131
GeminiTools geminiTools(Ref ref) => GeminiTools(ref);

colorist/step_04/lib/services/gemini_tools.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)