From 1d1166ded6c0ee4ee9f3e4243013e2b3bffe445d Mon Sep 17 00:00:00 2001 From: PawelFaron <42373772+PawelFaron@users.noreply.github.com> Date: Mon, 8 May 2023 17:29:17 +0200 Subject: [PATCH] Fixed huggingfacehub_api_token hadning in HuggingFaceEndpoint (#4335) Reported here: https://github.com/hwchase17/langchain/issues/4334 --------- Co-authored-by: Pawel Faron --- langchain/llms/huggingface_endpoint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/langchain/llms/huggingface_endpoint.py b/langchain/llms/huggingface_endpoint.py index 66a073c172..cc549da238 100644 --- a/langchain/llms/huggingface_endpoint.py +++ b/langchain/llms/huggingface_endpoint.py @@ -73,6 +73,7 @@ class HuggingFaceEndpoint(LLM): "Could not import huggingface_hub python package. " "Please install it with `pip install huggingface_hub`." ) + values["huggingfacehub_api_token"] = huggingfacehub_api_token return values @property