What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Resource icon
xF2 Add-on
< Previous | Next >
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:
Please, Log in or Register to view codes content!

Get OpenAI API
PHP:
Please, Log in or Register to view codes content!

Get reply from ChatGPT
PHP:
Please, Log in or Register to view codes content!


Message repository

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

PHP:
Please, Log in or Register to view codes content!


wrapMessage – Generates a message array, preparing content for the bot (removes unnecessary BB codes).

PHP:
Please, Log in or Register to view codes content!


prepareContent – Prepare message content for the bot (removes unnecessary BB codes).
getQuotes – Parses quotes from the text, bringing it to a convenient form.

PHP:
Please, Log in or Register to view codes content!

removeQuotes – Remove quotes from the text. Can be remove quotes for specific posts or users.

PHP:
Please, Log in or Register to view codes content!
  • Options (1).png
    Options (1).png
    28.3 KB · Views: 31

Latest updates

  1. [021] ChatGPT Framework 2.1.1

    Fix: Backward compatibility
  2. [021] ChatGPT Framework 1.6.0

    Support for function calling
  3. [021] ChatGPT Framework 1.5.1

    Fixed When streaming the bot's response, characters such as "0" could be missed
Similar resources Most view View more
Top