Repository navigation
dev v2.1 - #237
Merged
Merged
dev v2.1#237
Conversation
The 2.4MB vocab no longer ships in distributions; get_tokenizer() resolves it from DASHSCOPE_QWEN_VOCAB, the source tree, or a SHA256-verified ModelScope download cached under ~/.cache/dashscope/tokenizers.
The receive path used to drop the state lock when event processing raised, then re-acquire it in the outer handler to detach the socket. A concurrent send_event could slip that gap and write to a socket that was about to be closed. Detach within the same lock hold instead, and add witness-thread regression tests that reproduce the race deterministically (they fail on the previous code).
- Introduce pyproject.toml with setuptools build system configuration - Update .gitignore to ignore *.pyd files for Windows builds - Modify release.yml to separate Python package build and native CLI binary builds - Implement build matrix for macOS (Apple Silicon and Intel), Linux, and Windows platforms - Use PyInstaller to create standalone dashscope CLI executables per platform - Add checksum generation for Python distributions and CLI binaries - Add smoke tests for built binaries to verify version command - Upload Python distributions and platform-specific CLI tarballs as separate artifacts - Adjust PyPI publishing step to upload only Python wheel and source distribution - Consolidate all release files in artifacts/ directory and update release notes files accordingly
3 tasks done
…tion - Added mkdocs.yml with Material theme and multi-language support (English and Chinese) - Configured navigation tabs, search, and extra CSS for enhanced UI - Integrated plugins: search, i18n, autorefs, mkdocstrings with python handler - Setup documentation structure with nav entries for SDK features and references - Added docs/hooks.py to inject SDK version dynamically in documentation pages - Updated README.md and README_zh.md to reference the new documentation site URLs - Replaced Sphinx with MkDocs in requirements-doc.txt for documentation dependencies - Added GitHub Actions workflow (.github/workflows/docs.yml) for building and deploying docs - Removed obsolete Sphinx Makefile and make.bat scripts from docs directory
- Added docs folder exclusion to stylelint configuration to avoid linting third-party styles - Aligned docs exclusion with existing mypy and pylint exemptions feat(dashscope): re-export applications subpackage as module - Re-exported applications subpackage for better type checking and stub merging - Ensured submodules under applications remain accessible to type checkers and griffe style(docs): add coding declaration and format hooks.py - Added UTF-8 coding declaration at the top of docs/hooks.py - Adjusted file formatting for consistency and clarity
- Update mkdocs.yml to use assets/logo.png for logo and favicon - Remove old SVG logo file from the docs/assets directory - Ensure logo images are consistently in PNG format for better compatibility
- Disable system font stack due to Google Fonts blocking first paint in China - Limit sidebar "On this page" navigation depth to h3 headings - Adjust mkdocstrings rendering to use heading level 3 for roots - Prune "On this page" nav to show only h2 section titles on large API pages - Deduplicate injected CSS to prevent duplicates during i18n rebuild - Add localized aria-label for page actions navigation in main.html - Customize English and Chinese translations for "toc" as "On this page" text
- Added navigation.tracking to reflect scroll position in URL hash - Disabled navigation.instant due to i18n language switcher incompatibility - Enabled show_symbol_type_heading and show_symbol_type_toc for kind badges in headings and TOC - Confirmed merge_init_into_class and signature_crossrefs ineffective on current mkdocstrings versions - Improved docstring annotation consistency in conversation.py parameters and kwargs description
- Introduce the new dashscope CLI 2.0 that mirrors SDK resources - Provide example commands for version, auth, chat, and fine-tuning - Explain support for chat, multimodal, embeddings, images/videos, audio, files, fine-tuning, and RL - Describe global options for protocol, region, and output format - Note the optional interactive AI assistant with no-argument invocation - Mention backward compatibility with CLI 1.x as dashscope1 - Add links to detailed CLI documentation in both English and Chinese docs
- Replace logo.png with logo.svg and update favicon in mkdocs.yml for better visuals - Adjust pymdownx.highlight anchor_linenums to false to fix duplicated line anchors - Enable pymdownx.emoji with Material emoji settings for icon shortcodes support - Add on_template_context and on_post_build hooks to fix 404.html rendering with i18n plugin - Prevent localized 404 pages from appearing in the sitemap to avoid clutter - Add vectorized logo.svg asset with gradients and accessibility features - Revise en/index.md to include badges, updated feature cards, new call-to-action buttons, and improved code examples for sync and async usage - Update .pre-commit-config.yaml to safely permit custom YAML tags with --unsafe argument for mkdocs.yml validation
…t use - Deleted qwen.tiktoken vocab file from repository - Removed local vocab path usage in tokenizer.py - Added vocab download URL from ModelScope - Updated get_tokenizer to fetch vocab from cache or download if missing - Modified MANIFEST.in to stop excluding vocab file and reflect removal
- Introduce DashScope SDK Expert, an AgenticX-powered interactive AI assistant - Detail install instructions with optional extras for enhanced capabilities - Explain multiple launch modes including TUI, plain REPL, and one-shot questions - Add first-run expert profile setup with SDK Q&A persona and skill templates - Provide troubleshooting tips for installation and compatibility issues - Add new guide page covering full walkthrough and usage scenarios - Update CLI and features docs to reference SDK Expert and usage examples - Include command migration hints for legacy 1.x CLI commands under dashscope1
- Updated SDK description to remove specific "2.0" version mentions - Modified all feature, quickstart, and reference docs accordingly - Revised error handling and legacy compatibility notes for general SDK - Adjusted description and explanation texts in both English and Chinese docs - Clarified client and devkit usage without version-specific tags
- Enhance streaming usage instructions with consumption styles and closing behavior - Add CLI options: config override, verbose output, disable color - Expand quickstart with error handling notes and detailed example snippets - Include new capabilities recipes: rerank, decision model, token counting, TingWu offline analysis - Revise reference docs: devkit modes, API response parsing, reward decorators - Clarify set_region legacy status and client configuration advice - Improve examples with proper client usage context and imports - Update zh docs with corresponding content and examples in Chinese - Refine mkdocs.yml to show constructor params and undocumented members in API reference
Make `expert` the canonical extra family for the DashScope SDK Expert assistant (expert, expert-openai, expert-anthropic, expert-voice, expert-camera, expert-all). The original `acli*` names remain as backward-compatible aliases with identical dependencies. Update install tips, README (en/zh), docs guides, audio examples and CLI tests to use `expert`; extend the packaging contract test to assert both families. The frozen legacy_1x runtime tip and its route test keep `acli`.
…asset Pin the verified mkdocstrings/mkdocstrings-python combination so constructor signatures and undocumented model fields render reproducibly. Add the AgentStudio Chinese navigation label and note that the recipe sample image is a public Aliyun docs asset.
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.
The 2.4MB vocab no longer ships in distributions; get_tokenizer() resolves it from DASHSCOPE_QWEN_VOCAB, the source tree, or a SHA256-verified ModelScope download cached under ~/.cache/dashscope/tokenizers.
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]