=== DPA AI Assistant ===
Contributors: digistatejp
Tags: ai, gpt, openai, writer, image generator
Requires at least: 6.5
Tested up to: 7.0
Stable tag: 0.4.0
Requires PHP: 8.0
Donate link: https://dpapps.net/donation/
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI Content Generating Assistant - Chat, Writer, Image Generator, Voice Conversion, Custom AI, and WordPress 7.0 AI Connectors.

== Description ==

DPA AI Assistant helps you create content in the WordPress block editor by connecting to OpenAI, Google (Gemini), Anthropic (Claude), and Stability AI.

Use Chat for conversational assistance, Writer for structured articles (title, sections, body, excerpt, tags, and featured image), Image Generation for visuals, and Voice Conversion for text-to-speech and speech-to-text. Prompts can also be entered by microphone in supported screens.

Custom AI replaces the former Fine-Tuning and Assistants features. Add custom instructions and upload reference files (PDFs, text, and other supported formats) so GPT in Chat and Writer can search your documents while answering.

On WordPress 7.0 and later, enable AI Connectors integration in plugin settings to use API keys managed under Settings > Connectors. Choose Auto mode to prefer your plugin OpenAI key when set, or use Connectors for text generation with OpenAI, Google, and Anthropic without entering keys in the plugin.

Main features:

* Chat, Writer, and editor title/excerpt suggestions with GPT, Gemini, or Claude
* Image generation with DALL-E, Gemini (via Connectors), or Stability AI
* Voice Conversion (TTS / STT) including Google speech models where Connectors support them
* Custom AI — instructions and reference files with OpenAI file search
* WordPress 7.0 AI Connectors integration (Auto, Connectors-only, or plugin API key modes)
* Block editor sidebar — suggest titles and excerpts (Connectors or plugin OpenAI key)

== Installation ==

1. From the WP admin panel, click "Plugins" -> "Add new".
2. In the browser input box, type "DPA AI Assistant".
3. Select the "DPA AI Assistant" plugin and click "Install".
4. Activate the plugin.

OR...

1. Download the plugin from this page.
2. Save the .zip file to a location on your computer.
3. Open the WP admin panel, and click "Plugins" -> "Add new".
4. Click "upload".. then browse to the .zip file downloaded from this page.
5. Click "Install".. and then "Activate plugin".

== Usage ==

Quick start (plugin API keys)

1. Create accounts with the AI services you want to use (for example OpenAI, Google AI, Anthropic, and/or Stability AI).
2. Open DPAPPS > AI Assistant in the WordPress admin, or click the AI Assistant button in the block editor.
3. Go to the Settings tab and enter API keys for the providers you need (OpenAI, Google, Anthropic, Stability AI).
4. Use Chat, Writer, Image Generation, Voice Conversion, or Custom AI from the tabs.

WordPress 7.0 AI Connectors (recommended on WP 7.0+)

1. Update to WordPress 7.0 or later.
2. In the admin, open Settings > Connectors, install the provider plugins you need (OpenAI, Google, Anthropic), and connect your API keys.
3. In DPAPPS > AI Assistant > Settings, open AI Connectors Integration and choose Auto or Use WordPress AI Connectors.
4. Text generation in Chat, Writer, and block-editor title/excerpt suggestions can then use Connectors without storing those keys in the plugin. Gemini image generation also uses the Google connector when Connectors mode is active.

Custom AI

1. Open the Custom AI tab (admin users only).
2. Turn on Enable Custom AI, add custom instructions, and choose whether to use them in Chat and/or Writer.
3. Upload reference files on the Reference files tab. When files are ready, GPT in Chat and Writer can search them while answering (requires a plugin OpenAI API key).

Block editor

1. Edit a post or page in the block editor.
2. Use the AI Assistant toolbar button to open Chat, Writer, and other tools.
3. In the post sidebar, use Suggest for AI-generated title and excerpt candidates.

More details and documentation are available [here](https://dpapps.net/docs/docs-ai-assistant/).

== Frequently Asked Questions ==

= What is the "DPA AI Assistant" plugin? =

DPA AI Assistant is a WordPress plugin that connects your site to generative AI services. It helps you draft and refine content with Chat and Writer, generate images, convert speech and text, and tailor GPT responses with Custom AI — all from the block editor and the DPAPPS admin screen.

= Do I need WordPress 7.0 to use this plugin? =

No. The plugin works on WordPress 6.2 and later. WordPress 7.0 adds optional AI Connectors support so you can manage OpenAI, Google, and Anthropic API keys under Settings > Connectors and use them from compatible features without entering keys in the plugin.

= What is AI Connectors integration? =

On WordPress 7.0+, you can register API keys once under Settings > Connectors. DPA AI Assistant can use those keys for text generation (GPT, Gemini, Claude), Gemini image generation, and related features. In plugin settings, choose Auto (plugin OpenAI key first, then Connectors), Use WordPress AI Connectors, or Use plugin OpenAI API key.

= What happened to Fine-Tuning and Assistants? =

Fine-Tuning and OpenAI Assistants have been removed in version 0.4.0. They are replaced by Custom AI, which lets you add custom instructions and upload reference documents for GPT in Chat and Writer. This approach uses OpenAI file search instead of training custom models.

= What is Custom AI? =

Custom AI is a panel where site administrators can enable custom instructions and upload reference files (PDFs, text, and other supported formats). When enabled for Chat or Writer, GPT can use your instructions and search uploaded documents while generating answers. Custom AI and reference files require a plugin OpenAI API key; they are not available through Connectors mode alone.

= Which AI providers are supported? =

* OpenAI — Chat, Writer, DALL-E images, Voice Conversion, Custom AI, and editor suggestions
* Google (Gemini) — Chat and Writer text (via Connectors); Gemini images and speech (via Connectors where supported)
* Anthropic (Claude) — Chat and Writer text (via Connectors)
* Stability AI — Image generation (plugin API key in settings)

= Do I still need my own API keys? =

Yes. This plugin connects to third-party AI services; you are responsible for obtaining API keys and complying with each provider's terms and billing. Keys can be stored in the plugin settings and/or in WordPress Connectors (7.0+), depending on the feature and provider mode you choose.

= Can I suggest titles and excerpts without an OpenAI key in the plugin? =

Yes, on WordPress 7.0+ with AI Connectors configured and Connectors integration enabled in the plugin, title and excerpt suggestions in the block editor sidebar can use Connectors even if no OpenAI key is saved in the plugin.

== Screenshots ==

1. Chat screen (GPT, Gemini, or Claude)
2. Image generation screen (DALL-E, Gemini, or Stability AI)
3. Writer screen
4. Writer screen (generated content, tags, and featured image)
5. Voice Conversion screen (Text to Speech)
6. Voice Conversion screen (Speech to text)
7. Custom AI — custom instructions
8. Custom AI — reference files
9. AI Connectors integration settings
10. Provider settings (OpenAI, Google, Anthropic)
11. Plugin general settings
12. Suggest title and excerpt in the block editor

== Disclaimer ==

DPA AI Assistant is a plugin that helps you to connect your websites to AI services. You need your own API keys and must follow the rules set by the AI service you choose. Before using this plugin, please check their terms of use.

* OpenAI: [Terms of Service](https://openai.com/terms/), [Privacy Policy](https://openai.com/privacy/)
* Google (Gemini): [Terms of Service](https://ai.google.dev/gemini-api/terms), [Privacy Policy](https://policies.google.com/privacy)
* Anthropic: [Commercial Terms](https://www.anthropic.com/legal/commercial-terms), [Privacy Policy](https://www.anthropic.com/legal/privacy)
* Stability AI: [Terms of Service](https://platform.stability.ai/legal/terms-of-service), [Privacy Policy](https://stability.ai/privacy-policy)

Please do so with other services as well. Our privacy policy is [here](https://dpapps.net/privacy-policy/).

The developer of DPA AI Assistant and related parties are not responsible for any issues or losses caused by using the plugin or AI-generated content. You should talk to a legal expert and follow the laws and regulations of your country. DPA AI Assistant does only store data on your own server, and it is your responsibility to keep it safe.

== Upgrade notice ==

== For developers ==

The development hub for this plugin and the source code can be found at <a href="https://github.com/DigiPressApps/dpa-ai-assistant">https://github.com/DigiPressApps/dpa-ai-assistant</a>.

== Changelog ==

= 0.4.0 (2026/06/07) =
* New: Added WordPress 7.0 AI Connectors integration. Text generation in Chat, Writer, and editor title/excerpt suggestions can use API keys managed under Settings > Connectors (Auto, Connectors-only, or plugin OpenAI key modes with optional fallback).
* New: Added support for Google (Gemini) and Anthropic (Claude) text models through AI Connectors, including dynamic model lists from connected providers.
* New: Added Gemini image generation via WordPress AI Client (Connectors). Google image parameters (aspect ratio, orientation, output modalities, and candidate count) are supported.
* New: Added Google speech generation settings and Text-to-Speech via Connectors where supported.
* New: Replaced Fine-Tuning with Custom AI — custom instructions plus reference file uploads (OpenAI Files and Vector Stores) for GPT in Chat and Writer, using the Responses API with file search when reference files are attached.
* New: Added speech-to-text prompt input via microphone recording in Chat, Writer, and Image Generation.
* New: Added Writer support for generating tags and featured images, including Gemini-based featured image generation when Connectors are available.
* Update: Removed the Assistants panel and related OpenAI Assistants API integration.
* Update: Removed Fine-Tuning (dataset creation, job list, and tuned model management). Existing saved initial-tab values for Fine-Tuning or Assistants open the Custom AI tab instead.
* Update: Updated Japanese translation files.
* Improved: Compatibility with WordPress 7.0.
* Improved: Editor sidebar title and excerpt suggestions now work when only WordPress AI Connectors are configured (no plugin OpenAI API key required).
* New: Added AI suggest buttons in core document settings panels (excerpt, tags, and featured image), using the same suggestion modals as the AI Assistant panel.
* New: Added a "Generate title" button that appears at the top-right of the post title field in the editor canvas when the title is focused.
* Improved: Suggest buttons in the AI Assistant panel and document settings now share consistent icons and labels.
* Fix: Fixed the post title suggest button not appearing in the block editor canvas (correct editor iframe targeting).
* Fix: Fixed suggestion modals showing `[object Object]` when an API error object was passed to the error display.
* Improved: Image generation log actions (upload to Media Library, download, and insert as a block) are available in the free version without a Pro upgrade prompt.
* Improved: Chat and Writer UI refresh (engine-aware logs, streaming fallback for Connectors text generation, and expanded provider settings).
* Fix: Minor UI and stability fixes.

= 0.3.5 (2025/12/17) =
* Update: Added GPT-5.1 and GPT-5.2 to the selectable text generation AI models.
* Update: Added GPT Image 1 mini and GPT Image 1.5 to the selectable image generation AI models.
* Update: Updated Japanese translation file.
* Improved: Compatibility with WP 6.9.
* Fix: Fixed an issue where the plugin settings panel could not be displayed due to an Undefined error.
* Fix: Minor fixed.

= 0.3.2 (2025/09/03) =
* Update: Updated japanese translation file.
* Fix: Fixed a JavaScript error that occurred when selecting the Speech to Text tab.

= 0.3.1 (2025/09/02) =
* Update: Added GPT-5 mini, GPT-5 nano and GPT-5 to text generation models.
* Update: Added "Verse" voice for GPT speech models.
* Update: Updated japanese translation file.
* Improved: Added support for direct send prompts via Enter key (chat, image generation, writer, text-to-speech).
* Improved: Compatibility with WP 6.8.2.

= 0.3.0 (2025/05/15) =
* Update: Added GPT-4.1 mini, GPT-4.1 nano, GPT-4o mini, GPT-4o mini Search Preview and GPT-4o Search Preview to text generation models.
* Update: Added GPT image 1 to image generation models.
* Update: Added GPT-4o mini TTS 1 to text to speech models.
* Update: Added GPT-4o mini Transcribe 1 to speech to text models.
* Update: Added support for custom instruction input in text-to-speech mode (for GPT-4o mini TTS).
* Update: Optimized the system prompt for writer mode by converting it to markdown format.
* Update: Changed to display markdown-formatted responses as HTML.
* Update: Updated japanese translation file.
* Improved: Compatibility with WP 6.8.1.
* Fix: Minor style and UI improvements.

= 0.2.5 (2025/02/25) =
* Update: Added o1 and o3-mini to GPT models.
* Update: Updated japanese translation file.
* Improved: Compatibility with WP 6.7.2.

= 0.2.3 (2024/12/26) =
* Update: Updated japanese translation file.

= 0.2.2 (2024/12/17) =
* Improved: Compatibility with WP 6.7.1.

= 0.2.1 (2024/09/18) =
* Update: Added new GPT model "o1-preview" and "o1-mini" in chat and writer function.
* Update: Updated all npm packags.

= 0.2.0 (2024/07/21) =
* Update: Added new text generation model "GPT-4o mini" in Chat function.
* Update: The default GPT model is changed from "GPT-3.5 Turbo" to "GPT-4o mini".
* Fix: Fixed a bug in the writer function where it was not possible to replace the intro and outro titles when selecting gpt-4o-mini.
* Fix: Removed [deprecated models](https://platform.openai.com/docs/deprecations) in Open AI from plugin's selectable AI models.

= 0.1.6 (2024/07/19) =
* Fix: Fixed a bug that caused values ​​to be unable to be passed to the props spread syntax due to the change from defaultProps to default parameters.
* Fix: Removed unnecessary custom components.

= 0.1.5 (2024/07/10) =
* Fix: Removed `defaultProps` (Deprecated in React 19).
* Fix: Removed unnecessary custom components.

= 0.1.4 (2024/07/04) =
* Fix: Removed `defaultProps` (Deprecated in React 19).
* Fix: Minor fixed for the next WordPress 6.6.

= 0.1.3 (2024/07/01) =
* Update: Update Japanese translation file for PHP (dpa-ai-assistant-ja.po).

= 0.1.2 (2024/06/28) =
* Update: Update readme.txt and README.md.
* Fix: Sanitize post data sent via REST API.
* Fix: Matched the text domain to plugin slug.

= 0.1.1 (2024/05/26) =
* Fix: Escaping text output.