3,671 prompts from top AI collections
← Back to Market
[LIVE] [nawzaysfinah/chatbot-android] 2 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,171 characters
Status: [LIVE] Endpoints found: https://openrouter.ai/api/v1/chat/completions https://openrouter.ai/api/v1/chat Source: https://github.com/nawzaysfinah/chatbot-android # chatbot-android 🤖 > A native Android LLM chatbot in Kotlin — connects to OpenRouter's free API tier and displays responses in styled chat bubbles. ![Kotlin](https://img.shields.io/badge/Kotlin-100%25-7F52FF?logo=kotlin&logoColor=white) ![Android](https://img.shields.io/badge/Android-SDK-3DDC84?logo=android&logoColor=white) ![OpenRouter](https://img.shields.io/badge/OpenRouter-LLM_API-black) ![License](https://img.shields.io/badge/license-MIT-green) --- ## Why This Exists Most LLM integration examples are web-based. This project fills the gap for students learning **native Android development** — showing how to wire up a real LLM API call from Kotlin, handle async HTTP, parse JSON responses, and render them in a proper chat UI using standard Android components. No React Native, no Flutter. Pure Kotlin, `RecyclerView`, `OkHttp`, and an OpenRouter API key — the essentials you'd use in any production Android app that talks to an AI backend. --- ## Screenshots | Home screen | Chat in action | |---|---| | ![Home](https://private-user-images.githubusercontent.com/12972773/474889218-00816cd0-d620-4b88-9af6-83dc2752a210.png) | ![Chat](https://private-user-images.githubusercontent.com/12972773/474889393-0e41d54f-3904-4ecf-8c2b-8994eebe511a.png) | --- ## How It Works ``` User types message │ ▼ MainActivity.kt builds JSON request body { model: "mistralai/mistral-7b-instruct", messages: [...] } │ ▼ OkHttp POST → https://openrouter.ai/api/v1/chat/completions │ ▼ JSON response parsed → assistant message extracted │ ▼ ChatAdapter appends message to RecyclerView User messages → right-aligned green bubble AI responses → left-aligned white bubble ``` The full conversation history is maintained in memory and sent with each request, giving the model context for multi-turn conversations. --- ## Tech Stack | Component | Technology | |---|---| | Language | Kotlin | |
Download .txt