Так, а в логах сервера что?
Журнал ошибок сервера
- BS\ChatGPTBots\Exception\ReplyException: ChatGPT response error: Empty reply
- src/addons/BS/ChatGPTBots/Response.php:53
- Сгенерирована пользователем:
- 10 Июн 2024 в 08:14
Трассировка стека
#0 src/addons/BS/ChatGPTReplyBot/Service/ThreadReply.php(44): BS\ChatGPTBots\Response::getReplyWithLogErrors(Object(Orhanerday\OpenAi\OpenAi), Array)
#1 src/addons/BS/ChatGPTReplyBot/XF/Pub/Controller/Concerns/ChatGPTQuotes.php(13): BS\ChatGPTReplyBot\Service\ThreadReply->getReplyOnPost(Object(Nulumia\SeoTools\XF\Entity\Post))
#2 src/addons/BS/ChatGPTReplyBot/XF/Pub/Controller/Post.php(20): BS\ChatGPTReplyBot\XF\Pub\Controller\Post->getChatGptReplyQuotes(Object(Nulumia\SeoTools\XF\Entity\Post))
#3 src/XF/Mvc/Dispatcher.php(352): BS\ChatGPTReplyBot\XF\Pub\Controller\Post->actionChatGptQuote(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'ChatGptQuote', Object(XF\Mvc\RouteMatch), Object(Nulumia\SeoTools\XF\Pub\Controller\Post), NULL)
#5 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Nulumia\SeoTools\XF\Pub\Controller\Post), NULL)
#6 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#8 src/XF.php(512): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
Содержимое запроса
array(4) {
["url"] => string(25) "/posts/303/chat-gpt-quote"
["referrer"] => string(70) "
"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["quoteHtml"] => string(248) "Widzę Vadim, że dodajesz kolejne posty dotyczące gry z uroczym chomiczkiem. Super! Dla takich początkujących graczy jak ja te podpowiedzi są bardzo przydatne. Nie będę ukrywać, każdy kolejny milion monet to jeszcze jeden dreszczyk emocji!"
["_xfRequestUri"] => string(47) "/threads/azbuka-morze-v-igre-hamster-kombat.97/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
["_chatGptResponse"] => string(271) "{
"error": {
"message": "Incorrect API key provided: http://1*********1337. You can find your API key at
.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
"
}
}