wizard85 / ChatGPT-assist
此包最新版本(1.1.0)没有可用的许可信息。
AI助手
1.1.0
2023-04-15 21:37 UTC
Requires
- php: >=8.0
- illuminate/auth: ^7.0|^8.0|^9.0
This package is not auto-updated.
Last update: 2024-09-29 05:49:15 UTC
README
composer require wizard85/ChatGPT-assist- 要发布配置:
php artisan vendor:publish --provider="SWizard85\ChatGPTAssist\Providers\ChatGPTProvider"
环境变量
- CHAT_GPT_TOKEN=
- CHAT_GPT_MAX_TORENS=4000
- CHAT_GPT_VERSION=text-davinci-003
用法
php artisan chat-gpt:make-crud "模型名称" "模型描述"
- 示例: php artisan chat-gpt:make-crud "Test" "title(string), description, is_active"
API调用
创建新服务实例
$service = new ChatGPTService();
请求产品的新描述
$service->makeProductDescription('Lenovo Q27q-20', 'en');
向Chat GPT免费通话
$service->makeCall('Lenovo Q27q-20的描述');