v0.15.0
·
179 commits
to main
since this release
New
- added : Use
secrecycrate to storeapi_key : Secret<String>in configs #114 by @ironman5366 - added: Derive
Copyfor enums:ImageSize,ResponseFormat,TextModerationModel,Role, andAudioResponseFormat#117 by @m1guelpf - added: Expose config getter in
Client#123 by @Czechh - updated: Enum type for
finish_reasonto match latest spec for chat completions API #111 by @retrage - updated:
ChatCompletionFunctionCallenum for better DX #118 by @m1guelpf
Updates from latest upstream spec 2.0.0
Chat & Completion:
- use enums
FinishReason&CompletionFinishReasonforfinish_reasoninstead ofString - Rename struct
UsagetoCompletionUsage
Embeddings:
- Add field
encoding_formatinCreateEmbeddingRequest
Files:
- Update
status_detailfield type inOpenAIFilefrom object toString
Images:
- Rename
ImageDatatoImageto match spec - Rename
ImageResponsetoImagesResponseto match spec
Moderations:
- Add new fields in moderation request and response types.
Fine Tuning
- Add new Fine Tuning APIs
Fine Tunes & Edit
- Mark
EditandFineTunesto 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! 🎉