Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@LookforFPS LookforFPS released this 15 Jan 18:13
· 6 commits to main since this release
1f9a581

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 for ChatCompletionService.
  • 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, and maxCompletionTokens) to ChatCompletionConfiguration; marked maxTokens as deprecated.

🔥 Removals

  • Removed model enums for AudioModels and ImageGenerationModels.

⬆️ Dependencies

  • Upgraded dependencies.