Skip to content

Qwen / DashScope

TapPass supports Qwen models via Alibaba Cloud’s DashScope API, powered by LiteLLM.

Terminal window
# Server-side (TapPass stores the key in its encrypted vault)
DASHSCOPE_API_KEY=your-dashscope-api-key

Get your API key from the DashScope console.

ModelContext WindowBest for
dashscope/qwen-turbo131KFast, cost-effective tasks
dashscope/qwen-plus131KBalanced performance and cost
dashscope/qwen-max32KMost capable, complex tasks
dashscope/qwen-max-longcontext1MLong document processing
dashscope/qwen-vl-max32KMultimodal (vision + language)
dashscope/qwen-vl-plus32KMultimodal, cost-effective
from tappass import Agent
agent = Agent("http://localhost:9620", "tp_...")
# Qwen Turbo (fast, cheap)
response = agent.chat("Hello", model="dashscope/qwen-turbo")
# Qwen Max (most capable)
response = agent.chat("Analyze this contract", model="dashscope/qwen-max")
# Qwen Plus (balanced)
response = agent.chat("Summarize this report", model="dashscope/qwen-plus")
Terminal window
export OPENAI_BASE_URL=http://localhost:9620/v1
export OPENAI_API_KEY=tp_...
# Any OpenAI-compatible tool now routes through TapPass

Use Qwen as the governance pipeline’s LLM judge:

Terminal window
TAPPASS_LLM_JUDGE_MODEL=dashscope/qwen-turbo
# or
TAPPASS_LLM_JUDGE_MODEL=dashscope/qwen-plus
# or
TAPPASS_LLM_JUDGE_MODEL=dashscope/qwen-max

DashScope endpoints are hosted in mainland China. If you require EU data residency (TAPPASS_EU_DATA_RESIDENCY=true), use Qwen models via Ollama (self-hosted) instead:

Terminal window
TAPPASS_LLM_JUDGE_MODEL=ollama/qwen2.5

All requests pass through the full governance pipeline regardless of provider.