v0.15.0
·
112 commits
to main
since this release
New
- added : Use
secrecy
crate to storeapi_key : Secret<String>
in configs #114 by @ironman5366 - added: Derive
Copy
for enums:ImageSize
,ResponseFormat
,TextModerationModel
,Role
, andAudioResponseFormat
#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
forfinish_reason
instead ofString
- Rename struct
Usage
toCompletionUsage
Embeddings:
- Add field
encoding_format
inCreateEmbeddingRequest
Files:
- Update
status_detail
field type inOpenAIFile
from object toString
Images:
- Rename
ImageData
toImage
to match spec - Rename
ImageResponse
toImagesResponse
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
andFineTunes
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! 🎉