ai_provider_alibabacloud
6 sites
No security coverage
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/EmbeddingsInterfacein 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:
intlandcnregions; 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
- Enable
ai,key, and this provider module. - Create an API key in Alibaba Cloud Model Studio (DashScope) and store it as a Key entity.
- Go to
/admin/config/ai/providers/alibabacloud:- Select the stored API Key.
- Choose Region (
intlorcn). - Pick API Mode (OpenAI-compatible or DashScope native).
- (Optional) Enable Streaming, “Include usage in stream”, and adjust the Timeout.
- (Optional) In
/admin/config/ai/settings, set Alibaba Cloud as the default provider per operation type and pick your default models. - (Optional) Enable AI ecosystem submodules (e.g., AI Chatbot, AI CKEditor) to use Qwen in editorial workflows.
Additional Requirements
- Drupal
^10.3or^11. - Modules:
ai(Drupal AI) andkey. - Account & API: Alibaba Cloud account with Model Studio (DashScope) API access and a valid API key.
Recommended modules/libraries
- 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
- Alibaba Cloud Model Studio (product)
- Model Studio / DashScope user guide
- Drupal AI module (ecosystem)
You may continue to put additional information below here, if there are other things you think people need to know about your module.