[Bug Report]: 404 on adding model using huggingface_hub plugin #110

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

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?

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](url) I'm wondering if a fix can be added, or any "planB" can be using to call huggingface API and do knowledge creation?
yindo added the bug label 2026-02-22 17:18:42 -05:00
yindo closed this issue 2026-02-22 17:18:44 -05:00
Author
Owner

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

@jingfelix commented on GitHub (Jun 23, 2025):

I submitted a PR to solve this issue: https://github.com/langgenius/dify-official-plugins/pull/1148

@jingfelix commented on GitHub (Jun 23, 2025): I submitted a PR to solve this issue: https://github.com/langgenius/dify-official-plugins/pull/1148
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#110