[021] ChatGPT Bots

kashif

Administrator
Staff member
VIP Member
Email Verified
kashif submitted a new resource:

[021] ChatGPT Bots - Download Free [021] ChatGPT Bots

Compatible XF 2.x versions
  • 2.0
  • 2.1
  • 2.2
Visible branding: No

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:
$apiKey = \XF::options()->bsChatGptApiKey;
Get OpenAI API
PHP:
/** \Orhanerday\OpenAi\OpenAi $api */
$api =...

Read more about this resource...
 
kashif updated [021] ChatGPT Bots with a new update entry:

[021] ChatGPT Bots v1.1.0 Free

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

PHP:
public function fetchMessagesFromThread(
Thread $thread,
int $stopPosition = null, // Thread post position to which to load the context
?User $assistant = null, // Bot user to mark his messages in context
bool $transformAssistantQuotesToMessages = true, // If false, bot message quote messages will not be transformed into...

Read the rest of this update entry...
 
kashif updated [021] ChatGPT Bots with a new update entry:

[021] ChatGPT Bots v1.2.0 Free

\BS\ChatGPTBots\Response class features
getReplyWithLogErrors(OpenAi $api, array $params): string – Receives a response and parse it to reply from the OpenAI API, logging the failure and adding the necessary information to the log.

Usage example:
PHP:
$reply = Response::getReplyWithLogErrors($api, [
'model' => 'gpt-3.5-turbo',
'messages' => [],
'temperature' => 1.0,
'frequency_penalty' => 0,
'presence_penalty' => 0,
]);
Fixed...

Read the rest of this update entry...
 

Similar threads

December 2025

Total amount
$76.35
Goal
$400.00
Donation ends:

Staff online

Forum statistics

Threads
12,803
Messages
39,914
Members
75,631
Latest member
gold2234
Top