Skip to content

Releases: aallam/openai-kotlin

3.6.0

24 Nov 18:07
61c2733
Compare
Choose a tag to compare

This release represents a significant update to the library. Following OpenAI DevDay 2023, it introduces a range of new features and improvements, including new APIs and multimodal capabilities.

Added

  • Images: Support for model selection for ImageCreation, ImageEdit and ImageVariations (#257) (thanks @FilipObornik)
  • Chat: add tool calls (#256)
  • Chat: add vision feature (#258)
  • Config: adding ktor engine config to support Kotlin Scripting (#261) (thanks @DevSrSouza)
  • Audio: add speech-to-text (#263)

Beta

  • Assistants: api implementation (#259)
  • Threads: api implementation (#262)
  • Messages: api implementation (#262)
  • Runs: api implementation (#262)

3.5.1

05 Nov 18:13
8c7c0fc
Compare
Choose a tag to compare

Fix

  • Models: permission field nullable (#251)

Experimental

  • Chat: add mergeToChatMessage extension (#250)

3.5.0

04 Oct 10:02
3ca84fb
Compare
Choose a tag to compare

Added

  • Fine-tuning: API implementation (#242)

Deprecated

  • Fine-tunes is deprecated

3.4.2

28 Sep 09:49
d34d6fd
Compare
Choose a tag to compare

Added

  • Config: Allow custom ktor http client configuration (#239) (Thanks @rasharab)

3.4.1

31 Aug 11:49
688d9c8
Compare
Choose a tag to compare

Fix

  • Chat: fix(chat): FunctionCall nullable name/arguments (#232)

3.4.0

24 Aug 21:35
b876b1c
Compare
Choose a tag to compare

Added

  • Introduced Parameters.Empty for functions without parameters.
  • Added File.statusDetails for retrieving file status details.
  • HyperParams new fields: computeClassificationMetrics, classificationNClasses and classificationPositiveClass.
  • Moderation: update categories and scores.

Removed

  • Removed beta status from the chat and audio features.

Deprecated

  • completions is deprecated.
  • edits as legacy.

Breaking Changes

  • Audio: Updated TranscriptionRequest's responseFormat type to AudioResponseFormat.
  • Fine Tune: set HyperParams.learningRateMultiplier to be non-nullable.
  • Edit: Choice.finishReason type to FinishReason.
  • Chat: Multiple changes have been implemented:
    • Set index, message, and finishReason fields in ChatChoice to be non-nullable.
    • Set index, delta, and finishReason fields in ChatChunk to be non-nullable.
    • Set ChatCompletionFunction.parameters to be non-nullable.
    • In FunctionCall, set name, arguments, and argumentsAsJson() to be non-nullable.
    • Modified ChatChoice.finishReason and ChatChunk.finishReason types to FinishReason.

3.3.2

21 Jul 22:04
e7723a8
Compare
Choose a tag to compare

Fix

  • Audio: Segment#transient property nullable (thanks @charlee-dev)

Dependencies

  • Kotlin to 1.9.0
  • Kotlin coroutines to 1.7.2
  • Kotlin serialization to 1.5.1
  • ktor to 2.3.2
  • okio to 3.4.0

3.3.1

24 Jun 15:01
e79b5ef
Compare
Choose a tag to compare

Fix

3.3.0

19 Jun 19:54
f6cc2e7
Compare
Choose a tag to compare

Added

3.2.5

03 Jun 20:42
a1a0c4c
Compare
Choose a tag to compare

Added

  • Add OpenAIHost builder for Azure (#196)
  • Support of OpenAIHost with a base path (#196)