Download the PHP package phpexperts/chatgpt-speaker without Composer
On this page you can find all versions of the php package phpexperts/chatgpt-speaker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpexperts/chatgpt-speaker
More information about phpexperts/chatgpt-speaker
Files in phpexperts/chatgpt-speaker
Package chatgpt-speaker
Short Description A quick and easy extension for effortlessly handling OpenAI's API for ChatGPT.
License MIT
Homepage https://www.phpexperts.pro/
Informations about the package chatgpt-speaker
ChatGPTSpeaker
ChatGPTSpeaker is a PHP Experts, Inc., Project meant to ease the accessing of the OpenAI APIs.
This library uses RESTSpeaker to utilize the Guzzle HTTP Client via the Composition architectural pattern.
You might be very interested in the projects that used by and/or adjacent to this project:
- PHP Evolver
composer require phpexperts/evolver
- One of only two Genetic Algorithm (GA) libraries for PHP, but very easy to use.
- One of the few AI / Machine Learning libraries for PHP.
- https://github.com/PHPExpertsInc/php-evolver
- RESTSpeaker
composer require phpexperts/rest-speaker
- A very easy way to consume REST APIs. Built on top of Guzzle but with a much better interface.
- https://github.com/PHPExpertsInc/RESTSpeaker
- SimpleDTO
composer require phpexperts/simple-dto
- Easily build validating DTOs for PHP 7.2+.
- https://github.com/PHPExpertsInc/SimpleDTO
Installation
Via Composer
Copy .env.example
to .env
in your project's root directory and put in your OpenAI credentials.
Change log
Please see the changelog for more information on what has changed recently.
Usage
By default, JSON results are returned.
Response:
To get the same basic results as the ChatGPT user interface, do the following:
(From RESTSpeaker) To convert the RESTSpeaker API request into a curl
CLI command, do this:
(From RESTSpeaker) To get the raw payload as returned by api.openai.com:
Use cases
✔ Returns the same responses as chat.openai.com.
Testing
Roadmap
- Implement the Models endpoint
- Implement the Images endpoints
- Implement the Files endpoint
- Implement the Audio endpoints
- Implement the new Embeddings endpoints for AI Model Training
- Implement the new Fine Tunings Endpoints for custom GPT Agents
- Implement the Moderations endpoint
- Implement support for the GPT5 Agents
Contributors
Theodore R. Smith [email protected]
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.
License
CC-BY-ND-4.0 Creative Commons NoDerivations v4.0: Please see the license file for more information.
YOU MAY FORK THIS PROJECT.
YOU MAY NOT PUBLISH ANY DERIVATION of this project to either your own website or a third-party host.
All versions of chatgpt-speaker with dependencies
ext-curl Version *
ext-json Version *
phpexperts/rest-speaker Version ^2.5
phpexperts/simple-dto Version ^3.5