Developer usage guide
Get the OpenAI API key
PHP:
Kod:
$apiKey = \XF:
ptions()->bsChatGptApiKey;
Get OpenAI API
PHP:
Kod:
/** \Orhanerday\OpenAi\OpenAi $api */$api = \XF::app()->container('chatGPT');
Get reply from ChatGPT
PHP:
Kod:
use BS\ChatGPTBots\Response;/** \Orhanerday\OpenAi\OpenAi $api */$api = \XF::app()->container('chatGPT');$messages = [['role' => 'user', 'content' => 'Hello!']];$reply = Response::getReply($api->chat(['model'...
Get the OpenAI API key
PHP:
Kod:
$apiKey = \XF:
Get OpenAI API
PHP:
Kod:
/** \Orhanerday\OpenAi\OpenAi $api */$api = \XF::app()->container('chatGPT');
Get reply from ChatGPT
PHP:
Kod:
use BS\ChatGPTBots\Response;/** \Orhanerday\OpenAi\OpenAi $api */$api = \XF::app()->container('chatGPT');$messages = [['role' => 'user', 'content' => 'Hello!']];$reply = Response::getReply($api->chat(['model'...
Misafirler için gizlenen link, görmek için
Giriş yap veya üye ol.
Misafirler için gizlenen link, görmek için
Giriş yap veya üye ol.