Skip to content

Commit

Permalink
Fix typo and remove unused code in gemini_tasks sample (#2300)
Browse files Browse the repository at this point in the history
- Fix typo
- Remove unused code.

---------

Co-authored-by: Parker Lougheed <[email protected]>
  • Loading branch information
rodydavis and parlough committed May 22, 2024
1 parent 649e0e4 commit d5c2522
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gemini_tasks/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ class _ExampleState extends State<Example> {
model: 'gemini-pro',
apiKey: widget.apiKey,
requestOptions: const RequestOptions(apiVersion: 'v1beta'),

// systemInstruction: Content.text(
// 'You are a task bot that can complete, add, '
// 'and filter tasks for a todo style application.',
// ),
tools: [
Tool(
functionDeclarations: <FunctionDeclaration>[
Expand Down Expand Up @@ -384,9 +379,10 @@ class _ExampleState extends State<Example> {
child: TextField(
controller: controller,
decoration: textFieldDecoration(
context,
'Try "Add a task for..." or "What are my ucompleted '
'tasks?"'),
context,
'Try "Add a task for..."'
'or "What are my uncompleted tasks?"',
),
onEditingComplete: sendMessage,
onSubmitted: (value) => sendMessage(),
),
Expand Down

0 comments on commit d5c2522

Please sign in to comment.