Download the PHP package alnutile/laravel-chatgpt without Composer
On this page you can find all versions of the php package alnutile/laravel-chatgpt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alnutile/laravel-chatgpt
More information about alnutile/laravel-chatgpt
Files in alnutile/laravel-chatgpt
Package laravel-chatgpt
Short Description Some base client work to talk to the api
License MIT
Homepage https://github.com/alnutile/laravel-chatgpt
Informations about the package laravel-chatgpt
Base client to talk to ChatBot amd Dall-e2 and Soon Other Services
Going to build some basic Driver like clients to talk to different AI service but like with Laravel Storage it will treat them all the same.
- ChatGPT for text
- Jasper when ChatGPT is down :(
- Dall-2
- OpenAI Moderator
- Midjourney - when it gets an api
Installation
You can install the package via composer:
You can then set your .env:
If you set AI_MOCK to true it will just return some fixture data so if you are working in your UI for example it will just show that data.
Usage
Here is an example of
- Call Moderation to see if the text is ok
- TextClientFacade to do a text search with adding a prefix to the request
- SearchResults Event to just let the system know and react to it like make a local copy of the data
- ModerationFailed Event so you can react to that
Testing
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
- Alfred Nutile
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-chatgpt with dependencies
alnutile/fixtures Version ^0.0
guzzlehttp/guzzle Version ^7.5
http-interop/http-factory-guzzle Version ^1.2
illuminate/contracts Version ^9.0|^10.0
spatie/data-transfer-object Version ^3.9
spatie/laravel-package-tools Version ^1.14.0