Repository navigation
fix(tongyi): accept temperature below 0.6 for qwen3.8-max - #3767
Merged
crazywoola merged 3 commits intoSep 3, 2026
Merged
crazywoola merged 3 commits into
crazywoola merged 3 commits into
Conversation
Align qwen3.8-max with DashScope behavior from langgenius#3746: allow the official [0, 2) input range in the model schema and normalize values below 0.6 to 0.6 when thinking mode is enabled instead of rejecting them locally.
crazywoola
approved these changes
Aug 31, 2026
crazywoola
had a problem deploying
to
models/tongyi
August 31, 2026 02:55 — with
GitHub Actions
Failure
crazywoola
approved these changes
Sep 3, 2026
This branch was successfully 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
Fixes #3746.
qwen3.8-maxpreviously declaredtemperature.min: 0.6, so the Dify plugin SDK rejected values liketemperature: 0before the request reached DashScope. The official API accepts[0, 2)and normalizes values below0.6to0.6in thinking mode.This PR:
[0, 2)input range (min: 0)temperature < 0.6to0.6in the Tongyi LLM runtime when thinking mode is enabledRelease Notes
qwen3.8-maxtemperature values in the official[0, 2)range0.6are normalized to0.6before calling DashScopeTest plan
uv run pytest tests/test_llm_qwen3_vl_hybrid_thinking.py -vuv run pytest tests/ --ignore=tests/test_speech2text.py(126 passed)temperature: 0passes SDK validation0.6before DashScope calltemperature: 0