The quickest way to get started with the basics is to get an API key from either OpenAI or Azure OpenAI and to run one of the Java console applications/scripts below ...
If you don't use Java modules in your application, you also have to import the javafx.controls and javafx.fxml modules: Then, take a look at the JavadocViewerApp class of javadocviewer-app to see an ...