mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1090] [MERGED] feat(mistralai): Major model update #1716
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/1090
Author: @Asterovim
Created: 6/14/2025
Status: ✅ Merged
Merged: 6/17/2025
Merged by: @crazywoola
Base:
main← Head:main📝 Commits (3)
7cff8c6feat(mistralai): add Mistral Embed model and update manifest filesc9d32f8feat(mistralai): Major model update - remove deprecated models and add latest releases6949082bump deps📊 Changes
41 files changed (+2090 additions, -92 deletions)
View changed files
📝
models/mistralai/README.md(+72 -2)📝
models/mistralai/manifest.yaml(+4 -4)📝
models/mistralai/models/llm/_position.yaml(+25 -9)📝
models/mistralai/models/llm/codestral-2501.yaml(+30 -8)📝
models/mistralai/models/llm/codestral-latest.yaml(+29 -7)➕
models/mistralai/models/llm/devstral-small-2505.yaml(+73 -0)➕
models/mistralai/models/llm/devstral-small-latest.yaml(+73 -0)📝
models/mistralai/models/llm/llm.py(+18 -0)➕
models/mistralai/models/llm/magistral-medium-2506.yaml(+86 -0)➕
models/mistralai/models/llm/magistral-medium-latest.yaml(+86 -0)➕
models/mistralai/models/llm/magistral-small-2506.yaml(+86 -0)➕
models/mistralai/models/llm/magistral-small-latest.yaml(+86 -0)➕
models/mistralai/models/llm/mathstral.yaml(+69 -0)➕
models/mistralai/models/llm/ministral-3b-2410.yaml(+73 -0)➕
models/mistralai/models/llm/ministral-3b-latest.yaml(+73 -0)📝
models/mistralai/models/llm/ministral-8b-2410.yaml(+30 -8)➕
models/mistralai/models/llm/ministral-8b-latest.yaml(+73 -0)📝
models/mistralai/models/llm/mistral-large-2411.yaml(+30 -8)📝
models/mistralai/models/llm/mistral-large-latest.yaml(+29 -7)➕
models/mistralai/models/llm/mistral-medium-2505.yaml(+73 -0)...and 21 more files
📄 Description
Related Issues or Context
This PR fixes the MistralAI text embedding model implementation that was incorrectly classified and had API compatibility issues. The
mistral-embedmodel was previously classified as an LLM instead of a text embedding model, and the implementation had several technical issues preventing proper functionality.fix https://github.com/langgenius/dify-official-plugins/issues/419
Issues resolved:
userparameterget_num_tokensmethodThis PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
Testing performed:
Screenshots/Evidence:
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)Version updated: 0.0.1 → 0.0.3 (PATCH increments for bug fixes and improvements)
Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.4.0in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
Technical changes made:
mistral-embedfrom LLM to text embedding model typeOAICompatEmbeddingModelwith directTextEmbeddingModelimplementation to avoid unsupported parametersuserparameterget_num_tokensreturn type frominttolist[int]to match expected formatSaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.