Download the PHP package shevant/open-ai-client without Composer
On this page you can find all versions of the php package shevant/open-ai-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package open-ai-client
ChatGptClient
ChatGptClient is an API client for the OpenAI API, providing a convenient interface for interacting with various OpenAI resources.
Get Started
Requires PHP 8.1+
First, install OpenAI via the Composer package manager:
Ensure that the php-http/discovery
composer plugin is allowed to run or install a client manually if your project does not already have a PSR-18 client integrated.
Running Tests
To run all tests, use the following command:
If PHPUnit is installed globally, you can run:
Usage
Resources
The client provides access to the following OpenAI resources:
-
Audio
: Interact with audio resources. -
Chat
: Interact with chat resources. -
Embeddings
: Interact with embeddings. -
FineTuning
: Interact with fine-tuning models. -
Batch
: Interact with batch operations. -
Files
: Interact with files. -
Images
: Interact with images. -
Models
: Interact with models. -
Moderations
: Interact with moderations. -
Assistants
: Interact with assistants. -
Threads
: Interact with threads. -
Messages
: Interact with messages. -
Runs
: Interact with runs. -
RunSteps
: Interact with run steps. -
VectorStores
: Interact with vector stores. -
VectorStoreFiles
: Interact with vector store files. VectorStoreFileBatches
: Interact with vector store file batches.
All versions of open-ai-client with dependencies
php-http/discovery Version ^1.17
psr/http-client-implementation Version *
symfony/http-client Version ^7.1
psr/http-client Version ^1.0
nyholm/psr7 Version ^1.8
psr/http-factory-implementation Version *