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:
parent
e1fb90074c
commit
d88474783c
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue