Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hanouticelina committed Feb 14, 2025
1 parent 97c8ce9 commit bbbb12d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/huggingface_hub/inference/_providers/hyperbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

0 comments on commit bbbb12d

Please sign in to comment.