Download the PHP package adrianmejias/laravel-open-ai without Composer
On this page you can find all versions of the php package adrianmejias/laravel-open-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adrianmejias/laravel-open-ai
More information about adrianmejias/laravel-open-ai
Files in adrianmejias/laravel-open-ai
Package laravel-open-ai
Short Description Open AI wrapper for Laravel Framework.
License MIT
Homepage https://github.com/adrianmejias/laravel-open-ai
Informations about the package laravel-open-ai
Open AI Package for Laravel
Open AI api wrapper for the Laravel Framework.
Installation
This version supports PHP 8.0. You can install the package via composer:
composer require adrianmejias/laravel-open-ai
To create the config/open-ai.php
configuration file:
php artisan vendor:publish --tag=open-ai
Usage
Example
Expected Output:
Api Requests
completions(array $options, string $engine = 'davinci')
- Get a list of completions.search(array $options, string $engine = 'davinci')
- Get a list of search results.answers(array $options)
- Get a list of answers.classifications(array $options)
- Get a list of classifications.files(string $file, string $purpose = 'classifications')
- Publish a training file (jsonl).engines()
- Get a list of engines.engine(string $engine)
- Get information for a specific engine.
Testing
composer test
Todo
- [x] Add to packagist repo
- [x] Add unit tests
- [x] Add documentation for open source contributations
- [x] Add GitHub Action for unit tests
- [ ] Add more unit test coverages
- [ ] Add more documentation to README.md
- [ ] Add API listing to README.md
Contributing
Thank you for considering contributing to Laravel Open Ai! You can read the contribution guide here.
Code of Conduct
In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
Please see the security file for more information.
License
The MIT License (MIT). Please see the license file for more information.
All versions of laravel-open-ai with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.4
illuminate/support Version ^8.42|^9.21