Skip to content

v2.0.4

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 06 Nov 11:28
· 79 commits to main since this release
93af254

v2.0.4 Release Notes

πŸš€ Highlights

CLI 2.0 β€” Brand New Command-Line Architecture

This release introduces a major architectural overhaul of the dashscope CLI, bringing a modern, extensible command-line experience:

  • Unified Entry Point: The dashscope command now serves as the primary entry point for both the new 2.0 CLI and the legacy 1.x functionality (accessible via dashscope1 for backward compatibility). This eliminates confusion and simplifies the user experience.
  • Full Command Coverage: The v2 CLI now includes a comprehensive set of commands including chat, models, and more, providing a rich interactive experience directly from the terminal.
  • Architectural Foundation: Built on a clean, modular architecture designed for extensibility and maintainability.

⚠️ Note: CLI 2.0 is actively under development. While it is already feature-rich, we are continuing to iterate on the design and add more capabilities. Feedback and contributions are welcome!

πŸ› Bug Fixes

  • Top-level auth shortcuts: Fixed authentication shortcuts to work correctly from the top-level CLI.
  • Typer compatibility: Resolved an issue where exceptions from the typer compatibility layer were being misclassified, improving error handling and debugging.
  • Click 8.2 compatibility: Added compatibility with click 8.2 CliRunner parameter changes, ensuring smooth operation with the latest click versions.
  • ANSI code stripping: Fixed an issue in test_package_layout where ANSI escape codes were not being stripped before assertions, improving test reliability.

πŸ”§ Improvements

  • User-Agent token: Renamed the default User-Agent product token for better clarity and consistency.
  • Code style: Unified code formatting with consistent trailing commas across the codebase.

πŸ—οΈ CI/CD

  • Python 3.9 CI: Pinned the Python 3.9 test leg to ubuntu-24.04 for stability and reproducibility.

πŸ“¦ Installation

pip install --upgrade dashscope

πŸ‘₯ Contributors

Thanks to all the contributors who made this release possible:

@luk384090-cloud
@lzsweb

πŸ“ Full Changelog

v2.0.3...v2.0.4