Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down
4 changes: 2 additions & 2 deletions waygate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__ ) );

Expand Down
Loading