ChatGPT Framework

ChatGPT Framework 2.1.1

Upgrade No permission to download
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

\BS\ChatGPTBots\Response class features

getReplyWithLogErrors(OpenAi $api, array $params): string – Receives a response and parse it to reply from the OpenAI API, logging the failure and adding the necessary information to the log.

Usage example
PHP:
$reply = Response::getReplyWithLogErrors($api, [
    'model'             => 'gpt-3.5-turbo',
    'messages'          => [],
    'temperature'       => 1.0,
    'frequency_penalty' => 0,
    'presence_penalty'  => 0,
]);

Fixed

\BS\ChatGPTBots\Repository\Message::fetchMessagesFromThread – the startPosition and stopPosition arguments were ignored if they were 0

Other changes​

The add-on has been renamed to [021] ChatGPT Framework.
  • Like
Reactions: McAtze and rdn