wizard85/chatgpt-assist

There is no license information available for the latest version (1.1.0) of this package.

AI assist

1.1.0 2023-04-15 21:37 UTC

This package is not auto-updated.

Last update: 2024-05-12 03:30:30 UTC


README

  • composer require wizard85/chatgpt-assist
  • To publish config: php artisan vendor:publish --provider="SWizard85\ChatGPTAssist\Providers\ChatGPTProvider"

ENV Variables

  • CHAT_GPT_TOKEN=
  • CHAT_GPT_MAX_TORENS=4000
  • CHAT_GPT_VERSION=text-davinci-003

Usage

php artisan chat-gpt:make-crud "Model Name" "Model description"

  • Example: php artisan chat-gpt:make-crud "Test" "title(string), description, is_active"

Api Calls

Create New Service Instance:

$service = new ChatGPTService();

Request New Description for Product:

$service->makeProductDescription('Lenovo Q27q-20', 'en');

Make Free Call to Chat GPT

$service->makeCall('Description for Lenovo Q27q-20');