-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AI Assistant: Enable Breve for 10% of production sites (#38465)
* enable breve to 10% of production sites * changelog * fix highlights check
- Loading branch information
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/update-jetpack-ai-breve-production-10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: enhancement | ||
|
||
AI Assistant: Enable Breve for 10% of production sites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...jetpack/extensions/plugins/ai-assistant-plugin/components/breve/utils/get-availability.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { getFeatureAvailability } from '../../../../../blocks/ai-assistant/lib/utils/get-feature-availability'; | ||
|
||
const blogId = parseInt( window?.Jetpack_Editor_Initial_State?.wpcomBlogId ); | ||
|
||
// Enable backend prompts for beta sites + 10% of production sites. | ||
const isBreveAvailable = getFeatureAvailability( 'ai-proofread-breve' ) || blogId % 10 === 0; | ||
|
||
export default isBreveAvailable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters