Changeset 3252264
- Timestamp:
- 03/07/2025 03:39:23 PM (12 months ago)
- Location:
- comment2aichat/trunk
- Files:
-
- 2 edited
-
comment2aichat.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
comment2aichat/trunk/comment2aichat.php
r3252116 r3252264 3 3 * Plugin Name: Comment2AIChat 4 4 * Description: Replace WordPress default comment area (for posts only) with an AI chat using either OpenAI or DeepSeek. 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Author: Qgenius 7 7 * Author URI: https://www.qgenius.com/comment2aichat/ … … 130 130 // Safely handle input: check existence, unslash, then sanitize 131 131 $user_selected_model = isset( $_POST['comment2aichat_model'] ) ? sanitize_text_field( wp_unslash( $_POST['comment2aichat_model'] ) ) : ''; 132 $model = ( 'o 1-mini' === $user_selected_model ) ? 'o1-mini' : 'deepseek-chat';132 $model = ( 'o3-mini' === $user_selected_model ) ? 'o3-mini' : 'deepseek-chat'; 133 133 134 134 $apikey = isset( $_POST['comment2aichat_apikey'] ) ? sanitize_text_field( wp_unslash( $_POST['comment2aichat_apikey'] ) ) : ''; … … 163 163 <td> 164 164 <select id="comment2aichat_model" name="comment2aichat_model"> 165 <option value="o 1-mini" <?php selected( $current_model, 'o1-mini' ); ?>>OpenAI</option>165 <option value="o3-mini" <?php selected( $current_model, 'o3-mini' ); ?>>OpenAI</option> 166 166 <option value="deepseek-chat" <?php selected( $current_model, 'deepseek-chat' ); ?>>DeepSeek</option> 167 167 </select> … … 269 269 ); 270 270 271 $endpoint_url = ( 'o 1-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'; 272 272 273 273 $body = array( -
comment2aichat/trunk/readme.txt
r3252116 r3252264 5 5 Requires at least: 5.7 6 6 Tested up to: 6.7 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 It provides integration with two models: 16 16 1. **DeepSeek** (model: `deepseek-chat`) 17 2. **OpenAI** (model: `o 1-mini`)17 2. **OpenAI** (model: `o3-mini`) 18 18 19 19 A settings page under "Settings > AIChat" allows you to select the model, enter your API key, and set a custom prompt. … … 48 48 49 49 == Changelog == 50 = 1.0.2 = 51 * Upgrade the OpenAI model to o3-mini. 52 50 53 = 1.0.1 = 51 54 * Updated shortcode registration and auto-append functionality. … … 57 60 58 61 == Upgrade Notice == 62 = 1.0.2 = 63 The 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 59 65 = 1.0.1 = 60 66 * 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.