Plugin Directory

Changeset 3306156


Ignore:
Timestamp:
06/04/2025 06:18:43 AM (6 months ago)
Author:
beautifulplugins
Message:

Release version refs/tags/v2.0.3

Location:
ai-content-writer/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ai-content-writer/trunk/ai-content-writer.php

    r3295814 r3306156  
    44 * Plugin URI:        https://beautifulplugins.com/ai-content-writer/
    55 * Description:       AI Content Writer helps you automatically generate high-quality, SEO-optimized content for your blog or website in minutes using advanced AI technologies like ChatGPT, OpenAI, Google Gemini, and more.
    6  * Version:           2.0.2
     6 * Version:           2.0.3
    77 * Requires at least: 5.0
    88 * Requires PHP:      7.4
     
    4747 */
    4848function ai_content_writer() {
    49     return Plugin::create( __FILE__, '2.0.2' );
     49    return Plugin::create( __FILE__, '2.0.3' );
    5050}
    5151
  • ai-content-writer/trunk/includes/Plugin.php

    r3295814 r3306156  
    242242        // https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent.
    243243        // TODO: Working well but failed after few days of using it, $url = 'https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent';
     244        // $model_name = 'gemini-1.5-pro';
     245        // $model_name = 'gemini-2.5-flash-preview-05-20';
     246        // Preview models, often denoted by dates in their names (e.g., preview-05-20), are typically accessible only through the v1beta version of the API. The stable v1 endpoint, which is recommended for production applications, supports generally available models.
    244247        // phpcs:enable
    245         $model_name = 'gemini-1.5-pro';
     248        $model_name = 'gemini-1.5-flash';
    246249        $url        = 'https://generativelanguage.googleapis.com/v1/models/' . $model_name . ':generateContent';
    247250
     
    291294            return $generated_text;
    292295        } else {
     296            $error_msg = isset( $result['error']['message'] ) ? $result['error']['message'] : esc_html__( 'An unexpected error occurred while generating the content.', 'ai-content-writer' );
    293297            // Handle the case where the response does not contain the expected data.
    294             return new \WP_Error( 'unexpected_api_response', esc_html__( 'An unexpected error occurred while generating the content.', 'ai-content-writer' ) );
     298            return new \WP_Error( 'unexpected_api_response', $error_msg );
    295299        }
    296300    }
  • ai-content-writer/trunk/languages/ai-content-writer.pot

    r3295814 r3306156  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: AI Content Writer 2.0.2\n"
     5"Project-Id-Version: AI Content Writer 2.0.3\n"
    66"Report-Msgid-Bugs-To: https://beautifulplugins.com/support/\n"
    7 "POT-Creation-Date: 2025-05-18 16:12:39+00:00\n"
     7"POT-Creation-Date: 2025-06-04 06:13:39+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    6969
    7070#: includes/Admin/Actions.php:310 includes/Admin/views/generate-content.php:82
    71 #: includes/Plugin.php:321 includes/functions.php:381
     71#: includes/Plugin.php:325 includes/functions.php:381
    7272msgid ""
    7373"You are an expert SEO content writer. Generate factually accurate, "
     
    12661266msgstr ""
    12671267
    1268 #: includes/Plugin.php:294 includes/Plugin.php:376
     1268#: includes/Plugin.php:296 includes/Plugin.php:380
    12691269msgid "An unexpected error occurred while generating the content."
    12701270msgstr ""
    12711271
    1272 #: includes/Plugin.php:312
     1272#: includes/Plugin.php:316
    12731273msgid ""
    12741274"Please configure the API settings. A valid ChatGPT OpenAI API key is "
     
    12761276msgstr ""
    12771277
    1278 #: includes/Plugin.php:318
     1278#: includes/Plugin.php:322
    12791279msgid "Please provide a prompt to generate the content."
    12801280msgstr ""
    12811281
    1282 #: includes/Plugin.php:397
     1282#: includes/Plugin.php:401
    12831283msgid ""
    12841284"Please configure the API settings. A valid Pexels API key is required to "
     
    12861286msgstr ""
    12871287
    1288 #: includes/Plugin.php:430
     1288#: includes/Plugin.php:434
    12891289msgid "An unexpected error occurred while generating the images."
    12901290msgstr ""
  • ai-content-writer/trunk/readme.txt

    r3295814 r3306156  
    33Tags: content writer, ai, content, writing, autoblog
    44Tested up to: 6.8
    5 Stable tag: 2.0.2
     5Stable tag: 2.0.3
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    186186
    187187== Changelog ==
     188= 2.0.3 (4th June 2025) =
     189* Fix: Fixed a bug that caused the plugin to crash when generating instant content with Gemini.
     190
    188191= 2.0.2 (18th May 2025) =
    189192* New: Added support for filtering content.
  • ai-content-writer/trunk/vendor/composer/installed.php

    r3295814 r3306156  
    22    'root' => array(
    33        'name' => 'beautifulplugins/ai-content-writer',
    4         'pretty_version' => 'v2.0.2',
    5         'version' => '2.0.2.0',
    6         'reference' => '4f0e416e3459c23b1bf76fbf85eaec530649e820',
     4        'pretty_version' => 'v2.0.3',
     5        'version' => '2.0.3.0',
     6        'reference' => 'fdcae9f74298d2d3749471bc9cfdd98a8d692add',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'beautifulplugins/ai-content-writer' => array(
    14             'pretty_version' => 'v2.0.2',
    15             'version' => '2.0.2.0',
    16             'reference' => '4f0e416e3459c23b1bf76fbf85eaec530649e820',
     14            'pretty_version' => 'v2.0.3',
     15            'version' => '2.0.3.0',
     16            'reference' => 'fdcae9f74298d2d3749471bc9cfdd98a8d692add',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.