diff --git a/src/huggingface_hub/inference/_providers/hyperbolic.py b/src/huggingface_hub/inference/_providers/hyperbolic.py index af424b5c35..0e182628be 100644 --- a/src/huggingface_hub/inference/_providers/hyperbolic.py +++ b/src/huggingface_hub/inference/_providers/hyperbolic.py @@ -30,6 +30,7 @@ def __init__(self, task: str): super().__init__(provider="hyperbolic", base_url="https://api.hyperbolic.xyz", task=task) def _prepare_route(self, mapped_model: str) -> str: + # For Hyperbolic, the route is the same for text-generation and conversational tasks if self.task in ("text-generation", "conversational"): return "/v1/chat/completions" raise ValueError(f"Unsupported task '{self.task}' for Hyperbolic.")