mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1881] [MERGED] fix(tongyi): instantiate model class correctly in TongyiProvider #2131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1881
Author: @ZeroZ-lab
Created: 10/17/2025
Status: ✅ Merged
Merged: 10/19/2025
Merged by: @crazywoola
Base:
main← Head:fix-tongyi📝 Commits (3)
52a23e5fix(tongyi): instantiate model class correctly in TongyiProvidera2432d8chore(tongyi): bump version to 0.0.56 in manifest.yaml6a71b81Update models/tongyi/provider/tongyi.py📊 Changes
2 files changed (+7 additions, -2 deletions)
View changed files
📝
models/tongyi/manifest.yaml(+1 -1)📝
models/tongyi/provider/tongyi.py(+6 -1)📄 Description
Updated the TongyiProvider to handle cases where the model instance returned is a class rather than an instance. The code now checks the type and instantiates the model class with the appropriate schemas if necessary, ensuring proper validation of credentials.
Related Issues or Context
fix #1882 1882
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.