omarelnaghy/laravel-ai-copilot
最新稳定版本:v0.1.4
Composer 安装命令:
composer require omarelnaghy/laravel-ai-copilot
包简介
Plug-and-play Laravel AI Copilot: unified AI API (OpenAI, Anthropic, Ollama)
README 文档
README
Plug-and-play unified AI API for Laravel 11. Swap providers (OpenAI, Anthropic, Ollama) with config and call one Facade: AI::.
Installation
composer require omarelnaghy/laravel-ai-copilot php artisan vendor:publish --tag=ai-config
Set environment variables:
OPENAI_KEY=sk-... AI_DRIVER=openai
Usage
use Omarelnaghy\LaravelAICopilot\Facades\AI; $summary = AI::summarize($article->body); $reply = AI::chat('Explain Laravel in 3 sentences'); $seo = AI::generate("Meta description for: {$product->name}");
Config
See config/ai.php for providers and defaults.
Testing
composer install
composer test
Roadmap
- Anthropic and Ollama drivers
- Embeddings + Vector search (pgvector, Pinecone, Qdrant)
- Retries, circuit breaker, middleware
- File summarization, image generation, OCR
- Memory, dashboards
License: MIT
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-29