Flutter-Gemini-Chatbot
這是一個示範,說明如何將 Flutter 應用程式與 Gemini API 連接
- 星標
- 5
- 分支
- 0
- 最近推送(UTC)
- 2024年3月22日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Flutter-Gemini Chatbot
This repository hosts the source code for a chatbot built with Flutter and powered by the Gemini API. The project demonstrates the integration of a cutting-edge AI API within a Flutter application to facilitate AI-driven conversations.
Introduction
The Flutter-Gemini Chatbot is designed to showcase the practical implementation of the Gemini API for developing conversational AI applications. This project provides a foundational framework for Flutter developers interested in incorporating AI features into their apps.
Getting Started
Follow these instructions to set up and run the Flutter-Gemini Chatbot on your local machine.
Prerequisites
- Ensure you have Flutter installed on your system. For installation guidance, refer to the official Flutter installation guide.
- Obtain an active Gemini API key from Google AI Studio.
Installation
- Clone this repository to your local machine:
git clone https://github.com/ayman3000/Flutter-Gemini_Chatbot.git - Navigate to the project directory:
cd Flutter-Gemini_Chatbot - Install the necessary Flutter packages:
flutter pub get - Create a
.envfile in the project's root directory and add your Gemini API key:
Adjust your project configuration as needed to securely load the API key.GEMINI_API_KEY=your_gemini_api_key_here
Running the Application
To launch the app in a development environment, execute:
flutter run
How to Use
The Flutter-Gemini Chatbot serves as both a reference and a starting point for developers looking to explore the capabilities of the Gemini API or to develop their own AI-powered chat applications using Flutter.
Contributing
Your contributions are welcome! If you have suggestions for improving this project, please feel free to fork the repository and submit a pull request.
YouTube Tutorial
For a detailed guide on how to integrate Flutter with the Gemini API, check out my YouTube video: How to Integrate Flutter with Gemini API.
License
This project is licensed under the MIT License. See the LICENSE file in this repository for more information.
Acknowledgments
- A special thank you to the Gemini API for providing the AI capabilities.
- Appreciation to the Flutter community for continuous support and inspiration.
分類
使用的依賴
依賴清單 6 項
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.6 - flutter_riverpod
^2.5.1 - google_generative_ai
^0.2.2 - flutter_test開發依賴
{"sdk":"flutter"} - flutter_lints開發依賴
^3.0.0
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗