|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2022-10-13 (5 months ago) ||Not yet rated by the users||Total: 46 ||All time: 10,484 This week: 333|
This package can search engine for text using OpenAI API.
It can send HTTP requests to the OpenAI API Web servers to perform several types of requests.
Currently, it can:
- Perform searches for a given text keywords
- Query classifications using given text keywords
- Get answers for questions
PHP SDK for OpenAI and GPT-3
require_once __DIR__ . '/vendor/autoload.php'; // Include Composer's autoload
use PH7\OpenAi\Client as OpenAiClient;
use PH7\OpenAi\Api\PrivateKey as OpenAiKey;
$apiKey = new OpenAiKey('YOUR_OPENAI_KEY');
$openAi = new OpenAiClient(new OpenAi($apiKey));
$openAi->search('Some keywords'); // To search
$openAi->classifications('Some keywords'); // For OpenAI classifications
:tada: 3rd party libraries
I'm Pierre-Henry Soria. A passionate, zen & dedicated software engineer ?
You can keep in touch with me at: email@example.com ?
Me building this library ?
[![Watch the video][video-thumbnail]](https://www.youtube.com/watch?v=Fv4J79eQjrc)
? Click here to watch on YouTube
PHP OpenAI SDK is distributed under MIT license ? Enjoy! ??
Note: This is not an official library published by OpenAI. I just want to help the community by providing a great library layer to be used with OpenAI.
<!-- GitHub's Markdown reference links -->
<!-- Was generated by README Generator CLI on 2022-02-20 https://github.com/pH-7/github-readme-generator-cli -->
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.