This repository contains the source code for a chat application that uses the OpenAI API (and openai-kotlin library available here). The app allows users to chat with an AI model that uses OpenAI's GPT-3 language model to generate responses using the Chat Mode in OpenAI Playground.
- Koin for dependency injection
- Jetpack Compose and Material3 for UI design
device-2023-04-29-121149.webm
- Simply replace
OPEN_AI_API_KEY
inapp/gradle.properties
with your OpenAI API key that you can find on OpenAI platform - NEVER publish that file to Github. I did it to show you how it works and have a quick setup.
Enjoy!
Feel free to contact me at donatienthorez@gmail.com or make a PR to this repo.