For image gen, move guidelines from being system instructions to being part of the prompt#497
For image gen, move guidelines from being system instructions to being part of the prompt#497dkotter wants to merge 1 commit into
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❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #497 +/- ##
=============================================
+ Coverage 69.15% 69.16% +0.01%
Complexity 981 981
=============================================
Files 63 63
Lines 4649 4648 -1
=============================================
Hits 3215 3215
+ Misses 1434 1433 -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:
|
…he prompt (WordPress#497) Co-authored-by: gziolo <gziolo@git.wordpress.org> Co-authored-by: dkotter <dkotter@git.wordpress.org>
|
This was merged into |

What?
Closes #496
For image generation, add matching guidelines as part of the prompt instead of system instructions
Why?
Turns out some image generation models (like OpenAI) don't support system instructions. This was wrong advice by me on the PR that implemented guideline support (I must have been testing with Google only).
This means that trying to generate images using OpenAI when you have guidelines in place won't work if those are set as system instructions.
How?
Instead of setting the guidelines as a system prompt, append those to the prompt
Use of AI Tools
None
Testing Instructions
Changelog Entry