– Fix: Exception when creating alias for class \BS\ChatGPTFramework\Enums\JsonSchema\Type
– New methods in MessagesDTO: map, mapKeepContentStringForRoles, toModerationInput, transformDeprecatedRoles, transformRoles
– New MessageRole: DEVELOPER
– New method in ChatWrapper: moderate(array $input, string $model = 'omni-moderation-latest')
Fix: Backward compatibility

Changes​

  • JSON Schema generation has been moved to the 021/json-schema package with more extensive functionality
Fix: Sanitizing of usernames in messages
Huge Refactoring!
  • Codebase update to improve the developer experience with the ChatGPT API
  • Vision support in the message repository
  • New DTOs to simplify API work with OOP
Big Note
This version is not compatible with add-ons running on ChatGPTFramework 1.0

Fixed​

When streaming the bot's response, characters such as "0" could be missed
Message repo: Ability to fetch comments from profile post
Stream replies support (Will be updated in dev guide later)
  • Like
Reactions: Rhody401
The group of settings has been renamed in accordance with the name of the add-on
New method removeMessageDuplicates in message repo
New method fetchMessagesFromConversation in message repo
Now \BS\ChatGPTBots\Response::getReplyWithLogErrors accept $throwExceptions argument to throw exceptions on error instead of returning default reply
Now the prepareContent method in message also converts mentions into hits
Version
2.2.0
Published
Updated
Downloads
3,881
Views
14,004
Compatible XF versions
  1. 2.0
  2. 2.1
  3. 2.2
  4. 2.3

Author

021