此API使用模型:gpt-3.5-turbo。

dev-main 2023-03-03 11:01 UTC

This package is auto-updated.

Last update: 2024-09-30 02:13:08 UTC


README

chatGPT-3.5-API

安装

要安装PHP chatGPT API类,请运行以下命令


composer require murongmingyue/chatgptturboapi 

如何使用

use murongmingyue/chatgptturboapi;

$appKey = env('Your chatGPT AppKey');

$chatApi = new chatApi($appKey);

$content = 'Hello!';

$response = $chatApi->chatApi($content);

var_dump($response);