Skip to content

v0.15.0

Compare
Choose a tag to compare
@64bit 64bit released this 30 Oct 06:55
· 112 commits to main since this release
async-openai-v0.15.0
50019ca

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! 🎉