Install

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

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 28.15 KB
MD5: ee75809af0fe85718cce65d1f459633d
SHA-1: 36f976a7de849df1afb89a18366228c310b9659c
SHA-256: 3a172de3cbdf57a50652a92451b6afb59048f014636bf1a0e451583290190daf
Download zip 44.44 KB
MD5: 9378929887c7eaa96505759818cfe158
SHA-1: 404609f0acdaff26a32749b85313814667af14de
SHA-256: 6ddd93731e7b9acfc9717204faac9662a5e50e397445e76f735630daf54602a1

Release notes

llama.cpp AI Provider (Multi-instance)

1.2.0-beta1 is now available! This is the first beta of the 1.2 series with full multi-server support.

A powerful, multi-instance provider for the AI module. While built with llama.cpp as its primary focus, it natively supports any OpenAI-compatible /v1 server (Ollama, vLLM, LiteLLM, LM Studio, etc.).

Key Features

  • Multi-server architecture: Configure and use multiple servers at the same time. Each server appears as an independent provider (e.g. llama_cpp:gpu, llama_cpp:embeddings).
  • Secure credentials: API keys are stored using the Key module (no more plaintext).
  • Broad operation support: Chat, Embeddings, Speech-to-Text, Rerank, Moderation (LlamaGuard3 + ShieldGemma with multiple safety policies), and Text-to-Image.
  • Per-server control: Model filtering with glob patterns, manual capability overrides, and configurable timeout + authentication per server.
  • Smart model detection: Auto-detects capabilities from server metadata, Hugging Face tags, and name heuristics.
  • Robust & cache-friendly: Model lists and types are cached per server in Drupal State.

Supported Operations

  • Chat completions (/v1/chat/completions)
  • Embeddings (/v1/embeddings)
  • Speech to Text (Whisper and similar)
  • Rerank
  • Moderation (native LlamaGuard3 and ShieldGemma support)
  • Text to Image (/v1/images/generations)

Installation

Install via Composer:

composer require drupal/ai_provider_llama_cpp

Important: Composer installs the latest stable release by default (currently 1.0.0). To install the new 1.2.0-beta1 (recommended for new projects), run:

composer require 'drupal/ai_provider_llama_cpp:^1.2@beta'

Then enable the module:

drush pm:enable ai_provider_llama_cpp

Requirements

  • Drupal 10.2, 11 or 12
  • AI module ^1.2
  • Key module ^1.18 (for secure API key storage)
  • An OpenAI-compatible server (Ollama, vLLM, llama.cpp, LiteLLM...)

See the release notes for full details and migration information from previous versions.

Note: This is a beta release. Please test in development/staging environments before using in production.

Created by: leofishman
Created on: 22 Jun 2026 at 17:52 UTC
Last updated: 22 Jun 2026 at 17:54 UTC
Bug fixes
New features
Unsupported

Other releases