AskAI is a sleek Android app built with Kotlin that lets you interact with OpenAI's GPT-3 model in real time. Simply type your queries and get intelligent, instant responses powered by the OpenAI API.
- Real-time AI responses: Chat with GPT-3 using the latest OpenAI API.
- User-friendly interface: Clean and intuitive UI for easy question input and response viewing.
- Network aware: Checks for internet connectivity before sending requests.
- Loading indicator: Shows progress while fetching AI responses.
- Clear conversation: Easily reset your input and response fields.
- Exit confirmation: Prevent accidental app closures with a confirm dialog.
| Component | Technology |
|---|---|
| Language | Kotlin |
| Networking | OkHttp, Coroutines |
| UI Framework | Android Views, Material Design |
| API | OpenAI GPT-3 Completions |
- User inputs a question and taps Send.
- App checks network connectivity.
- If online, sends a POST request to OpenAI API with user prompt.
- Receives GPT-3's generated text response asynchronously.
- Displays the AI response on screen.
- User can clear inputs or exit with confirmation.
- Clone the repo.
- Open in Android Studio.
- Replace
API_KEYinMainActivity.ktwith your OpenAI API key. - Build and run on your Android device or emulator.
Copyright 2023 Haider Qadir