[021] ChatGPT Framework

[021] ChatGPT Framework 2.2.0

Sem autorização para baixar
  • Criador do tópico Criador do tópico axtona
  • Data de início Data de início
Lv.12
Moderating
Bronze Member
Iron Member
Donor Member
Associado
28/06/2020
Mensagens
4.400
Pontuação de reações
1.401
Credits
$11.794
thanks to dear member @jessy submitted a new resource:

[021] ChatGPT Framework - This add-on provides helper functions for working with ChatGPT.

Visualizar anexo 46377
This add-on provides helper functions for working with ChatGPT.

It allows you to set an API key for add-ons that work with ChatGPT and avoid loading duplicate dependencies.

Developer usage guide

Get the OpenAI API key
PHP:
$apiKey = \XF::options()->bsChatGptApiKey;
Get OpenAI API
PHP:
/** \Orhanerday\OpenAi\OpenAi $api */
$api = \XF::app()->container('chatGPT');
Get reply from ChatGPT
PHP:
use...

Read more about this resource...
 
thanks to dear member @jessy updated [021] ChatGPT Framework with a new update entry:

changelog

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

Read the rest of this update entry...
 
A new update for [021] ChatGPT Framework 2.2.0 is now available for free download. Big thanks to the contribution from our member @axtona !
change log
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')
Read the rest of this update entry...
 
Top