This is a WordPress Gutenberg editor plugin that will put the power of OpenAI in your blog posts. Are you stuck with your writing? The next paragraph feels like drudgery and you don't know how to continue? Writers Block Block uses GPT-3 to generate the next paragraph for you based on your current content of the post.
You need a quick image for your post, but your art skill are failing you? DALL-E will generate an image for you.
WordPress plugin readme is here
- You write some content
- Insert
Coauthor paragraph
block into your post - It grabs the content of your post, calls OpenAI to generate a completion
- Inserts that completion to your post
- If you like it, you can transform that block into a Paragraph block. If you don't like it - you can delete it.
- This plugin is automatically limiting the requests to one per 10s to protect your OpenAI quota. If you call the suggestion endpoint in succession, you will get the same answer.
- Insert
Coauthor Image
block into your post - Fill in the prompt to generate an image you would like to see
- It calls OpenAI api to generate 4 images
- You choose one that you like best
- That image gets uploaded to your media gallery and inserted into your post
- Image generations are cached for a month. If you ask for images using the same prompt, you will get the same result.
For development purposes, this installation covers setting up a development environment as well.
- You will need the OpenAI token - apply here.
- You will need npm. (Tested with v 6.14)
- You will need Docker
- Check out this repository
npm install
npm start
will start WordPress development environment (usingwp-env
) and build appropriate build scripts.- Now you can access WP-Admin using http://localhost:8888/wp-admin . Login
admin
, passwordpassword
. - Go to editor, write some content.
- Use the block editor and search for
Coauthor
block. It will prompt for the OpenAI token first time you use it. - Profit.