Download the PHP package vigstudio/laravel-ai without Composer
On this page you can find all versions of the php package vigstudio/laravel-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vigstudio/laravel-ai
More information about vigstudio/laravel-ai
Files in vigstudio/laravel-ai
Package laravel-ai
Short Description A laravel plugin to interact with AI providers
License
Informations about the package laravel-ai
Laravel AI
WARNING: This package is currently under heavy development and is not yet suitable for production use.
The Laravel AI package provides an interface for connecting your Laravel application with AI services, particularly with OpenAI. With this package, you can easily:
- Send requests to OpenAI and receive responses
- Customize the parameters of your requests
- Keep track of all requests and responses in your database
- Keep track of the costs of your requests
Installation
You can install the package via composer:
After installation, publish the configuration file:
Configuration
In the .env file, set your OpenAI API key:
Command line tools
This package offers a variety of command line tools that simplify interaction with AI services. Each tool prompts you to specify a provider and a model.
The tools include:
Chat
This command enables you to initiate a chat with an AI. Once the command is executed, you can begin your conversation.
Completion
This command allows you to request the AI to complete your text. Once the command is executed, you can provide your prompt and the AI will generate a response.
Image generate
This command allows you to request the AI to generate an image. Once the command is executed, you can provide your prompt and the AI will generate an image.