mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1191] [MERGED] chore: refactor the wenxin model #1759
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/1191
Author: @hjlarry
Created: 7/2/2025
Status: ✅ Merged
Merged: 7/3/2025
Merged by: @crazywoola
Base:
main← Head:p12📝 Commits (2)
fd6626frefactor the wenxin model1f8b8cbfix dify_plugin version📊 Changes
16 files changed (+210 additions, -1008 deletions)
View changed files
📝
models/wenxin/manifest.yaml(+1 -1)➖
models/wenxin/models/_common.py(+0 -212)➕
models/wenxin/models/llm/ernie-4.5-turbo-128k.yaml(+40 -0)📝
models/wenxin/models/llm/ernie-character-8k.yaml(+1 -0)📝
models/wenxin/models/llm/ernie-speed-appbuilder.yaml(+1 -0)➕
models/wenxin/models/llm/ernie-x1-turbo-32k.yaml(+40 -0)➖
models/wenxin/models/llm/ernie_bot.py(+0 -192)📝
models/wenxin/models/llm/llm.py(+16 -307)📝
models/wenxin/models/llm/yi_34b_chat.yaml(+1 -0)📝
models/wenxin/models/rerank/bce-reranker-base.yaml(+1 -1)📝
models/wenxin/models/rerank/rerank.py(+29 -76)📝
models/wenxin/models/text_embedding/text_embedding.py(+19 -154)➖
models/wenxin/models/wenxin_errors.py(+0 -54)📝
models/wenxin/provider/wenxin.py(+4 -1)📝
models/wenxin/provider/wenxin.yaml(+56 -9)📝
models/wenxin/requirements.txt(+1 -1)📄 Description
Related Issues or Context
To close https://github.com/langgenius/dify-official-plugins/issues/1184
The old version of the Wenxin SDK, which uses AK/SK validation, is only compatible with legacy Wenxin apps. However, creating new legacy Wenxin apps is no longer supported.
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.