mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Ollama plugin - embedding model credentials_validate Error #669
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 @huangxiang518 on GitHub (Sep 23, 2025).
Self Checks
Dify version
1.9.0
Plugin version
0.07
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The originally set ollama embedding model cannot be used
Even resetting cannot be successful.
Ollama [Windows Version 0.12.0(Lastest)] + dengcao/Qwen3-Embedding-0.6B:F16 [Embedding Model]
the Error Report is here:
core.model_runtime.errors.validate.CredentialsValidateFailedError: An error occurred during credentials validation: status code 500: {"error":"this model does not support embeddings"}
I Found the Error ,Maybe is the endpoint [api/embed]
from inside your Dify Docker container, run a curl command:
curl -H 'Content-Type: application/json' http://192.168.12.166:11434/api/embed -d '{"input": ["test"], "model": "dengcao/Qwen3-Embedding-0.6B:F16"}'
{"error":"this model does not support embeddings"}#
curl -H 'Content-Type: application/json' http://192.168.12.166:11434/api/embeddings -d '{"input": ["test"], "model": "dengcao/Qwen3-Embedding-0.6B:F16"}'
{"embedding":[]}#
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Sep 23, 2025):
The error occurs because the dengcao/Qwen3-Embedding-0.6B:F16 model either isn't configured to support embeddings in Ollama or isn't compatible with Ollama's embedding implementation. The /api/embed endpoint returns "this model does not support embeddings" and /api/embeddings returns an empty array, confirming the model isn't working for embeddings in your setup.
To resolve this, try a different embedding model that is verified to work with Ollama, double-check the model's compatibility with Ollama's embedding API, and review any special configuration requirements for the model. Some users have also resolved similar issues by upgrading the Ollama model and ensuring the service URL is accessible from Docker (e.g., using host.docker.internal instead of localhost) 1 2.
Also, be aware that model names containing a '/' can sometimes cause issues in the plugin, and embedding support can vary across Ollama versions 3. If you continue to see this error with other models, check the Ollama documentation or try models known to work with embeddings in your environment.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
