# huggingface\_hub.utils.\_errors.HfHubHTTPError: 404 Client Error: Not Found for url:

**URL:** <https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277>\
**Category:** Models\
**Created:** [July 1, 2025, 7:32am UTC](https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277 "2025-07-01T07:32:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 1, 2025, 10:42am UTC](https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277/2 "2025-07-01T10:42:36Z")

</div>

For langchain, try this:

> [@Facing issue using a model hosted on HuggingFace Server and talking to it using API\_KEY](https://discuss.huggingface.co/t/facing-issue-using-a-model-hosted-on-huggingface-server-and-talking-to-it-using-api-key/154529/4):
>
> pip install langchain-huggingface langchain from langchain\_huggingface import ChatHuggingFace, HuggingFaceEndpoint llm = HuggingFaceEndpoint( repo\_id="deepseek-ai/DeepSeek-R1", provider="together" ) model = ChatHuggingFace(llm=llm) result = model.invoke("What is the capital of India") This works for me with the following setup: $ pip freeze | grep huggingface huggingface-hub==0.31.1 langchain-huggingface==0.2.0 $ pip freeze | grep langchain langchain==0.3.25 langchain-core==0.3.59 langcha…

---

_[View the full topic](https://discuss.huggingface.co/t/huggingface-hub-utils-errors-hfhubhttperror-404-client-error-not-found-for-url/161277)._
