In this release, I am excited to introduce new features, bug fixes, and several refactorings. Below is a detailed summary of the updates:
✨ Features
- Added support for
o1
models. - Implemented
okhttp
and reworked error handling. - Implemented moderation features and updated
ModerationModel
enum.
📝 Documentation
- Added moderation example and reworked other examples.
- Removed warning from the README.
- Added embeddings example to the README.
♻️ Refactorings
- Updated
SystemMessage
to support multiple content parts. - Added a shortcut for moderation image and changed the wording for moderation results.
- Reworked logging system.
- Refactored
ChatCompletionResponse
and Chunk model. - Shortened library names.
- Updated setters to accept respective model enums.
- Generalized
InputNotSupportedException
. - Refactored constructors and
create
methods; added error prevention forChatCompletionService
. - Updated assistant messages to support text, image, and refusal content parts.
🐛 Bugfixes
- Fixed a bug where multi-modal input was not detected correctly.
🔧 Configuration
- Added valid constructors for
Function
. - Added new fields (
store
,metadata
, andmaxCompletionTokens
) toChatCompletionConfiguration
; markedmaxTokens
as deprecated.
🔥 Removals
- Removed model enums for
AudioModels
andImageGenerationModels
.
⬆️ Dependencies
- Upgraded dependencies.