Changeset 3306156
- Timestamp:
- 06/04/2025 06:18:43 AM (6 months ago)
- Location:
- ai-content-writer/trunk
- Files:
-
- 5 edited
-
ai-content-writer.php (modified) (2 diffs)
-
includes/Plugin.php (modified) (2 diffs)
-
languages/ai-content-writer.pot (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ai-content-writer/trunk/ai-content-writer.php
r3295814 r3306156 4 4 * Plugin URI: https://beautifulplugins.com/ai-content-writer/ 5 5 * 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. 26 * Version: 2.0.3 7 7 * Requires at least: 5.0 8 8 * Requires PHP: 7.4 … … 47 47 */ 48 48 function ai_content_writer() { 49 return Plugin::create( __FILE__, '2.0. 2' );49 return Plugin::create( __FILE__, '2.0.3' ); 50 50 } 51 51 -
ai-content-writer/trunk/includes/Plugin.php
r3295814 r3306156 242 242 // https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent. 243 243 // 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. 244 247 // phpcs:enable 245 $model_name = 'gemini-1.5- pro';248 $model_name = 'gemini-1.5-flash'; 246 249 $url = 'https://generativelanguage.googleapis.com/v1/models/' . $model_name . ':generateContent'; 247 250 … … 291 294 return $generated_text; 292 295 } else { 296 $error_msg = isset( $result['error']['message'] ) ? $result['error']['message'] : esc_html__( 'An unexpected error occurred while generating the content.', 'ai-content-writer' ); 293 297 // 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 ); 295 299 } 296 300 } -
ai-content-writer/trunk/languages/ai-content-writer.pot
r3295814 r3306156 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: AI Content Writer 2.0. 2\n"5 "Project-Id-Version: AI Content Writer 2.0.3\n" 6 6 "Report-Msgid-Bugs-To: https://beautifulplugins.com/support/\n" 7 "POT-Creation-Date: 2025-0 5-18 16:12:39+00:00\n"7 "POT-Creation-Date: 2025-06-04 06:13:39+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 69 69 70 70 #: includes/Admin/Actions.php:310 includes/Admin/views/generate-content.php:82 71 #: includes/Plugin.php:32 1includes/functions.php:38171 #: includes/Plugin.php:325 includes/functions.php:381 72 72 msgid "" 73 73 "You are an expert SEO content writer. Generate factually accurate, " … … 1266 1266 msgstr "" 1267 1267 1268 #: includes/Plugin.php:29 4 includes/Plugin.php:3761268 #: includes/Plugin.php:296 includes/Plugin.php:380 1269 1269 msgid "An unexpected error occurred while generating the content." 1270 1270 msgstr "" 1271 1271 1272 #: includes/Plugin.php:31 21272 #: includes/Plugin.php:316 1273 1273 msgid "" 1274 1274 "Please configure the API settings. A valid ChatGPT OpenAI API key is " … … 1276 1276 msgstr "" 1277 1277 1278 #: includes/Plugin.php:3 181278 #: includes/Plugin.php:322 1279 1279 msgid "Please provide a prompt to generate the content." 1280 1280 msgstr "" 1281 1281 1282 #: includes/Plugin.php: 3971282 #: includes/Plugin.php:401 1283 1283 msgid "" 1284 1284 "Please configure the API settings. A valid Pexels API key is required to " … … 1286 1286 msgstr "" 1287 1287 1288 #: includes/Plugin.php:43 01288 #: includes/Plugin.php:434 1289 1289 msgid "An unexpected error occurred while generating the images." 1290 1290 msgstr "" -
ai-content-writer/trunk/readme.txt
r3295814 r3306156 3 3 Tags: content writer, ai, content, writing, autoblog 4 4 Tested up to: 6.8 5 Stable tag: 2.0. 25 Stable tag: 2.0.3 6 6 License: GPLv2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 186 186 187 187 == 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 188 191 = 2.0.2 (18th May 2025) = 189 192 * New: Added support for filtering content. -
ai-content-writer/trunk/vendor/composer/installed.php
r3295814 r3306156 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.