Install
Works with Drupal: ^10.5 || ^11.2Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This patch release improves model selection reliability, image generation, and compatibility with Drupal AI.
Fixes
- Preserve saved model selections when OpenRouter model discovery fails or returns a partial catalog. Remove fictional fallback models and cache only complete catalogs. Resolves #3635366; thanks to jurius for reporting the problem.
- Exclude batch-only and native-image-only models from operations that use chat completions.
- Correct non-streamed cached-token accounting to match streaming responses.
- Avoid referencing a PDF capability enum case absent from older supported AI versions.
- Normalize missing image indexes before SDK decoding, restoring image generation through chat completions.
- Correct the default Gemini embedding-001 vector size to 3072. Explicit requests for 768 dimensions continue to work.
Updating
No database updates are required for these provider changes. Rebuild Drupal caches after updating. Existing Gemini vector indexes are not resized automatically: verify index dimensions and any explicit truncation settings before reindexing.
Verification
Verified on Drupal 11.4.12, AI 1.5.2, PHP 8.4 and openai-php/client 0.21.0. Unit tests: 3 passed. Kernel tests with live calls disabled: 28 passed, 23 skipped. Functional tests: 10 passed, 7 skipped. The separate image suite passed all 7 tests, including three live generations. Live Gemini requests confirmed default and explicitly requested dimensions. These runs overlap and should not be added together.
Existing upstream deprecations remain. The full live chat/assistant suite and a complete minimum-supported-version matrix were not run. New regression coverage includes catalog failures and recovery, browser settings saves, token usage, and SDK image decoding.