GetStream/gemini-android
✨ Gemini Android demonstrates Google's Generative AI on Android with Stream Chat SDK for Compose.
What it solves
這是一個為將 Google 的 Gemini AI 整合到 Android 應用程式中而提供的參考實作。它展示了如何將生成式 AI 模型與即時聊天基礎設施結合,以建立一個 AI 驅動的訊息傳遞體驗。
How it works
此應用程式使用 Gemini API 進行生成式 AI 功能,並使用 Stream Chat SDK for Compose 來處理訊息 UI 與即時事件處理。它是根據 Google 的官方指南,使用現代 Android 架構建構的,利用 Jetpack Compose 進行 UI 製作,使用 Hilt 進行依賴注入,並使用 Kotlin Coroutines 處理背景任務。
Who it’s for
想要學習如何使用 Gemini SDK 實作生成式 AI 功能,並使用 Stream Chat SDK 建構專業聊天介面的 Android 開發者。
Highlights
- Gemini API Integration: Demonstrates the use of Google's Generative AI SDK on Android.
- Real-time Messaging: Uses Stream Chat SDK for Compose to manage the chat system.
- Modern Android Stack: Implemented with Jetpack Compose, Hilt, Room, and Datastore.
- Modular Architecture: Uses a modularization strategy to improve reusability and reduce build times.