[021] ChatGPT Framework

[021] ChatGPT Framework 1.6.0

No permission to download
Joined
Jun 28, 2020
Messages
3,269
Reaction score
1,309
Credits
$6,879
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...
 
Top