Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrsshopnil/ai-chatbot
A SwiftUI-based AI chat application leveraging the Gemini API to deliver dynamic, conversational AI capabilities.
https://github.com/hrsshopnil/ai-chatbot
ai chatbot gemini-api ios swift swiftui xcode
Last synced: about 1 month ago
JSON representation
A SwiftUI-based AI chat application leveraging the Gemini API to deliver dynamic, conversational AI capabilities.
- Host: GitHub
- URL: https://github.com/hrsshopnil/ai-chatbot
- Owner: hrsshopnil
- Created: 2024-11-17T13:28:12.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T18:36:23.000Z (about 2 months ago)
- Last Synced: 2024-11-18T19:39:45.875Z (about 2 months ago)
- Topics: ai, chatbot, gemini-api, ios, swift, swiftui, xcode
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwiftUI AI Chat App
A SwiftUI-based AI chat application leveraging the Gemini API to deliver dynamic, conversational AI capabilities.
## Features
- **Real-Time Chat**: Chat with an AI in a seamless and interactive user interface.
- **Powered by Gemini API**: Leverages state-of-the-art AI models for contextual and accurate responses.
- **Customizable UI**: Built with SwiftUI, allowing easy customization and theming.---
## Screenshots
---
## Requirements- **iOS 16.0+**
- **Xcode 14.0+**
- **Gemini API Key** (Signup and get your API key from the [Gemini API](https://gemini-api.com))---
## Installation
1. **Clone the Repository**:
```bash
git clone https://github.com/yourusername/swiftui-ai-chat-app.git
cd swiftui-ai-chat-app
```2. **Install Dependencies**:
This project uses `Swift Package Manager` (SPM). Open the project in Xcode, and it will automatically fetch dependencies.3. **Set up Gemini API Key**:
- Create a property list file and add a item named API_KEY, then put your api key as value
---## Usage
1. **Run the Project**:
- Open the project in Xcode and select your target device.
- Click `Run` (⌘R) to build and launch the app.2. **Start Chatting**:
- Enter your query in the chat box and hit "Send."
- The AI will respond instantly with context-aware replies.---
## Gemini API Integration
This app integrates with the Gemini API using the following endpoints:
- **Chat**: For sending user messages and receiving AI responses.
```http
POST https://api.gemini.com/v1/chat
Headers:
- Authorization: Bearer YOUR_API_KEY_HERE
Body:
{
"message": "Your query here"
}