A Laravel Nova tool to ask ChatGPT and store question with answer to db to be viewed.
naif/chatgpt is a Laravel package for a laravel nova tool to ask chatgpt and store question with answer to db to be viewed..
It currently has 3 GitHub stars and 1.590 downloads on Packagist (latest version v1.0.7).
Install it with composer require naif/chatgpt.
Discover more Laravel packages by naif
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel Nova 4 ChatGPT Integration Tool combines Laravel Nova 4 with the ChatGPT API.
You can install the package into a Laravel app that uses Nova via composer:
composer require naif/chatgpt
Publish Model, Migration and Config files
php artisan vendor:publish --provider="Naif\Chatgpt\ToolServiceProvider"
Run Migrate
php artisan migrate
Add the below to .env file:
CHATGPT_NOVA4_API_KEY=###############
CHATGPT_NOVA4_MAX_TOKENS=1000
You can increase the tokens to get more text from ChatGPT response.
Add the tool to NovaServiceProvider.php
public function tools()
{
return [
new Chatgpt()
];
}
https://naif.io
Bug Tracker:
https://github.com/naifalshaye/chatgpt-nova4/issues
The MIT License (MIT). Please see License File for more information.