dukens / openai-suggestions
Use the OpenAI API together with Laravel Ignition to show AI-powered fixes for errors in sage/acorn.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.1.0
- illuminate/support: ^9.0
- openai-php/client: ^0.6.1
- spatie/laravel-ignition: ^1.6.4|^2.0
This package is auto-updated.
Last update: 2024-11-21 20:28:14 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 Suggestions via Composer. You'll probably want to install it as dev dependency:
composer require --dev dukens/openai-suggestions
Next, publish the configuration file:
wp acorn vendor:publish --provider="Dukens\OpenaiExceptions\OpenAiSolutionServiceProvider" --tag="config"
This will create a config/openai-suggestions.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}