nexxtmove/ai
最新稳定版本:1.1.3
Composer 安装命令:
composer require nexxtmove/ai
包简介
README 文档
README
The simplest way to add AI to your Laravel app, using OpenAI or Gemini.
$fruits = AI::ask('Give me a JSON array with three fruits');
1. Install
composer require nexxtmove/ai
2. Add your API key to .env
AI_DRIVER=openai OPENAI_API_KEY=sk-...
3. Ask questions
use Nexxtmove\AI; $summary = AI::ask("Summarize this article: {$article}");
That's it!
Want to read more? Check out the guide.
统计信息
- 总下载量: 3.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-21