The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: fix HuggingFacePipeline pipeline_kwargs (#19920)
Manuel Jaiczay1c31234eed86
diff --git a/libs/community/langchain_community/llms/huggingface_pipeline.py b/libs/community/langchain_community/llms/huggingface_pipeline.pyindex a1989702b0..1ccbc76954 100644--- a/libs/community/langchain_community/llms/huggingface_pipeline.py+++ b/libs/community/langchain_community/llms/huggingface_pipeline.py@@ -261,7 +261,10 @@ class HuggingFacePipeline(BaseLLM):) -> LLMResult:# List to hold all resultstext_generations: List[str] = []- pipeline_kwargs = kwargs.get("pipeline_kwargs", {})++ default_pipeline_kwargs = self.pipeline_kwargs if self.pipeline_kwargs else {}+ pipeline_kwargs = kwargs.get("pipeline_kwargs", default_pipeline_kwargs)+skip_prompt = kwargs.get("skip_prompt", False)for i in range(0, len(prompts), self.batch_size):