Theme editor

[021] ChatGPT Framework

[021] ChatGPT Framework

[021] ChatGPT Framework 2.2.0

XF 2.3 Addons · by Staraddons · StarAddons Verified Vendor
0 Downloads 12 Views 1 Version
This add-on provides a comprehensive framework for integrating the ChatGPT API into your forum, allo
Price
Free
Available
Download

Overview Version (1) Discussion (1)

  • [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
    2.2.0 Stable Available Jan 9, 2026 · 0
    File size: 2 MB
    SHA-256: a92d7f731afce68ca7434261856e105a79f3295bd39abb516a51dac4ebd98a75
    SHA-256 verified Package valid Compatibility checked Last verified:
    View attachment 3153
    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,
        ])
    );
  • 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)

Resource information
Category XF 2.3 Addons
Author Staraddons
Date Jan 9, 2026
Latest version 2.2.0
SHA-256 a92d7f731afce68ca7434261856e105a79f3295bd39abb516a51dac4ebd98a75
Security
File integrity SHA-256 verified
SHA-256
a92d7f731afce68ca7434261856e105a79f3295bd39abb516a51dac4ebd98a75
How to verify this file
Statistics
Views 12
Downloads 0
Version 1
Developer
Staraddons
Resource author
More resources
Back
Top