Fixed huggingfacehub_api_token hadning in HuggingFaceEndpoint (#4335)

Reported here:
https://github.com/hwchase17/langchain/issues/4334

---------

Co-authored-by: Pawel Faron <ext-pawel.faron@vaisala.com>
This commit is contained in:
PawelFaron
2023-05-08 17:29:17 +02:00
committed by GitHub
parent 637c61cffb
commit 1d1166ded6

View File

@@ -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