Skip to content

yugoccp/hello-java-gpt

Repository files navigation

Hello Java GPT

Sample project to start using the power of Generative AI with Java!

Requirements

  • Java 17
  • Maven 3
  • OpenAI account

Usage

  1. Create a copy of config.properties.example and rename to config.properties
  2. Fill the config.properties file with the OpenAI API token and organization ID
  3. Build the application from the source code:
./mvnw clean package
  1. Run the EmojiBot example with
./mvnw exec:java -D'exec.mainClass=org.yugoccp.samples.EmojiBotGPT' -D'exec.args=./config.properties'
  1. Or run the TextBot example with
./mvnw exec:java -D'exec.mainClass=org.yugoccp.samples.TextBotGPT' -D'exec.args=./config.properties <TEXT FILE PATH>'

Reference

Follow Soham Dasgupta (sohamda) and his awesome SK Basic repo for more!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages