Skip to content

Releases: StefanBratanov/jvm-openai

v0.6.0

14 Feb 07:08
Compare
Choose a tag to compare

This release contains the following additions/improvements:

General

  • Improvements for multipart/form-data requests

Audio

  • Add response_format and timestamp_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

20 Jan 10:52
Compare
Choose a tag to compare

This release contains the following additions/improvements:

General

  • Use JsonInclude.Include.NON_ABSENT instead of JsonInclude.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 to ThreadRun and ThreadRunStep

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

13 Jan 17:16
Compare
Choose a tag to compare

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

12 Jan 10:44
Compare
Choose a tag to compare

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 to io.github.stefanbratanov.jvm.openai
  • An option to pass custom instance of the HttpClient used for the API requests
  • Add Error record to the OpenAIException 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

08 Jan 11:59
Compare
Choose a tag to compare

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

05 Jan 08:19
Compare
Choose a tag to compare

This release contains the following additions:

Chat

  • Add logprobs support
  • Add support for stop request parameter
  • Add support for tools and tool_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

02 Jan 12:15
Compare
Choose a tag to compare

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

26 Dec 06:20
Compare
Choose a tag to compare

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>