Fix typo and remove unused code in gemini_tasks sample (#2300)

- Fix typo
- Remove unused code.

---------

Co-authored-by: Parker Lougheed <parlough@gmail.com>
pull/2302/head
Rody Davis 4 months ago committed by GitHub
parent 649e0e4db9
commit d5c2522a3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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>[
@ -385,8 +380,9 @@ class _ExampleState extends State<Example> {
controller: controller,
decoration: textFieldDecoration(
context,
'Try "Add a task for..." or "What are my ucompleted '
'tasks?"'),
'Try "Add a task for..."'
'or "What are my uncompleted tasks?"',
),
onEditingComplete: sendMessage,
onSubmitted: (value) => sendMessage(),
),

Loading…
Cancel
Save