Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

0.4.0

Latest

Choose a tag to compare

@felixarntz felixarntz released this 01 Mar 20:30
f53a17e

Breaking Changes

Important: This release includes 3 breaking changes, in light of the Core merge of most of this package:

  1. The 3 previously bundled providers are no longer bundled. You must install the respective provider plugins:
  2. If you were using the Ability_Function_Resolver class, you must update your plugin's code: The class was changed from static to mostly non-static (i.e. you now need to create an instance of it), and the constructor requires passing in the allowed abilities for the given context.
  3. Since sites may use WordPress 7.0 Beta or later which already includes most of this package's code and its dependencies, it is critical that you no longer use the Composer generated autoloader file. Instead, use this custom autoloader that will handle things conditionally based on the WordPress version used:
require_once __DIR__ . '/vendor/wordpress/wp-ai-client/autoload.php';

What's Changed

  • Prepares for 7.0 compat and transition by @JasonTheAdams in #60
  • Require providing allowed abilities in Ability_Function_Resolver, and make it non-static (for the most part) by @felixarntz in #61
  • Add example for using max tokens by @saarnilauri in #55
  • Update WordPress/php-ai-client to 1.2.1 by @felixarntz in #63

New Contributors

Full Changelog: 0.3.0...0.4.0