Skip to content

Get help with your Wagtail content using AI superpowers.

License

Notifications You must be signed in to change notification settings

kbayliss/wagtail-ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wagtail-ai

Wagtail AI

Get help with your content using AI superpowers.

License: MIT PyPI version ai CI

Wagtail AI integrates Wagtail with AI's APIs (think ChatGPT) to help you write and correct your content.

Right now, it can:

  • Finish what you've started - write some text and tell Wagtail AI to finish it off for you
  • Correct your spelling/grammar
  • Let you add your own custom prompts
  • Work with multiple LLM providers including local models, OpenAI, Mistral, Claude and many others
WagtailAIDemo.mp4

Requirements & Costs

Wagtail AI supports many different LLMs, with OpenAI models available by default.

To use these, you'll need an OpenAI account and an API key. There'll also be some cost involved. For the OpenAI API used here, OpenAI charges $0.002 for 1,000 tokens (a word is about 1.3 tokens). Every token sent to the API, and every token we get back counts, so you can expect using 'correction' on 1,000 word paragraph to cost roughly:

  • (1,000 * 1.3) + (35 * 1.3) (for the initial prompt) tokens sent to the API
  • + (1,000 * 1.3) tokens received from the API
  • = 2,645 tokens = $0.0053

Links

Supported Versions

  • Wagtail 5.2
  • Django 4.2
  • Python 3.11

About

Get help with your Wagtail content using AI superpowers.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.4%
  • TypeScript 12.4%
  • JavaScript 3.2%
  • CSS 1.8%
  • HTML 0.2%