Plugin Directory

Changeset 3252264


Ignore:
Timestamp:
03/07/2025 03:39:23 PM (12 months ago)
Author:
gaojun
Message:

Update to version 1.0.2: upgraded OpenAI model to o3-mini and improved performance.

Location:
comment2aichat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • comment2aichat/trunk/comment2aichat.php

    r3252116 r3252264  
    33 * Plugin Name: Comment2AIChat
    44 * Description: Replace WordPress default comment area (for posts only) with an AI chat using either OpenAI or DeepSeek.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: Qgenius
    77 * Author URI: https://www.qgenius.com/comment2aichat/
     
    130130        // Safely handle input: check existence, unslash, then sanitize
    131131        $user_selected_model = isset( $_POST['comment2aichat_model'] ) ? sanitize_text_field( wp_unslash( $_POST['comment2aichat_model'] ) ) : '';
    132         $model = ( 'o1-mini' === $user_selected_model ) ? 'o1-mini' : 'deepseek-chat';
     132        $model = ( 'o3-mini' === $user_selected_model ) ? 'o3-mini' : 'deepseek-chat';
    133133
    134134        $apikey = isset( $_POST['comment2aichat_apikey'] ) ? sanitize_text_field( wp_unslash( $_POST['comment2aichat_apikey'] ) ) : '';
     
    163163                    <td>
    164164                        <select id="comment2aichat_model" name="comment2aichat_model">
    165                             <option value="o1-mini" <?php selected( $current_model, 'o1-mini' ); ?>>OpenAI</option>
     165                            <option value="o3-mini" <?php selected( $current_model, 'o3-mini' ); ?>>OpenAI</option>
    166166                            <option value="deepseek-chat" <?php selected( $current_model, 'deepseek-chat' ); ?>>DeepSeek</option>
    167167                        </select>
     
    269269    );
    270270
    271     $endpoint_url = ( 'o1-mini' === $model ) ? 'https://api.openai.com/v1/chat/completions' : 'https://api.deepseek.com/chat/completions';
     271    $endpoint_url = ( 'o3-mini' === $model ) ? 'https://api.openai.com/v1/chat/completions' : 'https://api.deepseek.com/chat/completions';
    272272
    273273    $body = array(
  • comment2aichat/trunk/readme.txt

    r3252116 r3252264  
    55Requires at least: 5.7
    66Tested up to: 6.7
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515It provides integration with two models:
    16161. **DeepSeek** (model: `deepseek-chat`)
    17 2. **OpenAI** (model: `o1-mini`)
     172. **OpenAI** (model: `o3-mini`)
    1818
    1919A settings page under "Settings > AIChat" allows you to select the model, enter your API key, and set a custom prompt. 
     
    4848
    4949== Changelog ==
     50= 1.0.2 =
     51* Upgrade the OpenAI model to o3-mini.
     52
    5053= 1.0.1 =
    5154* Updated shortcode registration and auto-append functionality.
     
    5760
    5861== Upgrade Notice ==
     62= 1.0.2 =
     63The OpenAI model has been upgraded to o3-mini. This update improves performance and compatibility. Users are encouraged to update to this latest version to take advantage of these enhancements.
     64
    5965= 1.0.1 =
    6066* Please update to the latest version to use the new shortcode `[comment2aichat_chat]` and view updated external services documentation.
Note: See TracChangeset for help on using the changeset viewer.