[021] ChatGPT Bots 1.1.0

No permission to download
XF Compatibility
  1. 2.2.x
Short Description
Download and Discuss Premium, Business[021] ChatGPT Bots 1.1.0 version on Premium Content Best Download Discussion Community. It is zip Extention type and 121.3 KB File size. From [021] ChatGPT Bots have 1 Description Attachments, 3 discussion, 1 Updates, 184 Views.
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 dependencie
Get OpenAI API
PHP:
$apiKey = \XF::options()->bsChatGptApiKey;
Get reply from ChatGPT
PHP:
use BS\ChatGPTBots\Response;
/** \Orhanerday\OpenAi\OpenAi $api */
$api = \XF::app()->container('chatGPT');
$messages = [
    ['role' => 'user', 'content' => 'Hello!']
];
$reply = Response::getReply(
    $api->chat([
        'model'             => 'gpt-3.5-turbo',
        'messages'          => $messages,
        'temperature'       => 1.0,
        'max_tokens'        => 420,
        'frequency_penalty' => 0,
        'presence_penalty'  => 0,
    ])
);
Reactions: mani5grockers
Author
axtona
Views
184
Extention type
zip
File size
121.3 KB
First release
Last update
Ratings 0.00 star(s) 0 ratings
Link was Broken? Please  Send Message to NP Team with direct message, You will get it very quickly!
Support Developer If you are satisfied with your test or project have earn money successfully, Maybe you can click more information button to support with buying.

Latest updates

  1. 1.1.0 - changelog
    Message repository fetchMessagesFromThread – Loads the context for the bot from the topic. Bot...

More resources from axtona

A
Adds a character counter to the rich-text editor
A
allows displaying the expiration date of the paid membership in the user postbit and profile.
A
[cv6] Letter Index 1.1.0 RC 3
This AddOn adds a lettered TabIndex to selected forums.