Skip to content

[Bot] Update inference types#3663

Open
HuggingFaceInfra wants to merge 1 commit intomainfrom
update-inference-types-automated-pr
Open

[Bot] Update inference types#3663
HuggingFaceInfra wants to merge 1 commit intomainfrom
update-inference-types-automated-pr

Conversation

@HuggingFaceInfra
Copy link
Copy Markdown
Contributor

@HuggingFaceInfra HuggingFaceInfra commented Jan 6, 2026

This PR updates the inference types. It has been generated by running:

# Generate Python code
pnpm run inference-codegen  # from @huggingface/tasks-gen

# Copy to this repository
cp -r ./huggingface.js/packages/tasks/.python_generated/* ./huggingface_hub/src/huggingface_hub/inference/_generated/types

# Clean things
make inference_update
make style

This PR was automatically created by the Update Inference Types workflow.

Make sure the changes are correct before merging.


Note

Low Risk
Primarily type-hint and docstring updates across generated inference clients/types; runtime behavior should be unchanged, with only minor risk of type-checking or doc rendering regressions.

Overview
Updates the sync and async InferenceClient method signatures to consistently use Optional[...] (and a few Union[...]) instead of T | None for many optional parameters (e.g., top_k, generation params, thresholds).

Regenerates the auto-generated inference types/* dataclasses to match the same typing convention (and fixes a few typing imports), plus small docstring cleanups/duplication adjustments in several task methods.

Reviewed by Cursor Bugbot for commit d9562b9. Bugbot is set up for automated code reviews on this repo. Configure here.

@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment Bot commented Jan 6, 2026

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.

@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from d2916f8 to 84b3cbd Compare January 10, 2026 03:28
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from def8fd6 to c2dedeb Compare January 21, 2026 03:30
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 4 times, most recently from fc2a10c to 033bbed Compare January 28, 2026 03:30
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from ccd97fa to c2cebc7 Compare February 4, 2026 03:45
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 3 times, most recently from 181d684 to 03046a2 Compare February 10, 2026 03:56
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 6 times, most recently from 3bdc9e6 to 7c763ba Compare February 19, 2026 03:47
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from a51110c to 425aeb5 Compare March 14, 2026 03:44
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from 8a32383 to 820d273 Compare March 21, 2026 03:41
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from b675f1b to 48e158c Compare March 31, 2026 03:56
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 6 times, most recently from b058a04 to 706e02b Compare April 8, 2026 03:56
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 5 times, most recently from 87b8c3a to 659e1b4 Compare April 15, 2026 03:59
@HuggingFaceInfra HuggingFaceInfra force-pushed the update-inference-types-automated-pr branch 3 times, most recently from 2e18f79 to 53fb793 Compare April 21, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants