mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 10:05:47 -04:00
[Bug Report]: 404 on adding model using huggingface_hub plugin #110
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 @breadmakerQQQ on GitHub (Jun 19, 2025).
Originally assigned to: @jingfelix on GitHub.
Hi, hope you are doing well. Here is my issue:
I'm using langgenius/huggingface_hub plugin to try to add a text-embedding model on setting/models page, and use the model to create a knowledge. But an error found me:
404 Client Error: Not Found for url: https://api-inference.huggingface.co/pipeline/feature-extraction/mixedbread-ai/mxbai-embed-large-v1 (Request ID: Root=1-6854c669-4d9908150c70723342904282;90da8708-c870-44f6-8911-24b95b87862d)It seems that huggingface has changed their API url according to their issue page:
https://discuss.huggingface.co/t/404-error-when-calling-the-hugging-face-inference-api-via-dify/157486
I'm wondering if a fix can be added, or any "planB" can be using to call huggingface API and do knowledge creation?
@jingfelix commented on GitHub (Jun 23, 2025):
Hi, I think I've found the issue: The langgenius/huggingface_hub plugin uses the huggingface_hub Python library to access the required models. In version 0.31.0, huggingface_hub updated the endpoint for the feature_extraction task. Therefore, the plugin's dependencies need to be updated to this new version.
Reference: https://github.com/huggingface/huggingface_hub/releases/tag/v0.31.0
@jingfelix commented on GitHub (Jun 23, 2025):
I submitted a PR to solve this issue: https://github.com/langgenius/dify-official-plugins/pull/1148