Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vertexai/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

class _ChatWidgetState extends State<ChatWidget> {
late final GenerativeModel _model;
late final GenerativeModel _functionCallModel;

Check warning on line 76 in vertexai/lib/main.dart

View workflow job for this annotation

GitHub Actions / analyze

The value of the field '_functionCallModel' isn't used.

Try removing the field, or using it. See https://dart.dev/diagnostics/unused_field to learn more about this problem.
late final ChatSession _chat;
final ScrollController _scrollController = ScrollController();
final TextEditingController _textController = TextEditingController();
Expand All @@ -88,10 +88,10 @@

initFirebase().then((value) {
_model = FirebaseVertexAI.instance.generativeModel(
model: 'gemini-1.5-flash-preview-0514',
model: 'gemini-2.0-flash-001',
);
_functionCallModel = FirebaseVertexAI.instance.generativeModel(
model: 'gemini-1.5-flash-preview-0514',
model: 'gemini-2.0-flash-001',
tools: [
Tool(functionDeclarations: [
FunctionDeclaration(
Expand Down
Loading