[021] ChatGPT Framework

Add-ons [021] ChatGPT Framework 2.1.1

Register & Get access to index
  • Message repo: Ability to fetch comments from profile post
  • Stream replies support (Will be updated in dev guide later)

\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.
Back
Top Bottom