ChatGPT 架构

ChatGPT 架构 2.2.0

没有下载权限
Lv.12
Moderating
Bronze Member
Iron Member
Donor Member
已加入
2020/06/28
消息
4,532
回应得分
1,420
Credits
$12,499
感谢亲爱的会员 @jessy提交了一个新的资源: ChatGPT Framework-这个插件为与ChatGPT工作提供了辅助函数。
查看附件 46377
这个插件提供了与ChatGPT工作相关的辅助函数。

它允许你为与ChatGPT一起工作的插件设置API密钥,并避免加载重复的依赖项。


开发人员使用指南

获取OpenAI API密钥
PHP:
$apiKey = \XF::options()->bsChatGptApiKey;
获取OpenAI API
PHP:
/** \Orhanerday\OpenAi\OpenAi $api */
$api = \XF::app()->container('chatGPT');
从GPT获得回复
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...
 
顶部