murongmingyue/chatgptturboapi

This API use model:gpt-3.5-turbo.

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

This package is auto-updated.

Last update: 2024-05-30 01:11:38 UTC


README

chatGPT-3.5-API

Installation

To install PHP chatGPT API Class, run the following command:


composer require murongmingyue/chatgptturboapi 

How to Use:

use murongmingyue/chatgptturboapi;

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

$chatApi = new chatApi($appKey);

$content = 'Hello!';

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

var_dump($response);