ngvritishvili/open_ai_cli
Composer 安装命令:
composer require ngvritishvili/open_ai_cli
包简介
Integrate OpenAI with PHP for CLI support
README 文档
README
Integrate AI CLI for you laravel project to communicate with open AI directly from command line.
Requirements
- Laravel ^10
Install
composer require ngvritishvili/open_ai_cli:dev-main --with-all-dependencies
After installation run command to install open-ai: php artisan openai:install
Add variable in .env file :
OPENAI_API_KEY=
OPENAI_ORGANIZATION=
OPENAI_REQUEST_TIMEOUT=
You can generate key from open-ai "https://platform.openai.com/api-keys"
And organization : "https://platform.openai.com/account/organization"
Usage
You can start chat with AI with artisan command : ai-cli:chat
Congratulation
Good luck
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-03