Skip to content

v1.27.0

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 18 Aug 08:01
· 348 commits to main since this release
5e2d045

DashScope SDK Expert — an AI assistant built into the SDK

Starting with this release, dashscope ships an interactive AI assistant: DashScope SDK Expert. Run dashscope with no arguments (or ask directly, e.g. dashscope "how do I stream Generation output") and describe what you need — the assistant writes, explains, and verifies SDK code for you.

What it can do

  • Runnable code on demand — generates complete, runnable examples for DashScope APIs (messages format, streaming, usage parsing, async task polling, etc.) and executes them to show real output.
  • Grounded in your installed SDK — answers are cross-checked against the dashscope version actually installed in your environment, with a proactive heads-up on any version mismatch.
  • Parameters & error codes explained — explains API parameters, input/output structures, and error codes (e.g. InvalidApiKey, Throttling.RateQuota) with actionable fixes.
  • Automatic bug diagnosis & repair — reads your failing code, pinpoints the root cause (legacy prompt format, wrong messages structure, missing api_key, incorrect async polling…), fixes the file, and re-runs to verify: a complete read → diagnose → fix → verify loop.
  • Domain skills, loaded on demand — quick-reference knowledge per domain: text generation, multimodal, speech (TTS/ASR), retrieval (embeddings/rerank/RAG), fine-tuning & deployment, agent/application APIs, and the dashscope CLI. See everything with /help; trigger a specific skill with /skill <name>.

What this means for you

  • Skip the docs — describe your requirement in natural language instead of hunting for parameter names and model lists.
  • No boilerplate — go from question to a working script in one step.
  • Faster troubleshooting — paste an error code or point at a file; get a diagnosis and a verified fix instead of guesswork.

Getting started

pip install -U dashscope
dashscope            # start the interactive assistant

Then type /help to see all commands and skills.

Contributors

Full Changelog: v1.26.7...v1.27.0