Skip to content

Commit 8f033aa

Browse files
committed
comments for clarify; verifying operation on all supported platforms
1 parent 6ce10b8 commit 8f033aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crossword_companion/lib/services/gemini_service.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import '../platform/platform.dart';
1919

2020
class GeminiService {
2121
GeminiService() {
22+
// The model for inferring crossword data from images.
2223
_crosswordModel = FirebaseAI.googleAI().generativeModel(
2324
model: 'gemini-2.5-pro',
2425
generationConfig: GenerationConfig(
@@ -31,6 +32,8 @@ class GeminiService {
3132
clueSolverSystemInstruction,
3233
);
3334

35+
// The model for solving clues, including functions the model can call to
36+
// get more information about potential answers.
3437
_clueSolverModelWithFunctions = FirebaseAI.googleAI().generativeModel(
3538
model: 'gemini-2.5-flash',
3639
systemInstruction: clueSolverSystemInstructionContent,
@@ -39,6 +42,8 @@ class GeminiService {
3942
],
4043
);
4144

45+
// The model for solving clues, but without the tools and only for returning
46+
// the final JSON response with the answer and confidence score.
4247
_clueSolverModelWithSchema = FirebaseAI.googleAI().generativeModel(
4348
model: 'gemini-2.5-flash',
4449
systemInstruction: clueSolverSystemInstructionContent,

0 commit comments

Comments
 (0)