Рет қаралды 4,103
Let's build a Flutter app that utilizes google_generative_ai and the Gemini AI model to build a real-time, multi-turn AI chatbot.
🚀 Learn Flutter / Build Apps 👇
🧑💻 App dev • www.atomsbox.com
✍ Flutter Templates • www.atomsbox.com/templates
💾 GitHub • www.github.com/maxonflutter
We will build an AI chatbot to generate responses to the user's messages. It will be real-time as the app will provide a response even before the Gemini AI model completes the full response.
00:00 Introduction
04:55 Kickstart the project and initial code walkthrough
12:05 WebSocket initial setup on the server-side
16:05 Google Gemini: Get an API key
21:40 Message Types and Message objects
26:40 Create user messages from the Flutter app
01:02:00 Create AI generated responses with Google's Gemini
To implement this project:
1. We will setup a backend server using Dart Frog as we will process the interaction with the Gemini model on the server-side to monitor and control access and the requests.
2. We will use the Google AI Dart SDK that is accessible through the new google_generative_ai package: pub.dev/packages/google_gener...