innovination/chatgpt
最新稳定版本:1.0.1
Composer 安装命令:
composer require innovination/chatgpt
包简介
a simple laravel package to communicate with chatgpt
README 文档
README
This Composer package allows you to chat with OpenAPI's Chatgpt API
Installation
To install this package, you can use Composer. Run the following command in your project directory:
composer require innovination/chatgpt
Usage
To use this package, follow these steps:
- Import the package into your PHP file:
use Innovination\Chatgpt;
- Add GPT keys to your
.envfile
GPT_API_KEY='your-api-key' GPT_MODEL_NAME='your-preferred model (ex. gpt-3.5-turbo-0125)'
- Create an instance of the
Chatgptclass:
$obj = new Chatgpt(); $audio_path = 'link to audio'; $transcription = $obj->audioToText($audio_path);
- Convert audio to text:
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-21