pi-qwen_dashscope
v1.1.0
Published
Alibaba DashScope (ModelStudio / 百炼) provider for oh my pi — Qwen3, GLM-5, Kimi K2.5, MiniMax via OpenAI-compatible API, with dynamic full-catalog model discovery
Maintainers
Readme
pi-qwen_dashscope
Alibaba DashScope (ModelStudio / 百炼) provider for pi.dev — a drop-in replacement for pi-dashscope that fixes the endpoint and makes the model list dynamic.
Why this fork exists
The upstream pi-dashscope has two problems this package fixes:
- Wrong endpoint. It defaults to
coding-intl.dashscope.aliyuncs.com/v1, which returns 401 for standard API keys (it can list models but cannot chat). This package uses the correct OpenAI-compatible endpointhttps://dashscope.aliyuncs.com/compatible-mode/v1. - Static model list. Upstream hard-codes ~8 models. This package fetches the full catalog from DashScope's
/v1/models, so you get every availabledashscope/...model (200+) instead of a fixed short list.
What you get
- On load: 8 curated models with hand-tuned metadata (context window, thinking format) as a fallback.
- On
/login(after the key is saved) and/refresh-models: the full live catalog is discovered and registered on top of the curated set (curated entries always win on id collision). - Credentials use pi's standard auth system: run
/login, pickdashscope, paste your key./logoutremoves it. No extra config files.
Dynamically discovered models use best-effort heuristics for metadata (context window / thinking format inferred from the model id). They chat fine; if a specific model needs precise metadata, add it to the curated list in
index.ts.
Install
pi install npm:pi-qwen_dashscopeIf you currently use
pi-dashscope, remove it from yoursettings.jsonpackagesarray first to avoid double-registration of thedashscopeprovider.
Login & Logout(登录 / 退出)
This package uses pi's built-in /login and /logout — no custom commands. DashScope credentials are managed by pi's standard credential store, exactly like every other provider.
| Command | 作用 |
|---|---|
| /login → choose dashscope | 交互式输入并保存你的 DashScope API key。 |
| /logout → choose dashscope | 删除已保存的 API key。 |
/login # 选 dashscope,粘贴 key
/logout # 选 dashscope,清除 key- After
/login, pi refreshes the model list and registers the full live catalog (200+ models) on top of the 8 curated ones. - The
DASHSCOPE_API_KEYenvironment variable is also supported and takes precedence at request time over a key saved via/login:
export DASHSCOPE_API_KEY=sk-...Get your key from the Model Studio console.
Use
In pi, press /model or Ctrl+L and pick a dashscope/... model. Use Ctrl+T to toggle thinking for models that support it.
Curated models:
| ID | Name | Context | Output | Thinking |
|---|---|---|---|---|
| qwen3.5-plus | Qwen 3.5 Plus | 960K | 64K | ✅ |
| qwen3-max-2026-01-23 | Qwen3 Max (2026-01-23) | 252K | 32K | ✅ |
| qwen3-coder-plus | Qwen3 Coder Plus | 975K | 64K | ❌ |
| qwen3-coder-next | Qwen3 Coder Next | 200K | 64K | ❌ |
| glm-4.7 | GLM-4.7 | 166K | 16K | ✅ |
| glm-5 | GLM-5 | 200K | 16K | ✅ |
| minimax-m2.5 | MiniMax M2.5 | 192K | 64K | ✅ |
| kimi-k2.5 | Kimi K2.5 | 252K | 32K | ✅ |
…plus every other model DashScope returns from /v1/models.
License
MIT
