Ollama Embedding model name include / can not add success #123

Closed
opened 2026-02-16 10:18:09 -05:00 by yindo · 5 comments
Owner

Originally created by @duoduo125039 on GitHub (Mar 26, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

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

Image response or error Image but nomic-embed-text is ok Image

✔️ Expected Behavior

can add shaw/dmeta-embedding-zh embedding model or other model with '/'

Actual Behavior

No response

Originally created by @duoduo125039 on GitHub (Mar 26, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 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 <img width="846" alt="Image" src="https://github.com/user-attachments/assets/f4eda603-b234-4bdc-bbb9-ccc2a204abcf" /> response or error <img width="942" alt="Image" src="https://github.com/user-attachments/assets/21b7982a-7828-4c37-b170-2f88c129fa4c" /> but nomic-embed-text is ok <img width="791" alt="Image" src="https://github.com/user-attachments/assets/982d9c6a-9f51-45a9-86a3-bf6264b40048" /> ### ✔️ Expected Behavior can add shaw/dmeta-embedding-zh embedding model or other model with '/' ### ❌ Actual Behavior _No response_
yindo added the good first issue label 2026-02-16 10:18:09 -05:00
yindo closed this issue 2026-02-16 10:18:09 -05:00
Author
Owner

@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

@dosubot[bot] commented on GitHub (Mar 26, 2025): <!-- Greeting --> 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! <!-- Answer --> 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` <sup>[[1]](https://github.com/langgenius/dify/issues/13289)</sup>. 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 <sup>[[2]](https://github.com/langgenius/dify/discussions/7362)</sup>. 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. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b0507385-da06-40bc-8b60-5cbce798b4d9?feedback_type=other)</sup>
Author
Owner

@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-zh

For anyone who is interested in fixing this, please open a PR here https://github.com/langgenius/dify-official-plugins/issues.

@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-zh` For anyone who is interested in fixing this, please open a PR here https://github.com/langgenius/dify-official-plugins/issues.
Author
Owner

@kenwoodjw commented on GitHub (Mar 26, 2025):

@duoduo125039 what is your ollama version? Can you try to run

curl http://localhost:11434/api/embed -d '{
  "model": "shaw/dmeta-embedding-zh",
  "input": "天空是灰色的"
}'
@kenwoodjw commented on GitHub (Mar 26, 2025): @duoduo125039 what is your ollama version? Can you try to run ``` curl http://localhost:11434/api/embed -d '{ "model": "shaw/dmeta-embedding-zh", "input": "天空是灰色的" }' ```
Author
Owner

@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

@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
Author
Owner

@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:

  • You reported an error when adding an embedding model with a slash in its name (e.g., "shaw/dmeta-embedding-zh") in Dify 1.1.1.
  • Model names with slashes must follow the "username/model-name" format for the Replicate provider.
  • Contributors confirmed the error and linked a related PR aimed at fixing it in the official plugins repo.
  • Another contributor noted the issue might originate from Ollama itself, with inconsistent behavior across versions.
  • An Ollama issue was linked for further tracking of the problem.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of dify-official-plugins by commenting here.
  • If I do not receive a response, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 21, 2025): Hi, @duoduo125039. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported an error when adding an embedding model with a slash in its name (e.g., "shaw/dmeta-embedding-zh") in Dify 1.1.1. - Model names with slashes must follow the "username/model-name" format for the Replicate provider. - Contributors confirmed the error and linked a related PR aimed at fixing it in the official plugins repo. - Another contributor noted the issue might originate from Ollama itself, with inconsistent behavior across versions. - An Ollama issue was linked for further tracking of the problem. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of dify-official-plugins by commenting here. - If I do not receive a response, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#123