Install
Works with Drupal: ^10.2 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
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.