From ac2f420c92833cde74ab27b500473027dd686aa5 Mon Sep 17 00:00:00 2001 From: Jasper Frumau Date: Sun, 24 May 2026 16:18:50 +0700 Subject: [PATCH 1/2] docs: clarify all providers support both env var and admin UI for API keys --- README.md | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index c935ba4..e3258bc 100644 --- a/README.md +++ b/README.md @@ -52,35 +52,34 @@ composer require imagewize/waygate ### AI features (optional) -AI page generation requires a running AI provider. Waygate supports: +AI page generation requires a running AI provider. WordPress 7.0+ supports Mistral, Claude (Anthropic), OpenAI, and Gemini via its built-in Connectors system. -**Mistral** — two installation paths, both read `MISTRAL_API_KEY` from the environment: - -_Bedrock / Composer (recommended):_ +**Installing provider plugins** (Bedrock / Composer): ```bash composer require wp-plugin/ai-provider-for-mistral +composer require wp-plugin/ai-provider-for-anthropic +# OpenAI and Gemini can be installed from Settings → Connectors in the WP admin ``` -The plugin self-registers with the WP AI Client. Add `MISTRAL_API_KEY=your_key` to your site `.env`; Bedrock exposes it automatically. +**Configuring API keys** — every provider supports two methods; environment variable takes priority over the database: -_Composer library (non-Bedrock):_ +| Provider | Env var | Admin UI | +|---|---|---| +| Mistral | `MISTRAL_API_KEY` in `.env` | Settings → Connectors | +| Claude (Anthropic) | `ANTHROPIC_API_KEY` in `.env` | Settings → Connectors | +| OpenAI | `OPENAI_API_KEY` in `.env` | Settings → Connectors | +| Google (Gemini) | `GOOGLE_API_KEY` in `.env` | Settings → Connectors | -```bash -composer require saarnilauri/ai-provider-for-mistral -``` +On Bedrock, add the key to your site `.env` and it is picked up automatically. On standard WordPress installs, enter the key directly in **Settings → Connectors** and it is stored in the database. -Waygate registers this provider manually since the library distribution excludes `plugin.php`. Set `MISTRAL_API_KEY` as a server environment variable or via your host's environment config. - -**Claude (Anthropic)** — Bedrock / Composer: +**Mistral via Composer library** (non-Bedrock, without the WP plugin): ```bash -composer require wp-plugin/ai-provider-for-anthropic +composer require saarnilauri/ai-provider-for-mistral ``` -Add `ANTHROPIC_API_KEY=your_key` to your site `.env`. - -**OpenAI / Gemini**: Install the relevant provider plugin via **Settings → Connectors** in WordPress 7.0+. +Waygate registers this provider manually since the library distribution excludes `plugin.php`. Set `MISTRAL_API_KEY` as a server environment variable. --- From fac82d15f536c51867345b584ae3f79590aba946 Mon Sep 17 00:00:00 2001 From: Jasper Frumau Date: Sun, 24 May 2026 16:23:37 +0700 Subject: [PATCH 2/2] chore: bump version to 0.6.2 --- CHANGELOG.md | 5 +++++ waygate.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43c639a..1b490a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to Waygate will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.6.2] - 2026-05-24 + +### Documentation +- Rewrote AI provider configuration section in `README.md`: all providers (Mistral, Claude, OpenAI, Gemini) support both an environment variable and the WordPress admin UI (Settings → Connectors); env var takes priority over the database-stored key + ## [0.6.1] - 2026-05-24 ### Documentation diff --git a/waygate.php b/waygate.php index 873c195..d6cf6b1 100644 --- a/waygate.php +++ b/waygate.php @@ -3,7 +3,7 @@ * Plugin Name: Waygate * Plugin URI: https://github.com/imagewize/waygate * Description: AI-powered pattern page builder for the Elayne block theme. Lists registered patterns, creates pages from pattern slugs, and integrates with WordPress AI Client for natural-language page generation. - * Version: 0.6.1 + * Version: 0.6.2 * Author: Jasper Frumau * Author URI: https://imagewize.com * License: GPL-2.0-or-later @@ -18,7 +18,7 @@ defined( 'ABSPATH' ) || exit; -define( 'WAYGATE_VERSION', '0.6.1' ); +define( 'WAYGATE_VERSION', '0.6.2' ); define( 'WAYGATE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'WAYGATE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );