[Fix]: Meta Description Experiment | ensure_text_generation_supported#465
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #465 +/- ##
==========================================
Coverage 69.06% 69.07%
+ Complexity 958 957 -1
==========================================
Files 60 60
Lines 4513 4511 -2
==========================================
- Hits 3117 3116 -1
+ Misses 1396 1395 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bumps the github-actions-updates group with 1 update: [actions/setup-node](https://github.com/actions/setup-node). Updates `actions/setup-node` from 6.3.0 to 6.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@53b8394...48b55a0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 6.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates ... Signed-off-by: dependabot[bot] <support@github.com>
--- updated-dependencies: - dependency-name: phpstan/phpstan dependency-version: 2.1.49 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: composer-dev-minor-patch ... Signed-off-by: dependabot[bot] <support@github.com>

What?
Follow up to: https://github.com/WordPress/ai/pull/331/changes/BASE..c36de00bded0ed62f6547d8955cb2d1d2c28126b#r3112870157
This PR implements the
Abstract_Ability::ensure_text_generation_supported()method into the Meta Description experimentget_prompt_builder()method.NOTE: Also updates the
@sincetags as the placeholderx.x.xvalues were still present in thedevelopbranch.Why?
The
ensure_text_generation_supported()method is the Ability standard way of verifying a models capability for generating the experiment output. It's best to re-use existing methods for compatibility rather than re-inventing the wheel.How?
Replace the custom
$builder->is_text_generation_supported()method with the abstractensure_text_generation_supported()method.Use of AI Tools
N/A
Changelog Entry
Fixed - standards compliance.