ChatGPT-Entwurf

ChatGPT-Entwurf 2.2.0

Kostenloser Download über tägliche Glücksaufgabe
Summary
This add-on for the ChatGPT framework enables developers to set an API key and manage dependencies, facilitating smoother integration and usage of OpenAI's API within applications.
Lv.12
Moderating
Donor Member
Master Member
Elite Member
Active Member
Beigetreten
Juni 28, 2020
Nachrichten
4,922
Reaktionswert
1,530
thanks to dear member @jessy submitted a new resource:

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

Anhang 46377 einsehen
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...
 
Trending Resources
Zurück
Oben