Best Practices for Using OpenAI with Java

What is the recommended way to integrate OpenAI with Java?

  1. Should I use the OpenAI API directly in Java?
  2. Is there an unofficial SDK available for Java?
  3. Would it be better to have the Java backend communicate with a more, OpenAI-supported backend (e.g., Python)?

I’m interested in understanding how others are using OpenAI with Java and the best practices for doing so effectively.

Welcome to the community!

This post might help…

@arin48

simple-openai is a Java community library listed by OpenAI.

By far the best use for OpenAI with java is taking the code and ask the model to convert it to another programming language :sweat_smile::tada: