=== Comment2AIChat === Contributors: gaojun Donate link: https://www.qgenius.com/comment2aichat/ Tags: comments, AI, chatbot, DeepSeek, OpenAI Requires PHP: 7.4 Requires at least: 5.7 Tested up to: 6.7 Stable tag: 1.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Replace WordPress default comment area for posts with an AI chat powered by either DeepSeek or OpenAI. == Description == Comment2AIChat disables WordPress default comments on posts and replaces them with a chatbot-like interface. It provides integration with two models: 1. **DeepSeek** (model: `deepseek-chat`) 2. **OpenAI** (model: `o3-mini`) A settings page under "Settings > AIChat" allows you to select the model, enter your API key, and set a custom prompt. Use the shortcode `[comment2aichat_chat]` to display the chat interface anywhere (e.g., on pages or within posts). By default, the AI chat is automatically appended to single post contents. == External Services == This plugin connects to external APIs to provide AI chat functionality. - **OpenAI API** When the "OpenAI" model is selected, the plugin sends the user's message and a system prompt to OpenAI's endpoint at `https://api.openai.com/v1/chat/completions`. The API key is used for authentication. Please review OpenAI’s [Terms of Service](https://platform.openai.com/terms) and [Privacy Policy](https://platform.openai.com/privacy) for details. - **DeepSeek API** When the "DeepSeek" model is selected, the plugin sends the same data to DeepSeek's endpoint at `https://api.deepseek.com/chat/completions`. The API key is used for authentication. Refer to DeepSeek's official documentation for its terms of [DeepSeek Privacy Policy](https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html). == Installation == 1. Upload the entire `comment2aichat` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. Go to `Settings > AIChat` to select a model (DeepSeek or OpenAI), enter your API key, and optionally modify the assistant prompt. 4. Use the shortcode `[comment2aichat_chat]` to display the chat interface, or simply view any single post to see the chat appended below the content. == Frequently Asked Questions == = Why are default WordPress comments disabled for posts? = This plugin is designed to replace the default comment section on posts with an AI-powered chat interface. Other post types remain unaffected. = Where do I get an API key? = For OpenAI, visit [OpenAI Platform](https://platform.openai.com/). For DeepSeek, visit [DeepSeek API Keys](https://platform.deepseek.com/api_keys). == Screenshots == 1. Screenshot 1 – Frontend AI Chat interface. Users can type their question and click ‘SEND’ to receive AI-generated responses. 2. Screenshot 2 – AIChat plugin settings page, where you can select the model, enter your API Key, and set a custom assistant prompt. == Changelog == = 1.0.2 = * Upgrade the OpenAI model to o3-mini. = 1.0.1 = * Updated shortcode registration and auto-append functionality. * Added external services documentation in README. * Added 'gaojun' to Contributors list. = 1.0.0 = * Initial release. == Upgrade Notice == = 1.0.2 = 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. = 1.0.1 = * Please update to the latest version to use the new shortcode `[comment2aichat_chat]` and view updated external services documentation.