Repository navigation
Conversation
…ilities - Introduced built-in OCR tasks for image processing, allowing users to extract structured information from images using the native DashScope multimodal-generation API. - Updated the `vision describe` command to include new flags: `--ocr-task`, `--min-pixels`, and `--max-pixels`. - Enhanced error handling for image input validation and size limits. - Updated documentation to reflect new features and usage examples for OCR tasks.
This branch has not been deployed
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.
Summary
--ocr-taskonbl vision describeto call the native DashScope multimodal-generation OCR API for structured extraction (tables, KIE, formulas, and related built-in tasks)--ocr-taskis set; Token Plan connections are refused up frontbailian-genand movetongyi-intent-detect-v3guidance to thebailian-clihub skillDescription
OCR mode
--ocr-taskswitches to the native endpoint withparameters.ocr_options.task. Supported models are allowlisted (qwen-vl-ocr,qwen-vl-ocr-2025-11-20,qwen3.5-ocr); the OCR default model isqwen-vl-ocrand does not affect non-task describe calls.--min-pixels/--max-pixelsattach to the image content item on both the native OCR body and the compatible chat path.Pre-qwen3.5 OCR models drop a non-empty
--promptwith a warning because the service uses a fixed per-task prompt;qwen3.5-ocrcan combine task and instruction. Large local images fall back to temporary OSS upload within the documented data-URI budget; oversized inline data URIs are rejected locally without echoing the payload. Length truncation surfaces asOCR_OUTPUT_TRUNCATED.Docs and tests
Skill and reference docs call out the two JSON envelopes (
output.choicesvs top-levelchoices). Offline e2e and output-contract coverage lock routing, dry-run previews, Token Plan rejection, prompt handling, and process-boundary stderr diagnostics.