v0.5.0
From this release onward, the published artifact will be named jvm-openai
instead of chatjpt
. The project itself has been renamed as well. Old versions of the library would still be available on Maven Central under the old name.
This release contains the following additions:
General
- Renamed
io.github.stefanbratanov.chatjpt
package toio.github.stefanbratanov.jvm.openai
- An option to pass custom instance of the
HttpClient
used for the API requests - Add
Error
record to theOpenAIException
which contains all the information that OpenAI API returns in case of errors.
Chat
- Support passing array of content parts (Text/Image) for the
content
field when constructing a message.
Audio/Images
- Add async functionality
Full Changelog: v0.4.0...v0.5.0
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:jvm-openai:0.5.0")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>jvm-openai</artifactId>
<version>0.5.0</version>
</dependency>