Theme editor

[021] ChatGPT Framework

[021] ChatGPT Framework

[021] ChatGPT Framework 2.2.0

XF 2.3 Addons · by Staraddons
0 Downloads 11 Views 0 Version
This add-on provides a comprehensive framework for integrating the ChatGPT API into your forum, allo
Price
Free
There are no downloadable versions available for this resource yet.

Overview Version (0) Discussion (1) License

  • [021] ChatGPT Framework
    [021] ChatGPT Framework
    This add-on provides a comprehensive framework for integrating the ChatGPT API into your forum, allo
    About this resource
    [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,
        ])
    );
  • Version
    There are no downloadable versions available for this resource yet.
  • Discussion

    This resource has a discussion thread on the forum where you can ask questions, report issues, and talk with the author and other users.

    Join the discussion (1)

  • License Terms

    By purchasing this resource, you are granted a license to use it on one (1) site, for as long as your license remains valid. You are not purchasing ownership of the underlying code.

    How your license works
    • Your license is checked automatically in the background. This never affects your site's visitors.
    • As long as your license is valid, this resource keeps working normally — even if our license server is briefly unreachable, a temporary network issue will never disable it.
    • Your license is bound to your site's domain the first time it's used.

    Moving to a new domain?
    Contact us and we'll move your license for you.

    What's included
    Updates and support for the period stated on this resource's page (see the Version tab for the current release).

    What's not allowed
    • Sharing your license with others, or using it on more than one site at a time
    • Removing or bypassing the license check in the code
Resource information
Category XF 2.3 Addons
Author Staraddons
Date Jan 9, 2026
Latest version 2.2.0
Statistics
Views 11
Downloads 0
Version 0
Developer
Staraddons
Resource author
More resources
Back
Top