Skip to content

Commit 254845e

Browse files
committed
Function calling doesn't work with the -latest model versions, see google-gemini/deprecated-generative-ai-dart#81
1 parent 2bbf69f commit 254845e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/interaction/view/interaction_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class _InteractionViewState extends State<InteractionView>
255255
final modelType =
256256
widget.interactionMode == InteractionCubit.quickMode ? 'flash' : 'pro';
257257
final model = GenerativeModel(
258-
model: 'gemini-1.5-$modelType-latest',
258+
model: 'gemini-1.5-$modelType',
259259
apiKey: preferencesState?.geminiApiKey ?? geminiApiKey,
260260
tools: getToolDeclarations(preferencesState),
261261
);

0 commit comments

Comments
 (0)