Skip to content

[Feature]: Support Custom Hugging Face Endpoints via HF_ENDPOINT #26

Description

@pipe1os

Problem Description

The src/modelinfo/parsers/huggingface.py file currently hardcodes the URL https://huggingface.co/ across multiple functions. Many developers in enterprise environments or specific regions use proxy servers or Hugging Face mirrors (like hf-mirror.com).

Proposed Solution

  1. Read the HF_ENDPOINT environment variable.
  2. Fallback to https://huggingface.co if it's not set.
  3. Replace the hardcoded base URLs in the parser functions to use the dynamically resolved endpoint.

Alternatives Considered

No response

Additional Context

This is a great issue for anyone looking to contribute to the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions