openai-kotlin

OpenAI API client for Kotlin with multiplatform and coroutines capabilities.

MIT License

Stars
1.4K
Committers
34

Bot releases are visible (Hide)

openai-kotlin - 3.2.3

Published by aallam over 1 year ago

Added

  • OpenAIIOException and GenericIOException (#178)
openai-kotlin - 3.2.2

Published by aallam over 1 year ago

Feat

  • Completion: add suffix request param (#174)
  • Exceptions: Add more detailed api errors (#163)

Change

  • Replace Autocloseable until stable (#173)
openai-kotlin - 3.2.1

Published by aallam over 1 year ago

Added

  • Proguard / R8 rules for jvm (#149)
  • OpenAI implements AutoCloseable (#151)

Dependencies

  • Kotlin to 1.8.20 (#146)
  • Kotlin serialization to 1.5.0 (#146)
  • Ktor to 2.2.4 (#146)
openai-kotlin - 3.2.0

Published by aallam over 1 year ago

Added

  • Audio: add other formats support (#127)
  • Chat: add user param to chat request (#128)

Changed

  • Simplify and add more exceptions (#123)
openai-kotlin - 3.1.1

Published by aallam over 1 year ago

Changed

  • Add error details to OpenAIAPIException (#120) (thanks @rosuH)

Fixed

  • Audio: switch mixed-up translation and transcription paths (#119) (thanks @matusekma)
openai-kotlin - 3.1.0

Published by aallam over 1 year ago

Added

  • Audio: api implementation (#105)
  • Config: proxy config (#111)
  • Config: retry strategy config (#112)
openai-kotlin - 3.0.0

Published by aallam over 1 year ago

Important changes since 2.1.3

Added

  • Requests: DSL builder functions to create requests (#80)
  • Completions and Edit: add usage to the responses (#82)
  • Files: add download and delete functions (#86)
  • OpenAIConfig: headers and organization (#96)
  • Embeddings: similarity and distance (#88) (experimental)
  • Chat implementation (#99) (beta)
  • OpenAIConfig: custom host config (#102)

Changed

  • 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 include usage. (#82)

Fixed

  • Non-blocking SSE Flow events (#95)

Dependencies

  • Update Kotlin to 1.8.10
openai-kotlin - 3.0.0-beta02

Published by aallam over 1 year ago

Added

  • OpenAIConfig: headers and organization (#96)

Changed

  • FineTunes: remove experimental (#90)
  • Images: mark as experimental (#91)

Fixed

  • Non-blocking SSE Flow events (#95)
openai-kotlin - 3.0.0-beta01

Published by aallam over 1 year ago

This release contains changes from 3.0.0-alpha01, plus the following:

Added

  • Embeddings: similarity and distance (#88) (Experimental)

Changed

  • Update Kotlin to 1.8.10
openai-kotlin - 2.1.3

Published by aallam over 1 year ago

Fixed

  • Add darwin simulators and x86 targets (#85)
openai-kotlin - 3.0.0-alpha01

Published by aallam over 1 year ago

Added

  • DSL builder functions to create requests
  • Completions and Edit: add usage to the responses
  • Files: add download and delete functions

Changed

  • FileSource (using okio) for I/O operations (e.g. files, images).
  • Embeddings: response changed to EmbeddingResponse to include usage.
openai-kotlin - 2.1.2

Published by aallam almost 2 years ago

Fixed

  • FineTunes: events streaming using GET (#76) (thanks @PatrickLaflamme)
openai-kotlin - 2.1.1

Published by aallam almost 2 years ago

Added

  • Targets ios, watchos and tvos (x64/arm64)

Changed

  • Update Kotlin to 1.8.0
openai-kotlin - 2.1.0

Published by aallam almost 2 years ago

Added

  • Images implementation (#68)
  • Http timeout configuration (#71)

Changed

  • Update Kotlin to 1.7.20
  • Update Kotlin serialization to 1.4.1
  • Update Ktor 2.1.3
openai-kotlin - 2.0.0

Published by aallam about 2 years ago

Added

Changed

  • Update Kotlin to 1.7.10
  • Update Kotlin serialization to 1.4.0
  • Update Completions, Edits and Embeddings to use Models

Removed

  • Engines, Answers, Search and Classification
openai-kotlin - 2.0.0-beta02

Published by aallam over 2 years ago

Added

Changed

  • Update Kotlin to 1.7.10
  • Update Completions, Edits and Embeddings to use Models

Removed

  • Engines, Answers, Search and Classification
openai-kotlin - 2.0.0-beta01

Published by aallam over 2 years ago

Added

Changed

  • Update Kotlin to 1.7.10
  • Update Completions, Edits and Embeddings to use Models

Removed

  • Engines, Answers, Search and Classification
openai-kotlin - 1.2.0

Published by aallam over 2 years ago

Published 11 Jun 2022

Added

  • openai-client-bom artifact for jvm projects

Changed

  • Update Kotlin to 1.7.0 (#31)
  • Update Coroutines to 1.6.2 (#26)

Deprecated

  • Answers, Classification and Search Endpoints (#29)
openai-kotlin - 1.1.0

Published by aallam over 2 years ago

Published 08 May 2022

Added

  • Field user to CompletionRequest (#9) (thanks @Stuie)
  • Native targets: linuxX64, macosX64, macosArm64 and mingwX64 (w/ new memory manager)

Changed

  • Kotlin 1.6.21
  • Kotlin coroutines 1.6.1
  • The client throws OpenAIException on errors
openai-kotlin - 1.0.0

Published by aallam over 3 years ago

Published 19 Jun 2021

Changed

  • Kotlin 1.5.10
  • Value classes: EngineID, FileStatus, FileId and Purpose
Package Rankings
Top 20.71% on Repo1.maven.org
Badges
Extracted from project README
Maven Central License Documentation Snapshot
Related Projects