Looking to hire Laravel developers? Try LaraJobs

chatgptlaravelignition maintained by back1ng

Description
Adds the ChatGPT response to the error hint from laravel-ignition
Last update
2023/02/02 06:46 (dev-master)
License
Links
Downloads
12

Comments
comments powered by Disqus

Example of usage

Installation:

Install package via composer with --dev flag:

composer require back1ng/chatgptlaravelignition --dev

Add this solution to your ignition.php config

    'solution_providers' => [
        \Back1ng\ChatGPTLaravelIgnition\Solutions\ChatGPTSolution::class,
    ],

Publish configuration file:

php artisan vendor:publish --provider="Back1ng\ChatGPTLaravelIgnition\ServiceProvider"

Add OPENAI_API_KEY to your .env

OPENAI_API_KEY=sk-...
OPENAI_MAX_TOKENS=256 //optional

Now for each error, there will be a request to ChatGPT.