The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: Fix the _call of HuggingFaceHub (#16891)
Mohammad Mohtashim3c4b24b69a5d
diff --git a/libs/community/langchain_community/llms/huggingface_hub.py b/libs/community/langchain_community/llms/huggingface_hub.pyindex f432727773..2d91231775 100644--- a/libs/community/langchain_community/llms/huggingface_hub.py+++ b/libs/community/langchain_community/llms/huggingface_hub.py@@ -127,10 +127,10 @@ class HuggingFaceHub(LLM):response = hf("Tell me a joke.")"""_model_kwargs = self.model_kwargs or {}- params = {**_model_kwargs, **kwargs}+ parameters = {**_model_kwargs, **kwargs}response = self.client.post(- json={"inputs": prompt, "params": params}, task=self.task+ json={"inputs": prompt, "parameters": parameters}, task=self.task)response = json.loads(response.decode())if "error" in response: