Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This project integrates Alibaba Cloud's Qwen models into Drupal, offering chat and embedding capabilities. It supports both OpenAI-compatible and native DashScope API modes with features like streaming, tool usage, and structured JSON outputs.

Integrates Alibaba Cloud Model Studio (Qwen) with Drupal AI. Provides chat and embeddings with streaming, tools/function calling, and JSON-schema outputs via a secure API key and unified settings.

Features

  • Drupal AI Provider: Adds Alibaba Cloud (Qwen) as a first-class provider to the AI module’s unified framework.
  • Operation types: Chat & Embeddings (via ChatInterface / EmbeddingsInterface in the AI module).
  • Two API modes: OpenAI-compatible or DashScope native — switchable in settings.
  • Streaming (SSE): Optional live token streaming; toggle “Include usage in stream” (compatible mode).
  • Tools / Function Calling: Pass tool definitions; receives tool call outputs when models support it.
  • Structured JSON output: Supply a JSON Schema to guide responses (native mode parameters supported).
  • Model selection: Choose Qwen models (e.g., qwen-max, qwen-plus, qwen-turbo, qwen-flash, qwen-coder).
  • Embeddings: Select text-embedding models (v1–v4) with configurable vector dimensions.
  • Region aware endpoints: intl and cn regions; switch per your account/latency.
  • Tunable parameters: temperature, top-p, penalties, max tokens, repetition penalty (native mode), “thinking” options where supported.
  • Secure key storage: Uses the Key module; no keys in config exports.

Post-Installation

  1. Enable ai, key, and this provider module.
  2. Create an API key in Alibaba Cloud Model Studio (DashScope) and store it as a Key entity.
  3. Go to /admin/config/ai/providers/alibabacloud:
    • Select the stored API Key.
    • Choose Region (intl or cn).
    • Pick API Mode (OpenAI-compatible or DashScope native).
    • (Optional) Enable Streaming, “Include usage in stream”, and adjust the Timeout.
  4. (Optional) In /admin/config/ai/settings, set Alibaba Cloud as the default provider per operation type and pick your default models.
  5. (Optional) Enable AI ecosystem submodules (e.g., AI Chatbot, AI CKEditor) to use Qwen in editorial workflows.

Additional Requirements

  • Drupal ^10.3 or ^11.
  • Modules: ai (Drupal AI) and key.
  • Account & API: Alibaba Cloud account with Model Studio (DashScope) API access and a valid API key.
  • AI CKEditor – inline suggestions and edits backed by Qwen.
  • AI Chatbot / Assistant – site assistants that call Qwen models.
  • (Optional) Vector/semantic search integration to consume embeddings in your search stack.

Similar projects

Comparable AI providers in the same ecosystem include:
OpenAI,
Anthropic,
Groq,
DeepSeek,
Amazee.io.
This project focuses on Alibaba Cloud Model Studio (Qwen) with both compatible and native modes.

Supporting this Module

If this provider helps your team, consider sponsoring maintenance and feature work (Patreon, OpenCollective, GitHub Sponsors, etc.).

Community Documentation

You may continue to put additional information below here, if there are other things you think people need to know about your module.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0-alpha1 Pre-release 10–11 Sep 9, 2025
1.0.x-dev Dev 10–11 Sep 9, 2025