Skip to content

Commit

Permalink
Jetpack AI Image: Register ai-general-purpose-image-generator beta ex…
Browse files Browse the repository at this point in the history
…tension (#37749)

* Register the ai-general-purpose-image-generator flag and set it as beta

* changelog
  • Loading branch information
lhkowalski authored Jun 11, 2024
1 parent 6c3a1d3 commit 1d97e67
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Jetpack AI: register ai-general-purpose-image-generator beta flag to control the changes we are doing to the image generation tool.
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,15 @@ function () {
}
}
);

/**
* Register the `ai-general-purpose-image-generator` extension.
*/
add_action(
'jetpack_register_gutenberg_extensions',
function () {
if ( apply_filters( 'jetpack_ai_enabled', true ) ) {
\Jetpack_Gutenberg::set_extension_available( 'ai-general-purpose-image-generator' );
}
}
);
3 changes: 2 additions & 1 deletion projects/plugins/jetpack/extensions/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
"videopress/video-chapters",
"ai-assistant-backend-prompts",
"ai-logo-generator",
"ai-assistant-extensions-support"
"ai-assistant-extensions-support",
"ai-general-purpose-image-generator"
],
"experimental": [ "ai-image", "ai-paragraph" ],
"no-post-editor": [
Expand Down

0 comments on commit 1d97e67

Please sign in to comment.