PHP Classes

PHP OpenAI API Client: Perform AI operations with OpenAI API

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 141 All time: 9,200 This week: 61Up
Version License PHP version Categories
openaiapiclient 1.0.0MIT/X Consortium ...5PHP 5, Web services, Artificial intel...
Description 

Author

This package can perform AI operations with OpenAI API.

It can send HTTP requests to the OpenAI API Web servers to perform several operations.

Currently, it can:

- Get all models

- Get a model by name

- Perform completions

- Perform edits

Picture of Niko Peikrishvili
  Performance   Level  
Name: Niko Peikrishvili <contact>
Classes: 7 packages by
Country: Georgia Georgia
Age: ???
All time rank: 31964 in Georgia Georgia
Week rank: 273 Up1 in Georgia Georgia Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (23)  
File Role Description
Files folder imagesrc (3 files, 1 directory)
Files folder imagetests (4 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data

  Files folder image Files (23)  /  src  
File Role Description
Files folder imageEndpoints (4 files, 2 directories)
  Plain text file ClientBuilder.php Class Class source
  Plain text file OpenAIAPIClient.php Class Class source
  Plain text file ResponseMediator.php Class Class source

  Files folder image Files (23)  /  src  /  Endpoints  
File Role Description
Files folder imageDTO (2 directories)
Files folder imageExceptions (1 file)
  Plain text file Completion.php Class Class source
  Plain text file Edits.php Class Class source
  Plain text file Endpoint.php Class Class source
  Plain text file Models.php Class Class source

  Files folder image Files (23)  /  src  /  Endpoints  /  DTO  
File Role Description
Files folder imageRequests (2 files)
Files folder imageResponses (6 files)

  Files folder image Files (23)  /  src  /  Endpoints  /  DTO  /  Requests  
File Role Description
  Plain text file CompletionRequest.php Class Class source
  Plain text file EditsRequest.php Class Class source

  Files folder image Files (23)  /  src  /  Endpoints  /  DTO  /  Responses  
File Role Description
  Plain text file Model.php Class Class source
  Plain text file ModelCollection.php Class Class source
  Plain text file Models.php Class Class source
  Plain text file Permission.php Class Class source
  Plain text file PermissionCollection.php Class Class source
  Plain text file Response.php Class Class source

  Files folder image Files (23)  /  src  /  Endpoints  /  Exceptions  
File Role Description
  Plain text file InvalidAPIKeyException.php Class Class source

  Files folder image Files (23)  /  tests  
File Role Description
  Plain text file bootstrap.php Class Class source
  Plain text file HTTPClientTest.php Class Class source
  Plain text file ModelsEndpointTest.php Class Class source
  Plain text file TestCase.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:141
This week:0
All time:9,200
This week:61Up