litellm/cookbook/community-resources
ryan-crabbe-berri 77e17530e1 refactor: remove dead HuggingFace task-detection code and its 1.3 MB model list
The HF inference-providers rewrite in 34bdf36eab (Apr 2025) deleted the only
caller of HuggingFaceEmbeddingConfig.get_hf_task_for_model, but left the method,
its read_tgi_conv_models helper, the two module-level caches and the two vendored
model-list text files behind.

hf_text_generation_models.txt is 1.23 MB uncompressed and 0.35 MB in the wheel,
which is 4.4% of the non-proxy SDK payload for a code path nothing reaches.

Also drops cookbook/community-resources/get_hf_models.py, whose only purpose was
regenerating those two files.
2026-09-17 15:33:59 -07:00
..
max_tokens.json add max_tokens.json back to community resources 2023-09-06 17:31:49 -07:00