Download the PHP package laravilt/ai without Composer
On this page you can find all versions of the php package laravilt/ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ai
Laravilt AI
A powerful AI integration package for Laravilt with support for multiple providers (OpenAI, Anthropic, Gemini, DeepSeek), global search spotlight, and chat UI.
Features
- Multi-Provider Support: OpenAI, Anthropic (Claude), Google Gemini, DeepSeek
- Global Search Spotlight: Cmd/Ctrl+K spotlight search with AI-powered understanding
- Chat UI: Full-featured chat interface with session management
- Resource AI Agents: Configure AI capabilities per resource
- Scout Fallback: Automatic fallback to Laravel Scout or direct queries when no AI is configured
- Streaming Support: Real-time streaming responses
Installation
The package will automatically register its service provider.
Configuration
Publish the config file:
Add your API keys to .env:
Quick Start
1. Global Search Component
Add the GlobalSearch component to your layout:
The spotlight search opens with Cmd/Ctrl+K.
2. AI Chat Component
3. Resource AI Configuration
Add AI capabilities to your resources:
AI Providers
OpenAI
Available models:
gpt-4o- GPT-4ogpt-4o-mini- GPT-4o Minigpt-4-turbo- GPT-4 Turbogpt-4- GPT-4gpt-3.5-turbo- GPT-3.5 Turboo1,o1-mini,o1-preview- O1 Models
Anthropic (Claude)
Available models:
claude-sonnet-4-20250514- Claude Sonnet 4claude-opus-4-20250514- Claude Opus 4claude-3-5-sonnet-20241022- Claude 3.5 Sonnetclaude-3-5-haiku-20241022- Claude 3.5 Haikuclaude-3-opus-20240229- Claude 3 Opus
Google Gemini
Available models:
gemini-2.0-flash-exp- Gemini 2.0 Flashgemini-1.5-pro- Gemini 1.5 Progemini-1.5-flash- Gemini 1.5 Flashgemini-pro- Gemini Pro
DeepSeek
Available models:
deepseek-chat- DeepSeek Chatdeepseek-coder- DeepSeek Coderdeepseek-reasoner- DeepSeek R1
Streaming Responses
Tool Calling
Global Search
Register resources for global search:
Vue Composables
useAI
useGlobalSearch
API Endpoints
The package provides the following API endpoints:
| Method | Endpoint | Description |
|---|---|---|
| GET | /laravilt-ai/config |
Get AI configuration |
| POST | /laravilt-ai/chat |
Send chat message |
| POST | /laravilt-ai/stream |
Stream chat response |
| GET | /laravilt-ai/sessions |
List chat sessions |
| POST | /laravilt-ai/sessions |
Create new session |
| GET | /laravilt-ai/sessions/{id} |
Get session |
| PATCH | /laravilt-ai/sessions/{id} |
Update session |
| DELETE | /laravilt-ai/sessions/{id} |
Delete session |
| GET | /laravilt-ai/search |
Global search |
Testing
Code Style
Static Analysis
License
The MIT License (MIT). Please see License File for more information.
All versions of ai with dependencies
spatie/laravel-package-tools Version ^1.14
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0