This is a chat application that uses the OpenAI API to generate AI-based responses.
To use this application, you need to configure an OpenAI API key:
- Create or edit the
local.propertiesfile in the root of the project. - Add the following line with your API key:
openai.api.key=your_api_key_hereIf you don't have an OpenAI API key, you can get one by following these steps:
- Sign up or log in to OpenAI.
- Go to the API Keys section on the platform.
- Create a new API key.
- Copy the key and add it to your
local.propertiesfile.
- Real-time chat with OpenAI's AI
- Intuitive user interface with Material Design 3
- Conversation management:
- Side menu with a list of all conversations
- Create new conversations
- Select and switch between conversations
- Delete any conversation
- AI-generated titles for conversations based on first messages
- Support for long messages
- Loading indicator during response generation
- Kotlin
- Jetpack Compose
- Material 3
- Hilt (Dependency Injection)
- ViewModel (Architecture Components)
- Room Database (for local storage)
- OpenAI API
- Ktor (HTTP Client)