jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.
composer require jiten14/jitone-ai
php artisan jitone-ai:install
This command will:
Jitone AI
Settings.openai-php/laravel
Settings.OPENAI_API_KEY=sk-...OPENAI_ORGANIZATION=org-...
The config/jitone-ai.php
file allows you to set default values and templates:
You can add AI generation capabilities to TextInput
, Textarea
, and RichEditor
fields using the withAI()
method:
use Filament\Forms\Components\TextInput;use Filament\Forms\Components\Textarea;use Filament\Forms\Components\RichEditor;Â TextInput::make('title') ->withAI()Â Textarea::make('description') ->withAI()Â RichEditor::make('content') ->withAI()
TextInput::make('title') ->withAI([ 'model' => 'gpt-4', 'max_tokens' => 100, 'temperature' => 0.7, ])Â Textarea::make('description') ->withAI([ 'model' => 'gpt-3.5-turbo', 'max_tokens' => 200, 'temperature' => 0.5, ])Â RichEditor::make('content') ->withAI([ 'model' => 'gpt-4', 'max_tokens' => 500, 'temperature' => 0.8, ])
The package provides a dedicated AITextField
for enhanced content generation:
use Jiten14\JitoneAi\Forms\Components\AITextField;Â AITextField::make('content')->withAI()
AITextField::make('content') ->withAI([ 'model' => 'gpt-4', 'max_tokens' => 300, 'temperature' => 0.6, ])
Use the AIFileUpload
field with the imageAI()
method to enable AI image generation:
use Jiten14\JitoneAi\Forms\Components\AIFileUpload;Â AIFileUpload::make('image') ->imageAI()
AIFileUpload::make('image') ->imageAI([ 'size' => '1024x1024', ])
Jitone AI follows semantic versioning:
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security vulnerabilities or bugs, please let us know so I can address them promptly.
For support with this package or to report any issues, feel free to reach out Jitone AI Support. I am happy to assist you!
The MIT License (MIT). Please see License File for more information.
Jitendriya Tripathy is a Web Application Developer with over 6 years of experience specializing in Laravel, Vue.js, and modern web technologies like Inertia.js, HTML5, CSS3, and JavaScript. He has a deep understanding of both Laravel 10 and 11 and enjoys building packages and web applications, particularly within the Laravel and Filament ecosystems. Jitendriya is passionate about creating robust, scalable solutions and sharing his knowledge with the developer community. He believes in putting dedication and creativity into every project he works on.