mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Ollama Embedding model name include / can not add success #123
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?
Originally created by @duoduo125039 on GitHub (Mar 26, 2025).
Self Checks
Dify version
1.1.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
hello
i use docker deploy dify, the version is 1.1.1.
when i add a embedding model (shaw/dmeta-embedding-zh), the dify-api response some error like this
request
✔️ Expected Behavior
can add shaw/dmeta-embedding-zh embedding model or other model with '/'
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Mar 26, 2025):
Hello @duoduo125039! I'm here to help you with any bugs, questions, or contributions related to Dify. Let's get this issue sorted out together!
I found relevant information regarding the issue with model names containing a '/' character in Dify. When using the Replicate provider, model names must follow the format 'username/model-name' and contain exactly one '/' character. If this format is not followed, the system will raise a
CredentialsValidateFailedError[1].Additionally, there is a similar solved discussion about adding a local Ollama model error. The solution involved upgrading Ollama to the latest version and using the new endpoint
api/embed, as the old ones have been deprecated [2].It seems like the issue you're facing might be related to the format of the model name or the endpoint being used. Ensure that the model name follows the required format and check if there are any updates or changes needed for the endpoint.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@crazywoola commented on GitHub (Mar 26, 2025):
I can confirm that the name with
/will raise this error.Ollama plugin: 0.0.3
Embedding model:
shaw/dmeta-embedding-zhFor anyone who is interested in fixing this, please open a PR here https://github.com/langgenius/dify-official-plugins/issues.
@kenwoodjw commented on GitHub (Mar 26, 2025):
@duoduo125039 what is your ollama version? Can you try to run
@StrayDragon commented on GitHub (Apr 6, 2025):
Just like @kenwoodjw said, i tested in ollama 0.6.4, i got a
{"error":"unable to load model:...", ...}Maybe it's not the problem of the dify/ollama plugin, but rather there seems to be an issue with this model. Its behavior is inconsistent across different Ollama versions (it works in some versions(0.6.2) but not in others)
you can track ollama issue for more details https://github.com/ollama/ollama/issues/9541
and an optional enhance pr for debug log: https://github.com/langgenius/dify-official-plugins/pull/663
@dosubot[bot] commented on GitHub (Aug 21, 2025):
Hi, @duoduo125039. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!