Repository navigation
dev/cli2.0 - #223
Merged
Merged
dev/cli2.0#223
Conversation
added 5 commits
November 3, 2026 15:10
- Add CLI v2 core architecture and root Typer app configuration - Implement chat create command with support for streaming and non-streaming text generation - Add python -m dashscope.cli2 module entry point - Provide CI testing utility examples and local mock gateway - Optimize command module structure with lazy SDK imports to improve help text loading speed - Fix missing client user-agent in ASR module WebSocket requests
- Catch TypeError exception during CliRunner instantiation - Adapt to click 8.2+ default stream separation behavior - Update _runner function in test_app.py - Update _runner function in test_errors.py
- Add detailed docstring to _click_passthrough function - Explain the reason for collecting both real click and typer exception classes - Add capture logic for exceptions in typer's internal _click compatibility layer - Extract relevant exception classes from typer._click.exceptions - Prevent typer's missing argument exceptions from being misclassified as server errors - Handle import errors when older typer versions do not provide the _click module
… cli Rename the v2 package directory from cli2 to cli, making it the primary command tree. Add 16 new resource commands (files, models, images, videos, embeddings, multimodal, rerank, tokenization, apps, deployments, rl, audio, audio-customization, tingwu, decision, agentstudio) alongside the existing chat/ft/config commands. Key changes: - Rename dashscope/cli2 → dashscope/cli and tests/cli2 → tests/cli - Bump version to 2.0.4 - Refactor main.py dispatch logic with consolidated command routing - Expand config_store.py with TOML line-editor writer (no new deps) - Overhaul error handling, output formatting, and progress display - Enhance ft command with extended fine-tuning workflows - Update README and CLI examples (en/zh) with new command docs - Add comprehensive test coverage for all new commands - Clean up legacy import aliases
… cli Rename the v2 package directory from cli2 to cli, making it the primary command tree. Add 16 new resource commands (files, models, images, videos, embeddings, multimodal, rerank, tokenization, apps, deployments, rl, audio, audio-customization, tingwu, decision, agentstudio) alongside the existing chat/ft/config commands. Key changes: - Rename dashscope/cli2 → dashscope/cli and tests/cli2 → tests/cli - Bump version to 2.0.4 - Refactor main.py dispatch logic with consolidated command routing - Expand config_store.py with TOML line-editor writer (no new deps) - Overhaul error handling, output formatting, and progress display - Enhance ft command with extended fine-tuning workflows - Update README and CLI examples (en/zh) with new command docs - Add comprehensive test coverage for all new commands - Clean up legacy import aliases
luk384090-cloud
force-pushed
the
dev/cli2.0
branch
2 times, most recently
from
November 5, 2026 02:58
a77879f to
b358423
Compare
- Add trailing comma in delete operation of deployments command - Add trailing comma in raise statements of rerank command - Add trailing commas to function parameter lists in test files - Add trailing commas to list and dict arguments in test files - Unify code style to comply with auto-formatting tools
ubuntu-latest now resolves to Ubuntu 26.04, which ships no CPython 3.9 build, so setup-python failed on the 3.9 leg and matrix fail-fast cancelled the passing 3.10-3.13 legs. Keep the still-supported 3.9 leg on ubuntu-24.04 and leave 3.10-3.13 on ubuntu-latest, for both the current and legacy jobs.
added 3 commits
November 5, 2026 17:40
Use dashscope-sdk-python/{version} so the SDK and language identity are explicit without duplicating the major version.
Keep dashscope on the v2 SDK and expose the frozen 1.x CLI as dashscope1, rejecting moved commands with a migration hint instead of dispatching or rewriting argv.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
[Describe what this PR does and why]
Related Issue: Fixes #[issue_number] or Relates to #[issue_number]
Security Considerations: [Check if API keys or sensitive credentials are exposed in code/logs]
Type of Change
Component(s) Affected
Checklist
Testing
[How to test these changes]
Additional Notes
[Optional: any other context]