mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-21 18:05:30 -04:00
[PR #223] [MERGED] refactor: update model provider to use ModelFactory for instance mana… #236
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-plugin-sdks/pull/223
Author: @Mairuis
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @Mairuis
Base:
main← Head:fix/model-provider📝 Commits (3)
93e1430refactor: update model provider to use ModelFactory for instance management029713arefactor: integrate ModelFactory for model instance mapping in tests9b94df5refactor: remove unused imports and clean up test files📊 Changes
5 files changed (+81 additions, -10 deletions)
View changed files
📝
python/dify_plugin/core/plugin_registration.py(+1 -1)📝
python/dify_plugin/interfaces/model/__init__.py(+8 -8)➕
python/tests/interfaces/model/test_construct_model_provider.py(+33 -0)➕
python/tests/interfaces/model/test_model_registry_get_model.py(+35 -0)📝
python/tests/test_model_registry_get_model.py(+4 -1)📄 Description
…gement
Pull Request Checklist
Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:
Compatibility Check
README.mdREADME.mdREADME.mdREADME.mdAvailable Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.