# Hugging Face LLM ‘huggingface\_hub.inference\_api’ is deprecated,

**URL:** https://forum.rasa.com/t/hugging-face-llm-huggingface-hub-inference-api-is-deprecated/61829
**Category:** Rasa CALM
**Created:** [May 2, 2024, 7:09am UTC](https://forum.rasa.com/t/hugging-face-llm-huggingface-hub-inference-api-is-deprecated/61829 "2024-05-02T07:09:26Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Sharen\_Etiqa](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@Sharen\_Etiqa](https://forum.rasa.com/u/Sharen_Etiqa)
#### Post date: [May 6, 2024, 12:23am UTC](https://forum.rasa.com/t/hugging-face-llm-huggingface-hub-inference-api-is-deprecated/61829/5 "2024-05-06T00:23:19Z")

</div>

Hi. Thanks for the information. Here’s my config file:

```auto
pipeline:
  - name: LLMCommandGenerator
       llm: 
          type: "huggingface_hub"
          repo_id: "mistralai/Mixtral-8x7B-Instruct-v0.1"
       embeddings:
           type: "huggingface_hub"
           repo_id: "sentence-transformers/all-mpnet-base-v2"

policies:
- name: EnterpriseSearchPolicy
  llm: 
     type: "huggingface_hub"
     repo_id: "mistralai/Mixtral-8x7B-Instruct-v0.1"
  embeddings:
    type: "huggingface_hub"
    repo_id: "sentence-transformers/all-mpnet-base-v2"
  vector_store:
       type: "faiss"
       source: "./docs"
  citation_enabled: True

```

Here’s the error:

```auto
FutureWarning: 'InferenceApi (from 'huggingface_hub.inference_api') is deprecated and will be removed from version '1.0''. 'InferenceApi' client is deprecated in favor of the more feature-complete 'InferenceClient'. 

```

Please correct me if I’m not using it correctly. Thank you.

---

_[View the full topic](https://forum.rasa.com/t/hugging-face-llm-huggingface-hub-inference-api-is-deprecated/61829)._
