File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
crossword_companion/lib/services Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import '../platform/platform.dart';
1919
2020class 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,
You can’t perform that action at this time.
0 commit comments