[BUG] MistralAI official plugin has wrong "model type" for mistral-embed #4

Closed
opened 2026-02-22 17:15:29 -05:00 by yindo · 2 comments
Owner

Originally created by @VinceOPS on GitHub (Mar 5, 2025).

Hi DIFY team!

I've been using DIFY 1.0.0 today and I noticed that the "mistral-embed" model has a model_type set to llm in the plugin package (file models/llm/mistral-embed.yaml)... Which probably explains why I cannot select it as an Embedding model?

(Nevertheless, no model_sources has been provided for Text embeddings, either. Only for LLM: - models/llm/llm.py)

Originally created by @VinceOPS on GitHub (Mar 5, 2025). Hi DIFY team! I've been using DIFY 1.0.0 today and I noticed that the "mistral-embed" model has a `model_type` set to `llm` in the plugin package (file `models/llm/mistral-embed.yaml`)... Which probably explains why I cannot select it as an Embedding model? (Nevertheless, no `model_sources` has been provided for Text embeddings, either. Only for LLM: `- models/llm/llm.py`)
yindo closed this issue 2026-02-22 17:15:29 -05:00
Author
Owner

@VinceOPS commented on GitHub (Mar 5, 2025):

I can confirm that using model_type: text-embedding in mistral-embed.yaml did the job 🎉

Image

I am not sure it is useful but I also added - text-embedding to supported_model_types: in provider/mistralai.yaml.

I would be glad to create a PR if the plugin is not closed-source (is it?).
An implementation for the model_sources is still probably necessary, as I cannot use the model to process new documents.

(For anyone reading this in X weeks/months/years: I simply unzip'd the .difypkg file downloaded from the Marketplace, then I did my changes inside... Then used the DIFY daemon tool to package the folder back to a difypkg file... Then I had to set env variable FORCE_VERIFYING_SIGNATURE to false to be able to install the plugin locally 😄 )

@VinceOPS commented on GitHub (Mar 5, 2025): I can confirm that using `model_type: text-embedding` in `mistral-embed.yaml` did the job 🎉 <img width="345" alt="Image" src="https://github.com/user-attachments/assets/ceb56d03-8e11-4092-8778-bd25e5e2b0f1" /> I am not sure it is useful but I also added `- text-embedding` to `supported_model_types:` in `provider/mistralai.yaml`. **I would be glad to create a PR if the plugin is not closed-source (is it?).** An implementation for the `model_sources` is still probably necessary, as I cannot use the model to process new documents. _(For anyone reading this in X weeks/months/years: I simply `unzip'd` the .difypkg file downloaded from the Marketplace, then I did my changes inside... Then used the [DIFY daemon tool](https://github.com/langgenius/dify-plugin-daemon/releases) to package the folder back to a `difypkg` file... Then I had to set env variable `FORCE_VERIFYING_SIGNATURE` to `false` to be able to install the plugin locally 😄 )_
Author
Owner

@XiaoLey commented on GitHub (Mar 10, 2025):

Hi @VinceOPS,

I noticed your question and thought I’d chime in to help. You could check out the dify-official-plugins repository, as it seems to be the right place to make adjustments or submit a PR to address the issue with the mistral-embed model.

Hope this helps, and thanks for contributing to the community!

@XiaoLey commented on GitHub (Mar 10, 2025): Hi @VinceOPS, I noticed your question and thought I’d chime in to help. You could check out the [dify-official-plugins](https://github.com/langgenius/dify-official-plugins) repository, as it seems to be the right place to make adjustments or submit a PR to address the issue with the `mistral-embed` model. Hope this helps, and thanks for contributing to the community!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#4