Gemini Chat App is a simple Flutter application that demonstrates a chat interface powered by the Gemini Generative AI model. Users can interact by entering prompts, and the app responds with AI-generated content.
- Chat Interface: Users can send prompts in a chat-like interface.
- Generative AI Model: Utilizes the Gemini Generative AI model to generate responses to user prompts.
To run the app locally, follow these steps:
-
Clone the repository:
git clone https://github.com/ashiqu-ali/gemini-chatbot.git
-
Install Dependencies
flutter pub get
-
Run the app
flutter run
- flutter/material.dart: Flutter framework for building the UI.
- google_generative_ai: Dependency for interacting with the Gemini Generative AI model.
- intl: Internationalization and localization package for formatting dates.
Before running the app, make sure to replace the placeholder API key in lib/pages/chat_screen.dart
with a valid Gemini Generative AI API key.
- Visit Gemini Generative AI and sign up for an account.
- Obtain your API key from the Gemini Generative AI dashboard.
- Replace the placeholder API key in
lib/pages/chat_screen.dart
with your actual API key.
static const apiKey = "YOUR_API_KEY";