GithubHelp home page GithubHelp logo

jolora / statamic-chatgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitdigitalcodes/statamic-chatgpt

0.0 0.0 0.0 319 KB

Statamic ChatGPT plugin, allows Statamic authors to generate content from ChatGPT APIs directly inside Statamic

JavaScript 6.79% PHP 63.54% Vue 29.67%

statamic-chatgpt's Introduction

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:

  • Generate a complete article from a single prompt
  • Generate shorter single paragraphs for when you need help with a portion of an article
  • Supports ChatGPT 3.5-turbo, and ChatGPT 4
  • Will support future versions when they become available
  • Add site-wide context to your prompts to get more tailored responses (for example, configure ChatGPT to think it is an expert on writing SEO-optimised articles about gardening, if that's your thing)
  • Configure the maximum number of tokens to be used with each prompt in order to manage your spend
  • Manage your API key and various options from within the dashboard

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:

composer require bitdigitalcodes/statamic-chatgpt

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. If you're opting for ChatGPT 4 you 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 ChatGPT 4, in which case try selecting a different model.

Although ChatGPT 4 is now generally available in the API, OpenAI does require a payment to have been made, so it won't work in the trial. If you want to use the trial without adding a payment method then you will need to use a different model.

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.

statamic-chatgpt's People

Contributors

mikemike avatar jolora avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.