Install

Works with Drupal: ^10.2 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 15.42 KB
MD5: 13e2bc137c5750d5fe0ec833c1d414fe
SHA-1: 8b6cfd5f461c576e89a2c57c354ca36f6d33969c
SHA-256: 6ff1c8491008bfd9402d35a01ad188b5a1f7f22a4c06e7947cdb1951aabbb952
Download zip 20.63 KB
MD5: 20c909abaa5a89ba0b69c3febb5e510c
SHA-1: ef6b42f7eabcd9a4194dfdd15a3e899a4ec9413c
SHA-256: bcf412603cb005167c3b01a33842fc54ae6ff3903be109237ad77d532b49ba66

Release notes

This release expands the provider beyond chat and embeddings, adding two new operation types and automatic capability detection so that models work out of the box with minimal configuration.

New features

- Speech to Text — audio transcription through Whisper models via /v1/audio/transcriptions.
- Rerank — document reranking support (implements ReRankInterface) via /v1/rerank.
- Automatic operation type detection — the provider determines each model's capabilities without manual setup, using, in order:
a. The --embeddings / --reranking flags reported in the server's model args.
b. The HuggingFace API pipeline_tag (for models loaded with --hf-repo).
c. Model name heuristics (e.g. whisper, embed, rerank), falling back to chat.
- Manual capability overrides — the settings form now lets you assign any operation type to any model with per-model checkboxes, overriding auto-detection. Overrides are stored in Drupal State.
- Ollama compatibility — because Ollama exposes a compatible /v1 API, this module can be pointed at an Ollama server (default port 11434) as an alternative to ai_provider_ollama, with the added benefit of manual operation-type overrides per model.

Improvements

- Detected operation types and HuggingFace API responses are now cached in Drupal State, providing resilience when the llama-server is unreachable.
- Added definitions/api_defaults.yml required by OpenAiBasedProviderClientBase.
- Documentation: new guidance on running the multi-model router (--models-preset), Ollama integration, and a roadmap section.

Supported operation types

Chat · Embeddings · Speech to Text · Rerank

Requirements

- Drupal 10.2+, 11, or 12
- The AI module (ai)
- A running llama-server (or compatible OpenAI /v1 endpoint). No API key required.

▎ Beta notice: This is a pre-release intended for testing. It is not covered by Drupal's security advisory policy. Please report issues in the project's issue queue.

Created by: leofishman
Created on: 15 Jun 2026 at 13:03 UTC
Last updated: 15 Jun 2026 at 13:03 UTC
New features
Unsupported

Other releases