Skip to content

Commit

Permalink
migrate repeater fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Nov 6, 2023
1 parent 51725a9 commit d28783f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions includes/Classifai/Features/ContentResizing.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ public function get_default_settings() {
'number_of_suggestions' => 1,
'condense_text_prompt' => array(
array(
'title' => esc_html__( 'Default', 'classifai' ),
'title' => esc_html__( 'Decrease the content length no more than 2 to 4 sentences.', 'classifai' ),
'prompt' => '',
'default' => 1,
'original' => 1,
),
),
'expand_text_prompt' => array(
array(
'title' => esc_html__( 'Default', 'classifai' ),
'title' => esc_html__( 'Increase the content length no more than 2 to 4 sentences.', 'classifai' ),
'prompt' => '',
'default' => 1,
'original' => 1,
),
),
],
Expand Down
4 changes: 2 additions & 2 deletions includes/Classifai/Features/ExcerptGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public function get_default_settings() {
'generate_excerpt_prompt' => array(
array(
'title' => esc_html__( 'Default', 'classifai' ),
'prompt' => '',
'default' => 1,
'prompt' => esc_html__( 'Summarize the following message using a maximum of {{WORDS}} words. Ensure this summary pairs well with the following text: {{TITLE}}.', 'classifai' ),
'original' => 1,
),
)
],
Expand Down
8 changes: 4 additions & 4 deletions includes/Classifai/Features/TitleGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function setup_fields_sections() {
$this,
[
'id' => 'generate_title_prompt',
'prompt_placeholder' => esc_html__( 'Summarize the following message using a maximum of {{WORDS}} words. Ensure this summary pairs well with the following text: {{TITLE}}.', 'classifai' ),
'prompt_placeholder' => esc_html__( 'Write an SEO-friendly title for the following content that will encourage readers to clickthrough, staying within a range of 40 to 60 characters.', 'classifai' ),
'description' => esc_html__( "Enter a custom prompt, if desired.", 'classifai' )
]
);
Expand All @@ -121,9 +121,9 @@ public function get_default_settings() {
'number_of_titles' => 1,
'generate_title_prompt' => array(
array(
'title' => esc_html__( 'Default', 'classifai' ),
'prompt' => '',
'default' => 1,
'title' => esc_html__( 'ClassifAI default', 'classifai' ),
'prompt' => esc_html__( 'Write an SEO-friendly title for the following content that will encourage readers to clickthrough, staying within a range of 40 to 60 characters.', 'classifai' ),
'original' => 1,
),
)
],
Expand Down

0 comments on commit d28783f

Please sign in to comment.