Skip to content

Releases: dashscope/dashscope-sdk-python

v1.26.2

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 02 Jul 08:24

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

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 02 Jul 03:31
5ff5c86

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

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 25 Jun 10:55

✨ New Features

  • CLI tool: Added dashscope command-line interface with 12 generation parameters and expanded command coverage
  • Hardened CLI compatibility and improved overall usability

🐛 Bug Fixes

  • Models API: Fixed Models.get returning 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

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 23 Jun 08:12
78d8959

What's Changed

  • Preserve error codes and surface root cause in agentic RL errors by @luozirong2025 in #150

New Contributors

Full Changelog: v1.25.23...v1.25.24

Bug Fixes

  • Add cycle detection to root_cause traversal in error classes to prevent infinite loops
  • Fix race condition in AgenticRL
  • Fix test_register_functions_failure to 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

1.25.23

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 18 Jun 08:45
a7edd37

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

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 16 Jun 11:13
54f65bf
  • 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

Full Changelog: v1.25.21...v1.25.22

v1.25.21

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 04 Jun 08:20

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

Full Changelog: v1.25.20...v1.25.21

v1.25.20

Choose a tag to compare

@lzsweb lzsweb released this 01 Jun 10:28
46970ab

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

New Contributors

Full Changelog: v1.25.19...v1.25.20

v1.25.19

Choose a tag to compare

@lzsweb lzsweb released this 25 May 23:22
8a4e142

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

ReadME

What's Changed

New Contributors

Full Changelog: v1.25.18...v1.25.19

v1.25.18

Choose a tag to compare

@xiong-binbin xiong-binbin released this 13 May 02:40

What's Changed

Full Changelog: v1.25.17...v1.25.18