Let me introduce Simple OpenAI a Java http client library for sending requests to and receiving responses from the OpenAI Api. It exposes a consistent interface across all the services, yet as simple as you can find in other languages like Python or NodeJs.
Simple-OpenAI uses the CleverClient library for http communication, Jackson for Json parsing, and Lombok to minimize boilerplate code.
I would really like to get feedback/thoughts/concerns about this Java library in order to improve it or include any necessary functionality. Please feel free to drop a few lines here, I would appreciate it.
I’m happy to announce that we have released a new major version of our simple-openai library.
The main change is that from now on we support the use of OpenAI with two additional providers: Azure and Anyscale. Currently, we are supporting the chat completion service for both providers.
For the original provider we have full updated support for all the OpenAI services: audio, chat completion, completion, embedding, file, fine tuning, image, model, moderation, assistant, thread.
Sashi, this is some great stuff - thank you very much for this. I will be looking to test porting my existing code from another java client to yours. Would love to see you tackle Assistants V2 API as well. Keep up the good work!
“AI is like electricity. Just as electricity transformed every major industry a century ago, AI is now poised to do the same.” By Andrew Ng
New Release 3.2.0
Simple-OpenAI seeks to stay up to date with the most recent changes in OpenAI. Currently, it supports all existing features until May 9th, 2024 and will continue to update with future changes.
What’s new in this release?
Support for image inputs to the Assistants API
Fix some minor issues
If you are a Java developer venturing into the world of AI, don’t miss the opportunity to take a look at simple-openai.
Simple-OpenAI has been updated to support Structured Outputs to ensure the model will always generate responses that adhere to a Json Schema defined through Java classes.
Take a look at my latest article about Simple-OpenAI and learn about the library that allows you to integrate cutting-edge AI services into your Java applications in the easiest way possible.