[BS] ChatGPT Framework

xF2 Addon [BS] ChatGPT Framework 1.6.0

No permission to download
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
Code:
You must be logged-in to view.
(1 lines)
Get OpenAI API

Code:
You must be logged-in to view.
(2 lines)
Get reply from ChatGPT
Code:
You must be logged-in to view.
(18 lines)
Message repository
fetchMessagesFromThread – Loads the context for the bot from the topic. Bot quotes are transformed into his messages for the correct context.
Code:
You must be logged-in to view.
(8 lines)
wrapMessage – Generates a message array, preparing content for the bot (removes unnecessary BB codes).
Code:
You must be logged-in to view.
(8 lines)
prepareContent– Prepare message content for the bot (removes unnecessary BB codes).
getQuotes – Parses quotes from the text, bringing it to a convenient form.
Code:
You must be logged-in to view.
(17 lines)
removeQuotes – Remove quotes from the text. Can be remove quotes for specific posts or users.
Code:
You must be logged-in to view.
(6 lines)
[BS] ChatGPT Framework-1.png
DK47

DK47

Administrator Moderator Diamond Member Premium Member Registered Reputation: 100%
Joined
Resources
575
Your content
823
Reaction score
713
Trophy points
195
1.6.0Version
1 Downloads
281 Views
0.00 star(s) 0 ratings
Last update