feat(alibaba): add scoped Qwen reasoning options#1987
Open
rekram1-node wants to merge 2 commits into
Open
Conversation
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
toggleandbudget_tokensreasoning options to a deliberately scoped Alibaba/DashScope Qwen matrixalibaba(international) andalibaba-cn(Chinese mainland)Verified records
alibabaqwen-plustoggle,budget_tokensenable_thinking,thinking_budgetalibabaqwen3.5-plustoggle,budget_tokensenable_thinking,thinking_budgetalibabaqwen3-vl-plustoggle,budget_tokensenable_thinking,thinking_budgetalibaba-cnqwen-plustoggle,budget_tokensenable_thinking,thinking_budgetalibaba-cnqwen3.5-plustoggle,budget_tokensenable_thinking,thinking_budgetalibaba-cnqwen3-vl-plustoggle,budget_tokensenable_thinking,thinking_budgetOfficial sources
qwen3.5-plusandqwen3-vl-plus: https://www.alibabacloud.com/help/en/model-studio/visionreasoning.effort: https://help.aliyun.com/zh/model-studio/qwen-api-via-openai-responsesWire-to-normalized mapping
enable_thinking: true|falsemaps to normalizedtoggle.thinking_budgetmaps to normalizedbudget_tokens; it is a dedicated ceiling for reasoning tokens.reasoning.effortwas not added because these provider records represent the OpenAI-compatible Chat Completions endpoint contract, not a Responses-only surface.Verification boundaries and exclusions
qwq-plus,qwen3-next-80b-a3b-thinking, and dedicatedthinking-suffix variants are excluded because callers cannot switch reasoning off.alibaba-token-planis excluded: the official Token Plan overview establishes a separate subscription surface but does not directly document caller-selectableenable_thinking/thinking_budgetcontrols for the represented international endpoint records.alibaba-coding-planandalibaba-coding-plan-cnare excluded: these are separate plan-specific endpoint contracts. The plan docs and Qwen Code setup examples are not treated as sufficient proof of the normalized caller-selectable matrix for every represented record.effortoptions are added: audited effort values belong to the Responses API surface.Validation
bun install --frozen-lockfilein the isolated worktree (dependencies only; no tracked file changes)bun validategit diff --check