Releases: dashscope/dashscope-sdk-python
Release list
v1.26.2
v1.26.2
Bug Fixes
- SSE idle_timeout uses queue+thread to actually unblock iter_sse()
- Align SDK params with server API and add SSE wall-clock timeout
- Resolve parameter shadowing in base_api.py update/put methods
- Resolve dict access errors and URL path issues in 5 CLI commands due to SDK dataclass return types
- Resolve UTF-8 encoding issues in HTTP request bodies
- Address code review findings in files, transport, and models
- Remove dead code, fix del safety, make agents.update version explicit
- Resolve resource leak and exception handling issues in async iterator
- Restore assistants imports in init.py for Python 3.8 compatibility
Features
- Add AgentStudio sub-SDK for managed agents
- Expand CLI commands and harden compatibility
- Add 12 generation parameters and fix Models.get
Refactoring
- Remove custom tools, add vaults/credentials, region param, stop_reason/session_status properties
- Remove assistants-related CLI commands
Chores
- Remove .acli and .idea from repository
- Update .gitignore to exclude .acli and .idea
v1.26.1
What's Changed
Bug Fixes
- Fix: resolve parameter shadowing in base_api.py update/put methods
- Fix: resolve dict access errors and URL path issues in 5 CLI commands due to SDK dataclass return types
- Fix: resolve UTF-8 encoding issues in HTTP request bodies
- Fix: resolve resource leak and exception handling issues in async iterator
- Fix: fix image synthesis parameter passing and resource leak issues
- Fix: improve WebSocket connection stability in realtime audio modules
Features
- Add ocr_options parameter to MultiModalConversation.call
- Add multiple new parameters to Generation API
Chores
- Remove .acli and .idea from repository
- Update .gitignore to exclude .acli and .idea
v1.26.0
✨ New Features
- CLI tool: Added
dashscopecommand-line interface with 12 generation parameters and expanded command coverage - Hardened CLI compatibility and improved overall usability
🐛 Bug Fixes
- Models API: Fixed
Models.getreturning 404 by switching to query parameter API - Python 3.8 compatibility: Restored assistants imports in
__init__.py - CLI stability: Improved error handling and fixed assistant update bug
v1.25.24
What's Changed
- Preserve error codes and surface root cause in agentic RL errors by @luozirong2025 in #150
New Contributors
- @luozirong2025 made their first contribution in #150
Full Changelog: v1.25.23...v1.25.24
Bug Fixes
- Add cycle detection to
root_causetraversal in error classes to prevent infinite loops - Fix race condition in AgenticRL
- Fix
test_register_functions_failureto match new error propagation behavior
Improvements
- Preserve error codes and surface root cause in agentic RL errors
- DRY refactor in AgenticRL
- Add HTTP cancel support in agentic RL server
- Add request id logging for better traceability
New Contributors
- @luozirong2025 made their first contribution
1.25.23
What's Changed
🚀 New Features
- Application API: Support environment proxy and merge incremental stream output (#148)
- Transcription Model: Add timeout support in sync wait API (#145)
- FunASR Model: Add payload.input support (#145)
🐛 Bug Fixes
- Audio Modules: Correct exception types and use bare raise for proper error propagation (#148)
- Transcription Modules: Fix incorrect exception handling (#148)
- ImageGeneration: Resolve KeyError in async_call when headers are missing (#147)
- Proxy & User-Agent: Fix proxy support and user_agent header extraction; migrate incremental_to_full flag from headers to user_agent parameter (#147)
- Session Management: Fix end_session() to handle server errors immediately (#147)
- Tokenization: Fix tiktoken StackOverflow issue on long text inputs (#147)
🔧 Improvements
- Logging: Downgrade redundant logger.error(e) to debug level in audio modules (#148)
- Code Quality: Fix pre-commit lint issues (#147)
Full Changelog: v1.25.22...v1.25.23
v1.25.22
- feat: add external session support for AioHttpRequest and export close_shared_aio_session
- fix: aio_session stability improvements
- refactor: restore thread safety for aio session and simplify exception handling
- refactor: add defensive checks for self.data access and improve error handling
What's Changed
- refactor(api): remove redundant exception handling in request modules by @luk384090-cloud in #138
- Reapply/aiohttp fix by @lzsweb in #139
- Dev/repair by @luk384090-cloud in #141
Full Changelog: v1.25.21...v1.25.22
v1.25.21
Release Notes - v1.25.21
API alignment: Aligned SDK method signatures with HTTP API definitions by adding explicit parameters.
Compatibility improvement: Added base_compatible_api_url support for OpenAI-compatible API scenarios.
OSS fixes: Fixed OSS URL wrapping and related CLI cleanup issues.
Async fixes: Fixed async cancel/list behavior and aiohttp SSE flattened_output handling.
Quality improvements: Fixed multiple code defects, resolved pre-commit lint issues, and removed unnecessary generated files.
Documentation: Expanded README coverage for SDK and CLI usage.
What's Changed
- Dev/sdk api alignment by @luk384090-cloud in #132
Full Changelog: v1.25.20...v1.25.21
v1.25.20
Release date: 2026-06-01
This release centers on a complete CLI rewrite. There are no breaking changes to the runtime SDK API — Python callers do not need to change anything. CLI users should read
the "Command Changes" and "Compatibility" sections below.
✨ Highlights
CLI framework migration
- Migrated the entire CLI from argparse to Typer, bringing modern subcommand UX, shell completion, and rich help output.
- Split the monolithic dashscope/cli.py (843 lines) into a modular package dashscope/cli/ with dedicated submodules: generation, fine_tunes, files, deployments, oss, and
agentic_rl. - Added a python -m dashscope entry point (dashscope/cli/main.py).
New commands
- dashscope rl — Agentic-RL fine-tuning command group, loaded lazily so missing optional dependencies will not break other commands.
- dashscope ft — short alias for fine-tunes (recommended going forward). fine-tunes still works but is now hidden from help.
What's Changed
- 开发/命令行重构 by @luk384090-cloud in #128
- Dev/cli refactor by @luk384090-cloud in #127
- Dev/CLI Refactor by @luk384090-cloud in #129
- Dev/CLI Refactor by @luk384090-cloud in #130
New Contributors
- @luk384090-cloud made their first contribution in #128
Full Changelog: v1.25.19...v1.25.20
v1.25.19
Highlights
This release introduces Agentic Reinforcement Learning (RL) — a complete SDK and CLI for managing RL fine-tuning workflows on the DashScope platform, including function registration, dataset management, job lifecycle, and observability.
New Features
Agentic RL SDK (AgenticRL)
- Full workflow support: function registration, dataset upload, job submission, status query, cancellation, and deletion
- YAML-driven configuration for reproducible training workflows
- Path-driven mode with automatic function packaging and upload
- Support for Rollout, Reward, and Group Reward function components
- Async-first API design with asyncio support
Agentic RL CLI (dashscope rl)
- Production-grade CLI built with Typer and Rich
- Commands: register_functions, test_functions, upload_data, run, get, list, cancel, logs
- Multiple output formats: table, json, yaml
- --verbose flag controls log verbosity (default: WARNING) and enables root-cause-only tracebacks
What's Changed
New Contributors
Full Changelog: v1.25.18...v1.25.19
v1.25.18
What's Changed
- (model/cosyvoice): support flush api by @songguocola in #124
Full Changelog: v1.25.17...v1.25.18