Published 05 Nov 2023
- Models: permission field nullable (#251)
- Chat: add
mergeToChatMessage
extension (#250)
Published 04 Oct 2023
- Fine-tuning: API implementation (#242)
- Fine-tunes is deprecated
Published 28 Sep 2023
- Config: Allow custom ktor http client configuration (#239) (Thanks @rasharab)
Published 31 Aug 2023
- Chat: fix(chat):
FunctionCall
nullable name/arguments (#232)
Published 23 Aug 2023
- 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 beta status from the chat and audio features.
completions
is deprecated.edits
as legacy.
- 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
Published 21 Jul 2023
- Audio:
Segment#transient
property nullable (thanks @charlee-dev)
- 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
Published 24 Jun 2023
- Chat: function mode serializer (#203) (thanks @emeasure-github-private)
Published 19 Jun 2023
- Chat: Function Call (#200 #202) (thanks @JochenGuckSnk)
Published 03 Jun 2023
- Add
OpenAIHost
builder for Azure (#196) - Support of
OpenAIHost
with a base path (#196)
Published 21 May 2023
- Logging configuration using
LoggingConfig
sanitize
flag to sanitize authorization header in the logs- Enhance
OpenAI()
factory function parameters
- Updated
OpenAIConfig
to replace logging fields withLoggingConfig
- Authorization token is now hidden by default in the logs
Published 01 May 2023
OpenAIIOException
andGenericIOException
(#178)
Published 29 Apr 2023
- Completion: add suffix request param (#174)
- Exceptions: Add more detailed api errors (#163)
- Replace
Autocloseable
until stable (#173)
Published 9 Apr 2023
- Proguard / R8 rules for jvm (#149)
OpenAI
implementsAutoCloseable
(#151)
- Kotlin to
1.8.20
(#146) - Kotlin serialization to
1.5.0
(#146) - Ktor to
2.2.4
(#146)
Published 23 Mar 2023
- Audio: add other formats support (#127)
- Chat: add user param to chat request (#128)
- Simplify and add more exceptions (#123)
Published 17 Mar 2023
- Add error details to
OpenAIAPIException
(#120) (thanks @rosuH)
- Audio: switch mixed-up translation and transcription paths (#119) (thanks @matusekma)
Published 10 Mar 2023
- Audio: api implementation (#105)
- Config: proxy config (#111)
- Config: retry strategy config (#112)
Published 02 Mar 2023
Important changes since 2.1.3
- Requests: DSL builder functions to create requests (#80)
- Completions and
Edit
: addusage
to the responses (#82) - Files: add
download
anddelete
functions (#86) - OpenAIConfig:
headers
andorganization
(#96) - Embeddings:
similarity
anddistance
(#88) (experimental) - Chat implementation (#99) (beta)
- OpenAIConfig: custom host config (#102)
- FileSource and okio for I/O operations (e.g. files, images) (#75)
- FineTunes: remove experimental (#90)
- Images: mark as experimental (#91)
- Embeddings: response changed to
EmbeddingResponse
to includeusage
. (#82)
- Non-blocking SSE
Flow
events (#95)
- Update Kotlin to
1.8.10
Published 19 Feb 2023
OpenAIConfig
:headers
andorganization
(#96)
FineTunes
: remove experimental (#90)Images
: mark as experimental (#91)
- Non-blocking SSE
Flow
events (#95)
Published 06 Feb 2023
This release contains changes from 3.0.0-alpha01, plus the following:
- Embeddings: similarity and distance (#88) (Experimental)
- Update Kotlin to
1.8.10
Published 29 Jan 2023
- Add darwin simulators and x86 targets (#85)
Published 20 Jan 2023
- DSL builder functions to create requests
Completions
andEdit
: addusage
to the responsesFiles
: adddownload
anddelete
functions
FileSource
and okio for I/O operations (e.g. files, images).Embeddings
: response changed toEmbeddingResponse
to includeusage
.
Published 11 Jan 2023
- FineTunes: events streaming using
GET
(#76) (thanks @PatrickLaflamme)
Published 02 Jan 2023
- Targets
ios
,watchos
andtvos
(x64/arm64)
- Update Kotlin to
1.8.0
Published 14 Dec 2022
- Images implementation (#68)
- Http timeout configuration (#71)
- Update Kotlin to
1.7.20
- Update Kotlin serialization to
1.4.1
- Update Ktor
2.1.3
Published 20 Aug 2022
- Models implementation
- Moderations implementation
- Fine-Tunes implementation
- Update Kotlin to
1.7.10
- Update Kotlin serialization to
1.4.0
- Update
Completions
,Edits
andEmbeddings
to useModels
Engines
,Answers
,Search
andClassification
Published 11 Jun 2022
openai-client-bom
artifact for jvm projects
- Update Kotlin to
1.7.0
(#31) - Update Coroutines to
1.6.2
(#26)
- Answers, Classification and Search Endpoints (#29)
Published 08 May 2022
- Field
user
toCompletionRequest
(#9) (thanks @Stuie) - Native targets:
linuxX64
,macosX64
,macosArm64
andmingwX64
(w/ new memory manager)
- Kotlin
1.6.21
- Kotlin coroutines
1.6.1
- The client throws
OpenAIException
on errors
Published 19 Jun 2021
- Kotlin 1.5.10
- Value classes:
EngineID
,FileStatus
,FileId
andPurpose
Published 03 Apr 2021
- Kotlin
1.4.32
Published 20 Mar 2021
- Deprecate
stream
parameter inCompletionRequest
.
Published 13 Mar 2021
- Remove Ktor's logging classes from public API
Published 11 Mar 2021
OpenAI.completions
: text completions as stream of events
OpenAI.completion
whenstream
is set
OpenAI.createCompletion
renamed toOpenAI.completion
Published 10 Mar 2021
- Ktor as an implementation dependency of
openai-client
Published 09 Mar 2021