[PR #1950] [MERGED] Fix model errors in tongyi #2167

Closed
opened 2026-02-16 11:16:15 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1950
Author: @crazywoola
Created: 10/29/2025
Status: Merged
Merged: 10/29/2025
Merged by: @crazywoola

Base: mainHead: fix/1922-why-qwen-always-error-with-any-model


📝 Commits (1)

📊 Changes

66 files changed (+187 additions, -153 deletions)

View changed files

📝 models/tongyi/manifest.yaml (+1 -1)
📝 models/tongyi/models/llm/_position.yaml (+45 -41)
📝 models/tongyi/models/llm/qwen-coder-turbo-0919.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-long.yaml (+1 -1)
📝 models/tongyi/models/llm/qwen-math-plus-0816.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-math-plus-0919.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-math-plus-latest.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-math-turbo-0919.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-math-turbo-latest.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-max-0125.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-max-0403.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-max-0428.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-max-0919.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-mt-plus.yaml (+2 -2)
📝 models/tongyi/models/llm/qwen-mt-turbo.yaml (+1 -1)
📝 models/tongyi/models/llm/qwen-plus-0112.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-plus-0125.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-plus-0723.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-plus-0806.yaml (+1 -0)
📝 models/tongyi/models/llm/qwen-plus-0919.yaml (+1 -0)

...and 46 more files

📄 Description

Related Issues or Context

close #1922
close #1924
close https://github.com/langgenius/dify/issues/27414

This pull request updates the model manifest and reorganizes the available model positions for the Tongyi LLMs, introduces several new model variants, and marks multiple legacy models as deprecated. It also increases the context size for translation models and expands the token generation limit for the qwen-long model.

Model list reorganization and new additions:

  • Major update to models/tongyi/models/llm/_position.yaml to add new qwen3 series models, including various max, coder, and vl variants, and to reorder or reintroduce several qwen-max and qwen-vl-max entries. Some older models were removed and then re-added in a different order. [1] [2] [3] [4]

Deprecation of legacy models:

Model parameter and context improvements:

  • Increased the max token parameter for qwen-long from 6000 to 8192, allowing for longer content generation.
  • Increased the context_size for both qwen-mt-plus and qwen-mt-turbo translation models from 4096 to 16384, supporting longer input contexts. [1] [2]

Manifest update:

  • Updated the version of the Tongyi manifest from 0.0.58 to 0.1.0.
    image

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
  • My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
  • Other Changes (Add New Models, Fix Model Parameters etc.)

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.6.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: , I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/1950 **Author:** [@crazywoola](https://github.com/crazywoola) **Created:** 10/29/2025 **Status:** ✅ Merged **Merged:** 10/29/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix/1922-why-qwen-always-error-with-any-model` --- ### 📝 Commits (1) - [`724cb81`](https://github.com/langgenius/dify-official-plugins/commit/724cb81b74571d48563d15ab6468b65633e1bbde) update: models ### 📊 Changes **66 files changed** (+187 additions, -153 deletions) <details> <summary>View changed files</summary> 📝 `models/tongyi/manifest.yaml` (+1 -1) 📝 `models/tongyi/models/llm/_position.yaml` (+45 -41) 📝 `models/tongyi/models/llm/qwen-coder-turbo-0919.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-long.yaml` (+1 -1) 📝 `models/tongyi/models/llm/qwen-math-plus-0816.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-math-plus-0919.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-math-plus-latest.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-math-turbo-0919.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-math-turbo-latest.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-max-0125.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-max-0403.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-max-0428.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-max-0919.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-mt-plus.yaml` (+2 -2) 📝 `models/tongyi/models/llm/qwen-mt-turbo.yaml` (+1 -1) 📝 `models/tongyi/models/llm/qwen-plus-0112.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-plus-0125.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-plus-0723.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-plus-0806.yaml` (+1 -0) 📝 `models/tongyi/models/llm/qwen-plus-0919.yaml` (+1 -0) _...and 46 more files_ </details> ### 📄 Description ## Related Issues or Context close #1922 close #1924 close https://github.com/langgenius/dify/issues/27414 This pull request updates the model manifest and reorganizes the available model positions for the Tongyi LLMs, introduces several new model variants, and marks multiple legacy models as deprecated. It also increases the context size for translation models and expands the token generation limit for the `qwen-long` model. **Model list reorganization and new additions:** * Major update to `models/tongyi/models/llm/_position.yaml` to add new `qwen3` series models, including various `max`, `coder`, and `vl` variants, and to reorder or reintroduce several `qwen-max` and `qwen-vl-max` entries. Some older models were removed and then re-added in a different order. [[1]](diffhunk://#diff-683e05ee8dcdb1e3034a615855971fe90184b0faac97be98b718feb2a4af4e95L12-R36) [[2]](diffhunk://#diff-683e05ee8dcdb1e3034a615855971fe90184b0faac97be98b718feb2a4af4e95L39-R71) [[3]](diffhunk://#diff-683e05ee8dcdb1e3034a615855971fe90184b0faac97be98b718feb2a4af4e95R82-R84) [[4]](diffhunk://#diff-683e05ee8dcdb1e3034a615855971fe90184b0faac97be98b718feb2a4af4e95L94-R99) **Deprecation of legacy models:** * Marked many older models as deprecated by adding `deprecated: true` to their pricing sections, including various `qwen-plus`, `qwen-math-plus`, `qwen-math-turbo`, and `qwen-max` variants. [[1]](diffhunk://#diff-60c17f4ed627de048c6a26cfcefaf5de7d9e6bbadbe204b6e378ae7671385fe0R86) [[2]](diffhunk://#diff-01b649d18d08bb042927dcbb67ff9ac430e47543feebdc734fca39ff958eba72R86) [[3]](diffhunk://#diff-fbbae53e33fcf3ec7ca4ef2ce53e6ffa13b4a0752ad37ce9f0b89b3b0d1c598cR86) [[4]](diffhunk://#diff-25fabbdce2dd6097d08e633ef6f48a20b61e1a392cfb42ee4a167d7c2d191fd7R86) [[5]](diffhunk://#diff-92d15b50b3b14586818494dc536b481e328da4de2c7af36ceaf8d4510fde755dR86) [[6]](diffhunk://#diff-c6e98ec0ed6d4c7f2ca570340535da59f2b58bb54c8c13a494d05ba2dfdc4932R86) [[7]](diffhunk://#diff-55d761886098e3cd9f7fdbbe2d1a5ecd162b50c527a588428c2afa8354fcb96dR98) [[8]](diffhunk://#diff-f7208eb0d093b83bd99d6d8f6ec71dd80211fb42a56f5b0e8f586f8d9d83b682R98) [[9]](diffhunk://#diff-10994240ff032a5f81cfe3056d17ff38da0b82178f712b4ec1d8d3f7368420c2R98) [[10]](diffhunk://#diff-88bdcf0bca02a383a27f6496306fcb5dfeaba8df6208c0faf33338986f0e9afdR98) [[11]](diffhunk://#diff-3562ca3e052854ce6c1d2dc03719bd20f69feb633ed4c305fd151d71ba1212c9R98) [[12]](diffhunk://#diff-c7df213bca22ae135ac2d4e35bca8259f551ea24ce3fb0fd1902b03aee37a476R98) [[13]](diffhunk://#diff-6d43b76f4f6ad507049556d19bd32230799000d5fe78759fb99d8f0b560f5afcR98) [[14]](diffhunk://#diff-ce64f105b9c2597db3a96c0db8990f3da54182ebdc34441d5275bc2795c6a424R98) [[15]](diffhunk://#diff-776fa0faefa3b704abe5a3c15389e1d8a730c68f476e68db60f429b29abcf3f4R98) **Model parameter and context improvements:** * Increased the `max` token parameter for `qwen-long` from 6000 to 8192, allowing for longer content generation. * Increased the `context_size` for both `qwen-mt-plus` and `qwen-mt-turbo` translation models from 4096 to 16384, supporting longer input contexts. [[1]](diffhunk://#diff-20f93029ce86b7c6f19d92980562f06b86f2595d6ce85f6f81c6448d0f937184L10-R10) [[2]](diffhunk://#diff-efe7a579ed8d5dc7610d506036436877487b9c40dd9e1aefb4e0be29051dda94L10-R10) **Manifest update:** * Updated the version of the Tongyi manifest from `0.0.58` to `0.1.0`. <img width="1266" height="1146" alt="image" src="https://github.com/user-attachments/assets/084101a1-3a2b-49b7-8db5-ef612a260c3b" /> ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> - [ ] Documentation - [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* - [ ] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## This PR contains Changes to *LLM Models Plugin* <!-- LLM Models Test Example: --> <!-- https://github.com/langgenius/dify-official-plugins/blob/main/.assets/test-examples/llm-plugin-tests/llm_test_example.md --> - [ ] My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Structured Output Format (JSON, XML, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Token Consumption Metrics <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> - [ ] Other Changes (Add New Models, Fix Model Parameters etc.) <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [ ] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Dify Plugin SDK Version - [ ] I have Ensured `dify_plugin>=0.3.0,<0.6.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment - [x] Dify Version is: <!-- Specify Your Version (e.g., 1.2.0) -->, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 11:16:15 -05:00
yindo closed this issue 2026-02-16 11:16:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2167