I really like AI and ChatGPT has blown my mind. I decided to create a Laravel API that uses ChatGPT to easily integrate in other applications! See the blog at my blog
This Laravel tutorial application is powered by the [Laravel OpenAI API] (https://github.com/mastashake08/laravel-openai-api) package created by yours truly and can be found here. This package simply requires the package and exposes the API from the package. Simply spin up the instance, run composer, set the .env file and hit the URL.
composer install
POST /api/generate-result $data - a JSON object containing OpenAI configuration
e.g.
{
"model": "text-davinci-003",
"prompt" : "Write a wordpress post excerpt summarizing ChatGPT",
"temperature": 0.9,
"max_tokens": 20
}
Help me maintain this project, please consider looking at the FUNDING file for more info.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.