Fix/adjust diffusion: pin requests chain in no-deps runtime for PR #5754

The Studio backend's no-torch-runtime.txt is installed via
pip --no-deps so the diffusion stack's transitive imports must
be pinned explicitly. huggingface_hub's blob downloader (used by
diffusers.GGUFQuantizationConfig and by every from_single_file
call) imports requests + urllib3 + charset_normalizer at module
load time; a fresh --no-deps install would 500 on the first
/api/inference/images/load with PackageNotFoundError: 'requests'.

Adds requests, urllib3, and charset_normalizer to the
transitive-deps block next to the existing httpx chain.
This commit is contained in:
Daniel Han-Chen 2026-05-25 00:49:14 +00:00
commit f3f3f06dc1

View file

@ -57,6 +57,12 @@ gguf
regex
typing_extensions
filelock
# `requests` and its urllib3/charset chain are required by huggingface_hub's
# blob downloader; diffusers + GGUFQuantizationConfig 500 on first
# /api/inference/images/load otherwise.
requests
urllib3
charset_normalizer
httpx
httpcore
certifi