Code Monkey home page Code Monkey logo

autosuggestai's Introduction

AutoSuggestAI is a WordPress plugin that uses Artificial Intelligence to suggest words as you type. This feature can greatly enhance your writing speed and efficiency by predicting and suggesting the next word you might want to type.

Installation

Download the latest release as a ZIP file. You don't have to extract it. .

On your WP blog to go Admin / Plugins / Add New Plugin and choose Upload Plugin

Select the zip file you just downloaded

Click Install Now

Activate the Plugin

Set UP

Before you use it you must go to the admin panel and under Settings / AutoSuggestAI you have to set the API key. Choose which platform you want to use.

Mistral platform:

You can also use keys from OpenRouter.ai or OpenAI.com.

In your wordpress:

  • Go to Dashboard / Settings / AutoSuggestAI

  • Set the API key and the

  • Set the delay threshold

  • Choose your model.

Start with the first/cheapest one unti you get the hang of it. It may be fine as it is, but if it is making mistakes or being unhelpful then try a more advanced model.

It costs money, but not that much so make sure you set a suitable budget (like $1 / month) and you will be fine.

  • Choose whether to use the Internal Proxy. When cleared, the default, then your PC directly talks to the AI provider, but when you turn on Internal Proxy then your PC talks only to your WordPress server, and that server will talk to the AI provider. This is useful if you are behind a firewall or if you are using a VPN.

  • You can also set the delay threshold in seconds. If you set this too long then it will be unresponsive while you are writing, but setting it too short will mean lots of wasted calls to the paid api.

Usage

Once installed, the AutoSuggestAI plugin will automatically start suggesting words as you type in paragraphs in the block editor, nowhere else. These suggestions are powered by AI, and should relate to what is before it in the post, but ignore anything after.

Suggested text appear in grey and are not actually part of the post until you press tab. If you press anything else then the grey suggested words disappear and are discarded.

You only get suggestions when your cursor is at the end of a paragraph, and the last character is a space meaning you have completed a word, or you are at the beginning of a blank paragraph.

Bugs

  • If you click somewhere else when a grey suggestion is visible it may end up stuck on the screen, and become an invalid block later.

  • Sometimes it makes multiple suggestions and you have to clean them up manually

  • If the suggestion is mutli-paragraph it duplicates paragraphs and you have to clean up manually

  • After tab to accept the text the cursor fails to move to the end of the paragraph and you have to click to get it back

Done

  • Add support for other providers, not just Mistral

Todo

  • Fix lots of bugs and special cases
  • Allow (temp?) changes to settings using a side-bar in the editor
  • Add support for other block types
  • Integrate with SEO plugins that define keywords

autosuggestai's People

Contributors

raymondclowe avatar lowee1 avatar

Stargazers

 avatar

Watchers

EdwardTheLegend avatar  avatar

Forkers

edwardthelegend

autosuggestai's Issues

Uncaught SyntaxError: Unexpected identifier 'Promise'

VM1070:1 Uncaught SyntaxError: Unexpected identifier 'Promise'
setTimeout (async)
insertTextIntoCurrentBlock @ autosuggestai.js?ver=v2.4.0:402
tabHandler @ autosuggestai.js?ver=v2.4.0:416
cy @ block-editor.min.js?ver=868d782fcb169133c92b:26
onKeyDown @ block-editor.min.js?ver=868d782fcb169133c92b:26
Xa @ react-dom.min.js?ver=18.2.0:10
B @ react-dom.min.js?ver=18.2.0:10
W @ react-dom.min.js?ver=18.2.0:10
qe @ react-dom.min.js?ver=18.2.0:10
Ke @ react-dom.min.js?ver=18.2.0:10
(anonymous) @ react-dom.min.js?ver=18.2.0:10
dl @ react-dom.min.js?ver=18.2.0:10
V @ react-dom.min.js?ver=18.2.0:10
Je @ react-dom.min.js?ver=18.2.0:10
pe @ react-dom.min.js?ver=18.2.0:10
fe @ react-dom.min.js?ver=18.2.0:10
autosuggestai.js?ver=v2.4.0:512 idle

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.