[PR #1004] [MERGED] fix(models/langgenius/jina): Fix Jina schema and remove non existent model #1671

Closed
opened 2026-02-16 10:23:39 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1004
Author: @DavideDelbianco
Created: 5/29/2025
Status: Merged
Merged: 5/30/2025
Merged by: @crazywoola

Base: mainHead: main


📝 Commits (1)

  • 81e3bc5 fix(models/langgenius/jina): Fix Jina schema and remove non existent model

📊 Changes

9 files changed (+78 additions, -34 deletions)

View changed files

models/jina/.env.example (+4 -0)
📝 models/jina/manifest.yaml (+4 -4)
📝 models/jina/models/rerank/_position.yaml (+2 -2)
📝 models/jina/models/rerank/rerank.py (+26 -13)
📝 models/jina/models/text_embedding/_position.yaml (+6 -0)
models/jina/models/text_embedding/jina-embeddings-v2-small-en.yaml (+0 -9)
📝 models/jina/models/text_embedding/text_embedding.py (+29 -5)
📝 models/jina/provider/jina.py (+6 -0)
📝 models/jina/requirements.txt (+1 -1)

📄 Description

Related Issues or Context

This change fixes the validation error about the schema not being valid when installing Jina
closes https://github.com/langgenius/dify/issues/19167

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'm Using dify_plugin>=0.2.0,<0.3.0 in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

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

NOTE

I know the jina-embeddings-v2-small-en is available on HuggingFace, but through the official API it is no longer available, and it has been replaced by v3 at the same price:
image
from: https://jina.ai/models


🔄 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/1004 **Author:** [@DavideDelbianco](https://github.com/DavideDelbianco) **Created:** 5/29/2025 **Status:** ✅ Merged **Merged:** 5/30/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`81e3bc5`](https://github.com/langgenius/dify-official-plugins/commit/81e3bc5b614e832ec695112a866816d454a4e975) fix(models/langgenius/jina): Fix Jina schema and remove non existent model ### 📊 Changes **9 files changed** (+78 additions, -34 deletions) <details> <summary>View changed files</summary> ➕ `models/jina/.env.example` (+4 -0) 📝 `models/jina/manifest.yaml` (+4 -4) 📝 `models/jina/models/rerank/_position.yaml` (+2 -2) 📝 `models/jina/models/rerank/rerank.py` (+26 -13) 📝 `models/jina/models/text_embedding/_position.yaml` (+6 -0) ➖ `models/jina/models/text_embedding/jina-embeddings-v2-small-en.yaml` (+0 -9) 📝 `models/jina/models/text_embedding/text_embedding.py` (+29 -5) 📝 `models/jina/provider/jina.py` (+6 -0) 📝 `models/jina/requirements.txt` (+1 -1) </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> This change fixes the validation error about the schema not being valid when installing Jina closes https://github.com/langgenius/dify/issues/19167 ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] 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 - [x] I'm Using `dify_plugin>=0.2.0,<0.3.0` 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: 1.4.1, 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 --> ### NOTE I know the `jina-embeddings-v2-small-en` is available on [HuggingFace](https://huggingface.co/jinaai/jina-embeddings-v2-small-en), but through the official API it is no longer available, and it has been replaced by v3 at the same price: ![image](https://github.com/user-attachments/assets/8026d5ba-28ec-44b0-9dde-95d78ad28707) from: https://jina.ai/models --- <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 10:23:39 -05:00
yindo closed this issue 2026-02-16 10:23:39 -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#1671