Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/huggingface_hub/inference/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ def feature_extraction(
normalize: Optional[bool] = None,
prompt_name: Optional[str] = None,
truncate: Optional[bool] = None,
truncation_direction: Optional[Literal["Left", "Right"]] = None,
truncation_direction: Optional[Literal["left", "right"]] = None,
model: Optional[str] = None,
) -> "np.ndarray":
"""
Expand All @@ -1054,7 +1054,7 @@ def feature_extraction(
truncate (`bool`, *optional*):
Whether to truncate the embeddings or not.
Only available on server powered by Text-Embedding-Inference.
truncation_direction (`Literal["Left", "Right"]`, *optional*):
truncation_direction (`Literal["left", "right"]`, *optional*):
Which side of the input should be truncated when `truncate=True` is passed.

Returns:
Expand Down
4 changes: 2 additions & 2 deletions src/huggingface_hub/inference/_generated/_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ async def feature_extraction(
normalize: Optional[bool] = None,
prompt_name: Optional[str] = None,
truncate: Optional[bool] = None,
truncation_direction: Optional[Literal["Left", "Right"]] = None,
truncation_direction: Optional[Literal["left", "right"]] = None,
model: Optional[str] = None,
) -> "np.ndarray":
"""
Expand All @@ -1081,7 +1081,7 @@ async def feature_extraction(
truncate (`bool`, *optional*):
Whether to truncate the embeddings or not.
Only available on server powered by Text-Embedding-Inference.
truncation_direction (`Literal["Left", "Right"]`, *optional*):
truncation_direction (`Literal["left", "right"]`, *optional*):
Which side of the input should be truncated when `truncate=True` is passed.

Returns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .base import BaseInferenceType, dataclass_with_extra


FeatureExtractionInputTruncationDirection = Literal["Left", "Right"]
FeatureExtractionInputTruncationDirection = Literal["left", "right"]


@dataclass_with_extra
Expand Down
Loading