Install

Works with Drupal: ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 34.58 KB
MD5: 1940ab58edcd889d7c97fdbaa66e0af9
SHA-1: e7ccfee7c963673a507e5e351c5db5bf1365394a
SHA-256: 22d51608d5fd2c3063394502c051b7f320168b967c9d8004fc83a0f4e77d9dea
Download zip 45.09 KB
MD5: c69a96e08b2aaf8deb9691ffffdbfce3
SHA-1: 1fb4f2cc645817e31bc788e06fdedd4b92e11eb2
SHA-256: b2b2c5d48a104948e58d45052d82ed71e7a1ce6259740e044e8ea453180df032

Release notes

This release sends PDFs and other documents attached to a chat message to Gemini; before, only images reached the model. It also removes the Response Schema and Response MimeType chat settings, which never had any effect. Sites with google-gemini-php/client 2.8 installed need an extra Composer flag to get this release; see the upgrade notes below.

Contributors (2)

lekso surameli, tazo_vekua

Bug fixes

  • #3589193 PDF file upload gives wrong response
    • Chat sends every file attached to a message, not only images. A PDF uploaded in the Chat Explorer used to be dropped, so Gemini answered without seeing it.
    • Files Gemini cannot read, such as Word documents, fail with an AiResponseErrorException naming the file type instead of being dropped silently.
    • Non-streamed chat responses have the assistant role instead of an empty role.
  • #3589192 Response schema and Response mimtype is useless - Json is in advanced menu
    • The chat settings no longer show Response Schema and Response MimeType. The provider always discarded both, so they never reached Gemini. Values saved by earlier versions are still ignored.
    • Structured output works as before, through the JSON schema set on ChatInput (Advanced -> JSON Schema in the Chat Explorer).
    • The 1.1.x releases conflict with google-gemini-php/client 2.8 and later. 1.2.0 will move structured output to that version's responseJsonSchema and require it.

Upgrade notes

If your composer.lock has google-gemini-php/client 2.8, composer update drupal/gemini_provider stays on 1.1.0 without an error. Run composer update drupal/gemini_provider --with-dependencies instead: it installs 1.1.1 and moves the client back to 2.7. If another package on your site requires client 2.8, Composer cannot install 1.1.1; stay on 1.1.0 until 1.2.0.

For developers: chat() throws AiResponseErrorException for an attached file whose type the Gemini client library cannot send. It previously ignored every attachment that was not an image.

Created by: lekso surameli
Created on: 10 Nov 2026 at 12:05 UTC
Last updated: 10 Nov 2026 at 12:05 UTC
Bug fixes

Other releases