-
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: Release Breve to production (#38697)
* release Breve for all sites * changelog
- Loading branch information
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/plugins/jetpack/changelog/update-jetpack-ai-breve-production
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: Release Breve to production |
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
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
6 changes: 1 addition & 5 deletions
6
...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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
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 + 50% of production sites. | ||
const isBreveAvailable = | ||
getFeatureAvailability( 'ai-proofread-breve' ) || [ 0, 2, 6, 7, 9 ].includes( blogId % 10 ); | ||
const isBreveAvailable = getFeatureAvailability( 'ai-proofread-breve' ); | ||
|
||
export default isBreveAvailable; |