From b36873ca7bfd92f2ff01e155070758291a5c20e2 Mon Sep 17 00:00:00 2001 From: jyotirmoy-devops <55876427+jyotirmoy-devops@users.noreply.github.com> Date: Mon, 29 Dec 2025 17:41:17 +0530 Subject: [PATCH] Update components.mdx --- units/en/unit2/llama-index/components.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/units/en/unit2/llama-index/components.mdx b/units/en/unit2/llama-index/components.mdx index 29549831d..e2c70c0d7 100644 --- a/units/en/unit2/llama-index/components.mdx +++ b/units/en/unit2/llama-index/components.mdx @@ -159,7 +159,9 @@ We also pass in an LLM to the query engine to use for the response. ```python from llama_index.llms.huggingface_api import HuggingFaceInferenceAPI -llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-Coder-32B-Instruct") +llm = HuggingFaceInferenceAPI(model_name="Qwen/Qwen2.5-Coder-32B-Instruct", +token=userdata.get('HF_TOKEN'), + provider="auto") query_engine = index.as_query_engine( llm=llm, response_mode="tree_summarize",