dukens/openai-exceptions

Use the OpenAI API together with Laravel Ignition's Suggestions to show AI-powered fixes for errors in wordpress/sage.

v0.1 2023-06-26 10:32 UTC

This package is auto-updated.

Last update: 2024-04-26 18:02:34 UTC


README

Use the OpenAI API together with Laravel Ignition's Suggestions to show AI-powered fixes for errors in your Sage/Acorn application.

Get started

First install OpenAI Exceptions via Composer. You'll probably want to install it as dev dependency:

composer require --dev dukens/openai-exceptions

Next, publish the configuration file:

lando wp acorn vendor:publish --provider="Dukens\OpenaiExceptions\OpenAiSolutionServiceProvider" --tag="config"

This will create a config/openai-exceptions.php configuration file in your project, which you can modify to your needs. All options are documented in the file, but the only one you need is your OpenAI API key, which you'll specify in your .env file:

OPENAI_API_KEY={YOUR KEY HERE}