SIGN IN SIGN UP

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

158577 0 0 Python

Remove `requests` code (#42845)

* setup, workflow and utils files

* src core files

* use get_session instead of httpx

* fix code quality - remove unused imports

* utils and prevous-http-used and cli

* style changes

* use httpx for non-HF images

* get_session for HF images

* change docstrings

* revert formatting - 1

* revert formatting - 2

* docstrings fixes

* revert formatting - 3

* docstring fixes

* fix failing test

* Update src/transformers/pipelines/image_to_image.py

* Update src/transformers/testing_utils.py

* fix modular generation check

* fix consistency

* Apply suggestions from code review

* Update src/transformers/models/idefics2/modeling_idefics2.py

* Update src/transformers/models/idefics3/modeling_idefics3.py

---------

Co-authored-by: Lucain <[email protected]>
O
Omkar Kabde committed
db1e6f1e7fda38af4c4d20192bc35ac647a7a21f
Parent: 55dadb8
Committed by GitHub <[email protected]> on 1/23/2026, 10:50:53 AM