Sample project to start using the power of Generative AI with Java!
- Java 17
- Maven 3
- OpenAI account
- Create a copy of
config.properties.exampleand rename toconfig.properties - Fill the
config.propertiesfile with the OpenAI API token and organization ID - Build the application from the source code:
./mvnw clean package- Run the EmojiBot example with
./mvnw exec:java -D'exec.mainClass=org.yugoccp.samples.EmojiBotGPT' -D'exec.args=./config.properties'- Or run the TextBot example with
./mvnw exec:java -D'exec.mainClass=org.yugoccp.samples.TextBotGPT' -D'exec.args=./config.properties <TEXT FILE PATH>'Follow Soham Dasgupta (sohamda) and his awesome SK Basic repo for more!