• While creating requests or asking for support in the existing XenForo threads please maintain XenForo support policy strictly.

  • You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Resource icon

[021] ChatGPT Framework v1.50

No permission to download

GhostKiller

Member
Jan 4, 2021
81
29
18
GhostKiller submitted a new resource:

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

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 BS\ChatGPTBots\Response;

/** \Orhanerday\OpenAi\OpenAi $api...

Read more about this resource...
 
  • Like
Reactions: Babak
GhostKiller updated [021] ChatGPT Bots with a new update entry:

Message repository

Message repository
fetchMessagesFromThread – Loads the context for the bot from the topic. Bot quotes are transformed into his messages for the correct context.

PHP:
public function fetchMessagesFromThread(
    Thread $thread,
    int $stopPosition = null, // Thread post position to which to load the context
    ?User $assistant = null, // Bot user to mark his messages in context
    bool $transformAssistantQuotesToMessages = true, // If false, bot message quote...[/icode][/quote]

[url=https://babia.to/resources/021-chatgpt-bots.30679/update/94758/]Read the rest of this update entry...[/url]
 
how it work this addon
this is just "core", for it to work you need 1 addons:
ChatGPT Quick Reply Bot or ChapGPT Reply Bot.
You can buy it at xenforo homepage, unfortunately I don't have it.
// edit:
But if you have, please give it to me, I really need it.
 
  • Like
Reactions: Babak
GhostKiller updated [021] ChatGPT Bots with a new update entry:

The add-on has been renamed to [021] ChatGPT Framework.

\BS\ChatGPTBots\Response class features
getReplyWithLogErrors(OpenAi $api, array $params): string – Receives a response and parse it to reply from the OpenAI API, logging the failure and adding the necessary information to the log.

Usage example:

PHP:
$reply = Response::getReplyWithLogErrors($api, [
    'model'             => 'gpt-3.5-turbo',
    'messages'          => [],
    'temperature'       => 1.0,
    'frequency_penalty' => 0...

Read the rest of this update entry...
 
  • Like
Reactions: Babak
this is just "core", for it to work you need 1 addons:
ChatGPT Quick Reply Bot or ChapGPT Reply Bot.
You can buy it at xenforo homepage, unfortunately I don't have it.
// edit:
But if you have, please give it to me, I really need it.
i got the addon but it doesn't reply i have checked the premission twiced , still doesn't work.
 

Forum statistics

Threads
79,289
Messages
1,138,472
Members
247,777
Latest member
skarif
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock