Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 31.62 KB
MD5: db49e977ee6238a9c03c59639d7a5e7f
SHA-1: 547704a421325a16fc7b11c70160bd30b6679a14
SHA-256: d4f52344e401cad64afc9ecba86382cb88d29f5e16b10720e8cd69e3c2210401
Download zip 40.41 KB
MD5: f48c7166ac3efc9e5025a563d7aa9384
SHA-1: eea98580b7c027979a97184994b4b5855cad31f6
SHA-256: 2b091eca1ec402d913f760adef0a14ee4152e83fb2caaa3b336f1a0abc16d687

Release notes

This release adds image embeddings support and corrects the embeddings model metadata that the AI module relies on for vector storage and content chunking.

New features

  • #3588392: Image Embeddings Image embeddings. An EmbeddingsInput carrying an image is now sent to the Gemini embeddings endpoint as inline data. Text and an image supplied together produce a single combined vector.

Changes

  • #3588392: Image Embeddings Embeddings models are now discovered from the model's embedContent capability instead of a name pattern, so the model list reflects what the API actually supports.
  • #3588392: Image Embeddings maxEmbeddingsInput() now reports a per-model input token limit: 8192 for models/gemini-embedding-2, 2048 for the older text-only models. It previously reported 2048 for every model.
  • #3588392: Image Embeddings embeddingsVectorSize() reports 3072 for the gemini-embedding models. Models it does not recognise are resolved by the AI module base class instead of returning 0, which was previously written to the vector database as the collection dimension.

Bug fixes

  • #3588392: Image Embeddings Sending an image to a text-only embeddings model now fails immediately with a message naming the model, instead of an opaque error from the API.
  • #3588392: Image Embeddings Failures from the embeddings endpoint are now thrown as AiResponseErrorException, consistent with the other operation types.

Upgrade notes

Reindex after upgrading if you use AI Search with models/gemini-embedding-2.

The AI module's embedding strategies use maxEmbeddingsInput() as the default chunk size when no explicit chunk size is configured. Raising that value from 2048 to 8192 changes how content is split, so newly indexed content will not be chunked the same way as content indexed with 1.0.1. Sites that set an explicit chunk size on their embedding strategy are unaffected.

This is a beta release. It is not covered by Drupal's security advisory policy and is not recommended for production use.

Created by: lekso surameli
Created on: 22 Sep 2026 at 08:57 UTC
Last updated: 22 Sep 2026 at 08:57 UTC
Bug fixes
New features

Other releases