Wagtail-ai

Latest version: v2.0.1

Safety actively analyzes 626157 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.0.1

Changed

- Made [llm](https://pypi.org/project/llm/) a required dependency to simplify the installation process

2.0.0

Our first major version increase for Wagtail AI is out! For this release we've focused on improving the developer experience, making the user interface more resilient, and adding support for loads more LLMs.

Added

- New setting for specifying AI backends, with a new default backend using [`llm`](https://github.com/simonw/llm) (Tomasz Knapik)
- Support for many different LLMs such as GPT-4, local models, Mistral and Claude using [`llm` plugins`](https://llm.datasette.io/en/stable/plugins/directory.html) (Tomasz Knapik)
- Customisable text splitting backends (Tomasz Knapik)
- [More complete documentation](https://wagtail-ai.readthedocs.io/) (Tomasz Knapik)
- Custom prompts can now be managed through Wagtail admin (Ben Morse)

Changed

- Removed Langchain dependency. Text splitting is now customisable and defaults to a vendorised version of Langchain's text splitter. (Tomasz Knapik)
- Various developer experience improvements. (Tomasz Knapik, Dan Braghis)
- Minimum supported versions increased to Wagtail 5.2, Django 4.2 and Python 3.11 (Dan Braghis)
- Improved how prompts are passed to the admin (Ian Meigh)

Upgrade Considerations

Prompts managed in Wagtail admin

The `WAGTAIL_AI_PROMPTS` setting is no longer used. Prompts are now managed through the Wagtail admin under Settings -> Prompts.

Any custom prompts should be migrated to this new model, the `WAGTAIL_AI_PROMPTS` setting can then be removed.

New Contributors/Thanks

- [tm-kn](https://github.com/tm-kn) - AI backends/text splitting restructure
- [zerolab](https://github.com/zerolab) - support with developer tooling
- [Morsey187](https://github.com/Morsey187) - frontend refinements and admin prompt management
- [ianmeigh](https://github.com/ianmeigh) - improvements to admin integration

1.1.1

Changed
The URL used by the rich text editor button is now dynamically populated, fixing the issue where it would break if the admin URL had been changed.

1.1.0

Added

- Support for customising prompts using the `WAGTAIL_AI_PROMPTS` setting

Changed

- Content is now split based on token length before being sent to the API
- Significantly reduced bundle size (now using Draftail and Draft.js from Wagtail)
- Added better loading/error handling indicators

New Contributors/Thanks

- [tomdyson](https://github.com/tomdyson) for readme improvements, feature suggestions and a great demo in What's New in Wagtail

1.0.1

🔧 Fixes a bug when running completions

1.0.0

Initial release!

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.