Download the PHP package postare/filament-model-ai without Composer
On this page you can find all versions of the php package postare/filament-model-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download postare/filament-model-ai
More information about postare/filament-model-ai
Files in postare/filament-model-ai
Package filament-model-ai
Short Description Integrate artificial intelligence into FilamentPHP, leveraging your Eloquent Model data as knowledge.
License MIT
Homepage https://github.com/postare/filament-model-ai
Informations about the package filament-model-ai
Filament ModelAI Plugin
ModelAI is a plugin designed for FilamentPHP that interfaces with OpenAI APIs. Its primary function is to use existing model data as context to formulate requests to OpenAI APIs. In practice, it allows users to select specific records from a data model, such as a list of real estate properties or e-commerce products, and use this information as a basis for generating intelligent content or responses through OpenAI's AI capabilities.
Examples of Use
Example 1: Real Estate Portal
In a real estate portal, ModelAI can utilize data from a 'Properties' model to create tailored marketing content. For instance, by selecting a specific property, the plugin can generate optimized social media posts or identify key property-related points, all based on the specific property's data.
Example 2: Wine E-commerce
In a wine e-commerce platform, the plugin could be configured to work with a 'Wine' model, containing details like variety, vintage, and tasting notes. Using this data, 'ModelAI' could generate engaging product descriptions, gastronomic pairing recommendations, or even educational content about wine culture, all while harnessing OpenAI's artificial intelligence to ensure high-quality and relevant content.
Installation
You can easily install the package via Composer:
Once the package is installed, you need to add your OpenAI API Key to your .env
file:
To publish the configuration file, use the following command:
Optionally, you can also publish the views:
The published configuration file contains the following settings:
Feel free to customize these settings to fit your specific use case. Enjoy using ModelAI with FilamentPHP!
Usage
In addition to a page in your Panel where you can select the desired element, the Model, and the Prompt, you can also use ModelAI elsewhere in your project.
Features
- [x] OpenAI API Integration
- [x] Customizable Models
- [x] Customizable Prompts
- [x] FilamentPHP Page
All versions of filament-model-ai with dependencies
filament/filament Version ^3.0
illuminate/contracts Version ^11.0
openai-php/laravel Version ^0.8
spatie/laravel-package-tools Version ^1.15.0