Theme editor

  • New XenForo Released Full Nulled 2.3.10 is available for download now. -> HERE
    New XenForo Released Upgrade Nulled 2.3.10 is available for download now. -> HERE
    XenForo Enhanced Search (XFES) 2.3.10 is available for download now. -> HERE
    XenForo Resource Manager (XFRM) 2.3.10 is available for download now. -> HERE
    XenForo Media Gallery (XFMG) 2.3.10 is available for download now. -> HERE

[021] ChatGPT Framework

| XF 2.3 Add-ons (Free) [021] ChatGPT Framework 2.2.0

No permission to download
💾 Resources submitted by: Staraddons • 💬 Posts: 1579 • 🏆 Points: 119 • 👍 Likes: 455 • ⬆️ Resources: 986
Language
English
Compatible XF 2.x versions
  1. 2.1
  2. 2.2
  3. 2.3
[021] ChatGPT Framework

Integrate OpenAI's state-of-the-art language model into your XenForo 2 forum with the ChatGPT Framework add-on.​

This add-on provides a comprehensive framework for integrating the ChatGPT API into your forum, allowing you to enhance your users' experience with cutting-edge language processing technology. With ChatGPT, you can generate human-like responses to user queries, automatically moderate content, and more.

The ChatGPT Framework add-on offers a range of features to help you customize and optimize your ChatGPT integration, including:
  • Built-in message repository: Allows to load messages for ChatGPT from different places in the forum, such as threads or conversations. Also provides functions to prepare them.
  • Error handling: Handle API errors and exceptions gracefully.
  • Configurable response generation: Choose how responses are generated based on your preferences and use case.

Setup

Specify the API key from OpenAI in the options after installation.

Developer usage guide

PHP:
Code:
Expand Collapse Copy
$apiKey = \XF::options()->bsChatGptApiKey;

Get Openair API:
Code:
Expand Collapse Copy
/** \Orhanerday\OpenAi\OpenAi $api */
$api = \XF::app()->container('chatGPT');

Get a response from ChatGPT

PHP
:
Code:
Expand Collapse Copy
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,
    ])
);
AndyB Register redirect
| XF 2.3 Add-ons (Free) AndyB Register redirect 1.1
AndyB Forum list count
| XF 2.3 Add-ons (Free) AndyB Forum list count 1.6
2.2.0
Version
0
Downloads
10
Views
First release
Last update
2 MB
File size
zip
Extension type
0.00 star(s) 0 ratings
Ratings
Uploader
Staraddons
Uploaded
986 Resources.
Available Tags:
  • Tags Tags
    None
  • More resources from Staraddons

    Similar content Most view View more
    Back
    Top