[021] ChatGPT Framework

[021] ChatGPT Framework 1.5.1

No permission to download
jessy Master Sergeant
Staff member
Moderating
badge id 1 1 Year of Membership badge id 13 100 Messages badge id 2 2 Years of Membership badge id 14 500 Messages
Jun 28, 2020
2,918
1,228
$5,855
thanks to dear member @jessy submitted a new resource:

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

View attachment 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...
 
Back
Top