GPT Spell Corrector is a Statamic addon that uses OpenAI to correct spelling mistakes on Bard fields
This addon will add a button to the Bard editor for spelling correction.
When activation the spell correction it will send the contents of the Bard editor to OpenAI using a pre-configured prompt. The OpenAI response is then put back into the editor.
composer require govigilant/statamic-gpt-spell-corrector
As this package uses openai-php/laravel you need to configure that package too.
You can do that by running php artisan openai:install
.
Then add the OpenAI variables to your environment file:
OPENAI_API_KEY=sk-...
OPENAI_ORGANIZATION=org-...
GPT_SPELL_CORRECTOR_MODEL=gpt-4o
If you need to customize the prompt you can overwrite the prompt
view in this package.
This package was created for Vigilant, an open source all-in-one Website Monitoring tool. Check out the website or Github. Join the Discord if you have any questions about this package.
The MIT License (MIT). Please see License File for more information.