Runtime configuration for the inference layer.
Reads from Application env (set in config/*.exs) with sensible defaults.
All URLs are overridable in tests via Application.put_env/3.
Summary
Functions
Returns a list of all known provider IDs.
Returns the base HuggingFace Hub URL.
Returns the direct API base URL for a given provider ID.
Returns the HuggingFace inference router URL.
Returns the User-Agent string sent with all inference requests.
Functions
@spec all_providers() :: [String.t()]
Returns a list of all known provider IDs.
@spec hub_url() :: String.t()
Returns the base HuggingFace Hub URL.
Reads from :hf_hub_url application env (distinct from :hub_url used by
Hub.Client and overridden in test config). Falls back to HF_ENDPOINT
env var, then the hard-coded default.
Returns the direct API base URL for a given provider ID.
Falls back to the router URL for unknown providers.
@spec router_url() :: String.t()
Returns the HuggingFace inference router URL.
@spec user_agent() :: String.t()
Returns the User-Agent string sent with all inference requests.