Closed Brissan closed 1 year ago
Hi Brssan,
Thanks for creating the issue.
The issue seems to be an API issue.
I've added a try catch to handle any API errors such as, Incorrect API key or Exceeded API rate limit etc or any error returned from OpenAI API.
Also added another try catch to handle any general error when submit the question.
Upgrade the package: composer upgrade naif/chatgpt
Make sure you have published the config file and added API key in .env file.
php artisan vendor:publish --provider="Naif\Chatgpt\ToolServiceProvider" --force
It should work now or it will display what the issue is.
Thanks again.
I installed everything according to the instructions, but I get this error
The GET method is not supported for route nova-vendor/chatgpt/ask. Supported methods: POST.