Releases: aallam/openai-kotlin
Releases · aallam/openai-kotlin
3.6.0
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
andImageVariations
(#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
3.5.1
3.5.0
3.4.2
3.4.1
3.4.0
Added
- Introduced
Parameters.Empty
for functions without parameters. - Added
File.statusDetails
for retrieving file status details. HyperParams
new fields:computeClassificationMetrics
,classificationNClasses
andclassificationPositiveClass
.- 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
'sresponseFormat
type toAudioResponseFormat
. - Fine Tune: set
HyperParams.learningRateMultiplier
to be non-nullable. - Edit:
Choice.finishReason
type toFinishReason
. - Chat: Multiple changes have been implemented:
- Set
index
,message
, andfinishReason
fields inChatChoice
to be non-nullable. - Set
index
,delta
, andfinishReason
fields inChatChunk
to be non-nullable. - Set
ChatCompletionFunction.parameters
to be non-nullable. - In
FunctionCall
, setname
,arguments
, andargumentsAsJson()
to be non-nullable. - Modified
ChatChoice.finishReason
andChatChunk.finishReason
types toFinishReason
.
- Set
3.3.2
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