dragonofmercy / custom-ai-solution
AI Solution provider using custom service for Spatie Ignition Error Solution
1.0.1
2025-02-25 07:23 UTC
Requires
- php: ^8.1
- illuminate/support: >=10.0
- openai-php/client: >=0.10.3
- spatie/laravel-ignition: >=2.9
README
With this package you can use your custom AI service for Spatie Ignition Error Solution
Installation
composer require dragonofmercy/custom-ai-solution --dev
Register solution provider in Ignition
Open ignition.php
in your Config
directory.
Just add \Dragon\CustomAi\CustomAiSolutionProvider::class
in the solution_providers
array.
'solution_providers' => [ ... UnknownMysql8CollationSolutionProvider::class, UnknownMariadbCollationSolutionProvider::class, \Dragon\CustomAi\CustomAiSolutionProvider::class ],
Configure your service
Just update your .env
ES_CUSTOMAI_ENDPOINT=https://api.groq.com/openai/v1 ES_CUSTOMAI_API_KEY={your-api-key} ES_CUSTOMAI_MODEL=qwen-qwq-32b
My personal recommandation:
Use https://groq.com/ service, you will have a lot of free tokens by daily and a lot of available models.
If this project help to increase your productivity, you can give me a cup of coffee :)