Skip to content

Releases: 64bit/async-openai

v0.17.1

26 Nov 06:34
async-openai-v0.17.1
460f00a
Compare
Choose a tag to compare

New

  • fixed: Fix: Make ChatCompletionToolChoiceOption enum variants lowercase #158 by @dmweis
  • fixed: Issue reported in #140 is fixed including tests in #157 by @katya4oyu

Thank you Contributors

v0.17.0

25 Nov 05:32
async-openai-v0.17.0
131717f
Compare
Choose a tag to compare

Overview

This release introduces breaking change for file input (from filesystem or in-memory) but is backward compatible, hence bumping the minor version.

New

  • fixed: added optional name field to chat completion request message structs for chat completion APIs #150 by @ifsheldon
  • added support for file uploads (audio, image, files for fine tuning) from in-memory #154 by @prosammer

Experimental WASM support

@ifsheldon's great effort has added WASM support, it lives in experiments branch. To use it please pin directly to git sha in your Cargo.toml. Any discussion, issues, related to WASM are welcome in #102 . Any WASM related PRs are welcome in experiments branch.

New Examples

Thank you contributors

While OpenAI was going through unprecedented times, these people were shipping! so in OpenAI style:

❤️ 💙 💛 💚 ❤️ 💙 💛
@ifsheldon
@Strange-Knoll
@frankfralick
@prosammer
❤️ 💙 💛 💚 ❤️ 💙 💛

v0.16.3

17 Nov 08:11
async-openai-v0.16.3
51febc5
Compare
Choose a tag to compare

New

  • bug fix: Rename tools_outputs to tool_outputs #147

Thank you

  • Thanks to @nodir-t for contributing the fix!

v0.16.2

10 Nov 00:23
async-openai-v0.16.2
15838b5
Compare
Choose a tag to compare

New

  • bug fix: expires_at needs to be Optional in RunObject #141
  • spec update: Added system_fingerprint field to CreateChatCompletionStreamResponse; updates to few doc comments #142

New Contributors

v0.16.1

08 Nov 16:58
async-openai-v0.16.1
83d4128
Compare
Choose a tag to compare

New

  • bug fix: Add missing pub modifiers from couple of struct fields #139 #137

v0.16.0

07 Nov 21:33
async-openai-v0.16.0
bc79fcf
Compare
Choose a tag to compare

New

  • added: Text to speech API #130 by @m1guelpf
  • updated: Crate is updated to new spec released on DevDay #131

Notes about this release:

  • Most of the existing examples/* are tested.
  • Assistants and related API are least tested.
  • Please do send a PR if you find any issues.

Thank you

Many thanks to contributor @m1guelpf

v0.15.0

30 Oct 06:55
async-openai-v0.15.0
50019ca
Compare
Choose a tag to compare

New

  • added : Use secrecy crate to store api_key : Secret<String> in configs #114 by @ironman5366
  • added: Derive Copy for enums: ImageSize, ResponseFormat, TextModerationModel, Role, and AudioResponseFormat #117 by @m1guelpf
  • added: Expose config getter in Client #123 by @Czechh
  • updated: Enum type for finish_reason to match latest spec for chat completions API #111 by @retrage
  • updated: ChatCompletionFunctionCall enum for better DX #118 by @m1guelpf

Updates from latest upstream spec 2.0.0

Chat & Completion:

  • use enums FinishReason & CompletionFinishReason for finish_reason instead of String
  • Rename struct Usage to CompletionUsage

Embeddings:

  • Add field encoding_format in CreateEmbeddingRequest

Files:

  • Update status_detail field type in OpenAIFile from object to String

Images:

  • Rename ImageData to Image to match spec
  • Rename ImageResponse to ImagesResponse to match spec

Moderations:

  • Add new fields in moderation request and response types.

Fine Tuning

  • Add new Fine Tuning APIs

Fine Tunes & Edit

  • Mark Edit and FineTunes to be deprecated

Doc comments

  • Update doc comments to match latest spec

Thank you

Thank you to the contributors (@m1guelpf , @Czechh ) and first time (@ironman5366 , @retrage ) contributors! 🎉

v0.14.3

24 Sep 22:41
async-openai-v0.14.3
3db68af
Compare
Choose a tag to compare

New

  • updated: Custom Debug implementation for AzureConfig and OpenAIConfig to prevent printing of API key #112

New Contributors

v0.14.2

15 Sep 01:08
async-openai-v0.14.2
20e55fb
Compare
Choose a tag to compare

New

  • added: derive Deserialize for OpenAIConfig and AzureConfig to read configurations from files #107 #108

New Contributors

v0.14.1

08 Sep 23:21
async-openai-v0.14.1
f9bf345
Compare
Choose a tag to compare

New

  • fixed: Propogate error up on failure to create reqwest::Request
  • fixed: Serialize "content": null as required by chat completion API: #103