Download the PHP package bitdigitalcodes/statamic-chatgpt without Composer

On this page you can find all versions of the php package bitdigitalcodes/statamic-chatgpt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-chatgpt

Statamic ChatGPT Add-on

Statamic ChatGPT is a Statamic addon that allows you to generate content from ChatGPT from within the Bard editor from a prompt.

Features

Some headline features:

Settings

Screenshot

Icon added to Bard editor

Screenshot

Modal allows you to generate a full article or just a paragraph

Screenshot

Fully formatted article is added to Bard, ready for you to use or edit

Screenshot

Also generate a single paragraph

Screenshot

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

You will need to add your API key before the addon will work.

How to Use

  1. Once installed you should see a new 'ChatGPT' menu option on the left of the control panel. Click it.
  2. Enter your API key (https://platform.openai.com/signup if you don't have one already).
  3. Select the model to use. Some of the later models may need to make a payment to get access.
  4. Select the max tokens, or use defaults.
  5. Give ChatGPT a bit of context about your site and the text you want it to write.
  6. Save the config.
  7. You'll now get a ChatGPT icon on any Bard editor. Click this for access to all features.

Troubleshooting

I'm getting an error mentioning my API key.

You probably haven't set up your API key properly in the control panel. Head to https://platform.openai.com/signup, get an API key, and carefully copy it across. You may also be using an API key that doesn't support the model you want to use, in which case try selecting a different model.

You may need to make a payment before some of the models will work. OpenAI removed the need to do this but there have been some user-land reports of still needing to do it.

Ensure your API key is valid for the models you want to use and you have sufficient credit.

After about 2 minutes I get a message about the API timing out.

ChatGPT takes time to generate a response. We wait 2 minutes before giving up, this is usually plenty of time to get the response but if the API is under extreme load or is down then you may need to try again. If it persists check OpenAI status: https://status.openai.com/

I'm getting an [Object object] error pop-up when using.

Please let us know what steps you took for this to happen. We handle all errors gracefully, and any that are introduced by the API should be displayed to you. If you're getting this error then it's likely something we haven't accounted for. Please raise an issue on Github and we'll look into it.


All versions of statamic-chatgpt with dependencies

PHP Build Version
Package Version
Requires edalzell/forma Version ^3.0
openai-php/laravel Version ^0.12 || ^0.13 || ^0.14 || ^0.15
ueberdosis/tiptap-php Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bitdigitalcodes/statamic-chatgpt contains the following files

Loading the files please wait ...