From d88474783c107e91fc7e92849cdeca6b52709822 Mon Sep 17 00:00:00 2001 From: brian-ogrady Date: Mon, 17 Feb 2025 09:29:12 -0500 Subject: [PATCH] fix: Fixing API endpoint in HF Component (#6346) * Fixing API endpoint in HF Component, adding unit test * [autofix.ci] apply automated fixes * Adding __init__.[y * Removing unit tests, covered by another PR --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida --- .../langflow/components/embeddings/huggingface_inference_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/components/embeddings/huggingface_inference_api.py b/src/backend/base/langflow/components/embeddings/huggingface_inference_api.py index 762b92765..3ccd9f55c 100644 --- a/src/backend/base/langflow/components/embeddings/huggingface_inference_api.py +++ b/src/backend/base/langflow/components/embeddings/huggingface_inference_api.py @@ -73,7 +73,7 @@ class HuggingFaceInferenceAPIEmbeddingsComponent(LCEmbeddingsModel): def get_api_url(self) -> str: if "huggingface" in self.inference_endpoint.lower(): - return f"{self.inference_endpoint}{self.model_name}" + return f"{self.inference_endpoint}" return self.inference_endpoint @retry(stop=stop_after_attempt(3), wait=wait_fixed(2))