Skip to content

Comments

Add customFetch to env for user override#1538

Merged
xenova merged 1 commit intohuggingface:mainfrom
sroussey:replace-fetch
Feb 21, 2026
Merged

Add customFetch to env for user override#1538
xenova merged 1 commit intohuggingface:mainfrom
sroussey:replace-fetch

Conversation

@sroussey
Copy link
Contributor

Ref: #1182 and #1479

Copy link
Collaborator

@xenova xenova left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Definitely something i think we should add.

In terms of naming, why not just simplify it to env.fetch instead? :) (I may have suggested env.customFetch in the past, but if we reference it in code like this, maybe the former is simpler.

@sroussey
Copy link
Contributor Author

fine with me!

Copy link
Collaborator

@xenova xenova left a comment

Choose a reason for hiding this comment

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

LGTM ✅ Will wait for @nico-martin's review too, in case he has any thoughts :)

@xenova xenova requested a review from nico-martin February 20, 2026 19:48
@sroussey
Copy link
Contributor Author

I have one change related to the type.

Copy link
Collaborator

@nico-martin nico-martin left a comment

Choose a reason for hiding this comment

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

I thinkt thats a great feature!

@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.

@xenova xenova merged commit 201ccf7 into huggingface:main Feb 21, 2026
4 checks passed
@xenova
Copy link
Collaborator

xenova commented Feb 21, 2026

thanks again!

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