Releases: StefanBratanov/jvm-openai
v0.6.0
This release contains the following additions/improvements:
General
- Improvements for
multipart/form-data
requests
Audio
- Add
response_format
andtimestamp_granularities
parameters when creating a transcription - Add
response_format
parameter when creating a translation
Chat
- Add
instance_id
parameter when creating a chat completion
Embeddings
- Add
dimensions
parameter when creating embeddings
Full Changelog: v0.5.2...v0.6.0
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:jvm-openai:0.6.0")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>jvm-openai</artifactId>
<version>0.6.0</version>
</dependency>
v0.5.2
This release contains the following additions/improvements:
General
- Use
JsonInclude.Include.NON_ABSENT
instead ofJsonInclude.Include.NON_EMPTY
in order to serialize empty collections/maps/arrays/strings
Runs
- Add ability to pass
additional_instructions
when creating a run - Add
usage
field toThreadRun
andThreadRunStep
Full Changelog: v0.5.1...v0.5.2
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:jvm-openai:0.5.2")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>jvm-openai</artifactId>
<version>0.5.2</version>
</dependency>
v0.5.1
This release contains the following additions/fixes:
General
- Make
jackson-annotations
a compile dependency to resolve compile warnings
Chat
- Add capability to pass
StreamChatCompletionSubscriber
interface implementation for stream requests in order to subscribe to streamed responses - The following objects were renamed to align more closely with the API:
ChatRequest
->CreateChatCompletionRequest
ChatResponse
->ChatCompletion
ChatChunkResponse
->ChatCompletionChunk
Full Changelog: v0.5.0...v0.5.1
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:jvm-openai:0.5.1")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>jvm-openai</artifactId>
<version>0.5.1</version>
</dependency>
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>
v0.4.0
This release adds support for the Assistants, Threads, Messages and Runs OpenAI Beta API endpoints.
Full Changelog: v0.3.0...v0.4.0
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:chatjpt:0.4.0")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>chatjpt</artifactId>
<version>0.4.0</version>
</dependency>
v0.3.0
This release contains the following additions:
Chat
- Add
logprobs
support - Add support for
stop
request parameter - Add support for
tools
andtool_choice
request parameters - Add Streaming support
Embeddings
- Add support for the different types of
input
request parameter
Full Changelog: v0.2.0...v0.3.0
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:chatjpt:0.3.0")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>chatjpt</artifactId>
<version>0.3.0</version>
</dependency>
v0.2.0
This release adds support for the Audio, Embeddings, Fine-tuning, Files, Images and Moderations OpenAI API endpoints.
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:chatjpt:0.2.0")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>chatjpt</artifactId>
<version>0.2.0</version>
</dependency>
v0.1.0
This initial release has support for the Chat and Models OpenAI API endpoints.
The artifact is available on Maven Central and can be imported as follows:
Gradle
implementation("io.github.stefanbratanov:chatjpt:0.1.0")
Maven
<dependency>
<groupId>io.github.stefanbratanov</groupId>
<artifactId>chatjpt</artifactId>
<version>0.1.0</version>
</dependency>