Skip to content

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 13, 2025

Counterpart of huggingface/huggingface.js#1841 (related to internal slack thread).

The FeatureExtractionInputTruncationDirection parameter defined in the feature-extraction specs currently have capitalized values Left / Right. This comes from TEI implementation from which we pulled the specs. Let's switch it to lowercase values for consistency with all other specs.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Wauplin added a commit to huggingface/huggingface.js that referenced this pull request Nov 13, 2025
…eter (#1841)

First spotted by @alvarobartt on
[slack](https://huggingface.slack.com/archives/C064Z3GRU3U/p1762871481747849?thread_ts=1743434022.621759&cid=C064Z3GRU3U)
(internal).

The `FeatureExtractionInputTruncationDirection` parameter defined in the
feature-extraction specs currently have capitalized values `Left` /
`Right`. This comes from TEI implementation from which we pulled the
specs. Let's switch it to lowercase values for consistency with all
other specs.

In addition to this PR, we should:
- update TEI to accept `left`/`right` (not even sure we want backward
compatibility on this) => @alvarobartt would you be able to handle this?
- update `huggingface_hub` => I can take care of this
huggingface/huggingface_hub#3548
- update `hub-docs` => will happen automatically

I think it's fine to have breaking change for this. Moreover, specs /
docs are there more for information but are rarely enforced (expect in
TEI) so it shouldn't break anything client-side.
Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@hanouticelina
Copy link
Contributor

(failing tests unrelated)

@hanouticelina hanouticelina merged commit 743fd8c into main Nov 13, 2025
19 of 23 checks passed
@hanouticelina hanouticelina deleted the lowercased-truncation-direction-parameter branch November 13, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants