Skip to content

feat(aihubmix): add qwen3.7-plus/step-3.7-flash and fix hy3 reasoning control#3427

Open
orangeclk wants to merge 3 commits into
langgenius:mainfrom
orangeclk:feat/aihubmix-model-updates
Open

feat(aihubmix): add qwen3.7-plus/step-3.7-flash and fix hy3 reasoning control#3427
orangeclk wants to merge 3 commits into
langgenius:mainfrom
orangeclk:feat/aihubmix-model-updates

Conversation

@orangeclk

@orangeclk orangeclk commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Two aihubmix model-catalog updates bundled together:

  • fix(hy3): switch Hunyuan thinking control to reasoning_effort. The aihubmix gateway rejects a boolean thinking field for Hunyuan (hy3) with HTTP 400.
  • feat: add qwen3.7-plus and step-3.7-flash models. Both are multi-modal (vision + video) chat models with tool-call / stream-tool-call / multi-tool-call support, response_format (text / json_object / json_schema) and a json_schema template rule. qwen3.7-plus exposes an enable_thinking boolean (default off); step-3.7-flash exposes a reasoning_effort string (low/medium/high, default medium). Registered both in _position.yaml.

Change Type

  • Documentation / non-plugin change
  • Non-LLM plugin (tools, extensions, datasource, etc.)
  • LLM plugin

Screenshots / Videos

Before After

LLM Plugin Checklist

Areas affected by this change (check all that apply)
  • Message flow (system messages, user ↔ assistant turn-taking)
  • Tool interaction flow (multi-round usage, Agent App and Agent Node)
  • Multimodal input (images, PDFs, audio, video, etc.)
  • Multimodal output (images, audio, video, etc.)
  • Structured output (JSON, XML, etc.)
  • Token consumption metrics
  • Other LLM functionality (reasoning, grounding, prompt caching, etc.)
  • New models / model parameter fixes

Version

  • Bumped top-level version in manifest.yaml (not the one under meta) — 0.0.370.0.38
  • dify_plugin>=0.3.0,<0.6.0 is declared in pyproject.toml and locked in uv.lock (or kept in requirements.txt for legacy plugins without uv.lock) — no dependency changes were needed for this change; pyproject.toml / uv.lock are untouched. (aihubmix already declares dify_plugin>=0.9.0 from feat(aihubmix): align with Anthropic official plugin v0.3.24 #3422.)

Testing

  • Local deployment — Dify version: 1.15.0
  • SaaS (cloud.dify.ai)

aihubmix gateway rejects boolean `thinking` for Hunyuan (hy3) with 400: "cannot unmarshal bool into ... model.Thinking". The `thinking` field must be an object {type:enabled|disabled}, which a Dify yaml parameter rule cannot emit.

Switch hy3.yaml from `thinking`(boolean) + `thinking_budget`(int) to a single `reasoning_effort` string parameter (none/low/medium/high, default none). Verified on aihubmix: all four values return 200; none disables thinking (reasoning_tokens=0), low/medium/high enable it. hy3 + reasoning_effort:high + json_schema end-to-end returns 200 with schema-conformant JSON.

Per Tencent Hunyuan docs, hy3 reasoning_effort supports low/medium/high (default low); none is an aihubmix extension to turn thinking off. llm.py is unchanged.
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request labels Jul 12, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the aihubmix plugin to version 0.0.38, adding support for the new models qwen3.7-plus and step-3.7-flash, and updating the hy3 model configuration to use reasoning_effort instead of thinking parameters. The review feedback highlights that standard parameters (temperature, top_p, and max_tokens) were accidentally removed from hy3.yaml and are also missing from the newly added qwen3.7-plus.yaml and step-3.7-flash.yaml configurations. These parameters should be restored or added to ensure users can configure them in the UI.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread models/aihubmix/models/llm/hy3.yaml
Comment thread models/aihubmix/models/llm/qwen3.7-plus.yaml
Comment thread models/aihubmix/models/llm/step-3.7-flash.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant