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 <gabriel@langflow.org>
This commit is contained in:
brian-ogrady 2025-02-17 09:29:12 -05:00 committed by GitHub
commit d88474783c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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