acwc(); $acwc_parameters = array( 'type' => 'topic', 'post_type' => 'post', 'model' => get_option('acwc_ai_model','gpt-3.5-turbo'), 'temperature' => $acwc->temperature, 'max_tokens' => 3000, 'top_p' => $acwc->top_p, 'best_of' => $acwc->best_of, 'frequency_penalty' => $acwc->frequency_penalty, 'presence_penalty' => $acwc->presence_penalty, 'prompt_title' => 'Suggest [count] title for an article about [topic]', 'prompt_section' => 'Write [count] consecutive headings for an article about [title]', 'prompt_content' => 'Write a comprehensive article about [title], covering the following subtopics [sections]. Each subtopic should have at least [count] paragraphs. Use a cohesive structure to ensure smooth transitions between ideas. Include relevant statistics, examples, and quotes to support your arguments and engage the reader.', 'prompt_meta' => 'Write a meta description about [title]. Max: 155 characters.', 'prompt_excerpt' => 'Generate an excerpt for [title]. Max: 55 words.' ); $acwc_all_templates = get_posts(array( 'post_type' => 'acwc_mtemplate', 'posts_per_page' => -1 )); $acwc_templates = array(array( 'title' => 'Default', 'content' => $acwc_parameters )); foreach ($acwc_all_templates as $acwc_all_template){ $acwc_template_content = is_serialized($acwc_all_template->post_content) ? unserialize($acwc_all_template->post_content) : array(); $acwc_template_content = wp_parse_args($acwc_template_content,$acwc_parameters); $acwc_templates[$acwc_all_template->ID] = array( 'title' => $acwc_all_template->post_title, 'content' => $acwc_template_content ); } $default_name = ''; if(isset($selected_template) && !empty($selected_template)){ $acwc_parameters = $acwc_templates[$selected_template]['content']; $default_name = $acwc_templates[$selected_template]['title']; } ?>

Settings

Ensure [count] and [topic] is included in your prompt.

Ensure [count] and [title] is included in your prompt.

Ensure [title], [sections] and [count] is included in your prompt.

Ensure [title] is included in your prompt.

Ensure [title] is included in your prompt.