Download the PHP package mastashake08/laravel-openai-api without Composer
On this page you can find all versions of the php package mastashake08/laravel-openai-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mastashake08/laravel-openai-api
More information about mastashake08/laravel-openai-api
Files in mastashake08/laravel-openai-api
Package laravel-openai-api
Short Description Add an OpenAI API and Artisan command easily into your projects. Generate images, or text. Can be integrated with Laravel Sanctum for token based access.
License MIT
Homepage https://github.com/mastashake08/laravel-openai-api
Informations about the package laravel-openai-api
Add an OpenAI API and Artisan commands easily into your projects.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Via Code
Via Artisan
Via API
You set the OPENAI_API_URL in the .env file if a value is not set then it defaults to /api/generate-result
The data object requires a property that is either set to text or image. Depending on which type then provide the JSON referenced in the OpenAI API Reference
Text Example
Image Example
Testing
Consider Sponsoring
Help me maintain this project, please consider looking at the FUNDING file for more info.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jyrone Parker
- All Contributors
License
The MIT License (MIT). Please see License File for more information. { "name": "mastashake08/laravel-openai-api", "description": "Add an OpenAI API easily into your projects.", "version": "1.6.0", "description": "Add an OpenAI API and Artisan command easily into your projects. Generate images, or text. Can be integrated with Laravel Sanctum for token based access.", "version": "1.6.2", "keywords": [ "mastashake08", "laravel", "laravel-openai-api", "chatGPT", "OpenAI" "OpenAI", "Laravel Sanctum" ], "homepage": "https://github.com/mastashake08/laravel-openai-api", "license": "MIT", "minimum-stability": "dev", "prefer-stable": true }
All versions of laravel-openai-api with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version *