Drupal is a registered trademark of Dries Buytaert

ai_provider_alibabacloud

6 sites No security coverage
View on drupal.org

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.

Activity

Total releases
2
First release
Sep 2025
Latest release
5 months ago
Release cadence
0 days
Stability
0% stable

Releases

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