Skip to content

allusernamestakenexceptthis/adariai-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adariai APi

(Early version) Adariai APi is simple unofficial PHP wrapper for openai API.

Installation

Download the repository or install via composer

composer require adari/adariai-api

Usage

require_once 'vendor/autoload.php';
use AdariaiApi\Wrapper;

//use environment variables for this, see examples
$api_key = "[YOUR OPENAI API KEY]";


$response = $openapi->getChat("gpt-3.5-turbo", "What's the capital of Peru?");

print_r($response);

Packages used

GuzzleHttp

Version

Early version 1.0.0

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A simple PHP wrapper for the OpenAI API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages