In this article
Trace environment-configured Hugging Face chat to a synthetic endpoint and check selector handling; configuration parsing alone cannot verify request destination.
The November 15 LiteLLM v1.111.0-dev.4 prerelease includes a fix for Hugging Face chat ignoring HUGGINGFACE_API_BASE and failing with environment-configured endpoints. The implementation also covers the huggingface/tgi selector. Endpoint configuration should be validated through the actual outgoing request, because a successful configuration load does not establish the final destination.
Use a destination that proves receipt
Point the environment variable at an isolated test endpoint that records receipt and returns a known completion marker. Send a synthetic chat request through the same SDK or proxy entry point used in production. Assert the destination and marker together. A log line showing the configured string is weaker evidence: later provider mapping can still alter the route or fail before a network request is made.
Selectors and endpoints are different inputs
Exercise the selector forms the application actually uses, including huggingface/tgi if present. Keep a direct api_base configuration as a control. The fix makes an environment endpoint behave consistently with the explicit path, but a model selector can still affect the serialized request. Capture the model value sent upstream and verify that the endpoint accepts the expected protocol rather than only checking whether a POST occurred.
Resolve conflicting configuration deliberately
If the deployment supplies more than one supported endpoint variable or also passes an explicit value, create separate fixtures for those cases. Record which source wins according to the implementation and the application’s intended policy. Avoid leaving two stale addresses in a service environment and relying on accidental precedence. A rollout can otherwise appear inconsistent when different workers inherit different combinations from process launch settings.
Verify the empty configuration path
Unset custom endpoint variables in a control environment and confirm the supported default behavior. The PR addresses accidental stringification of an absent value and provider mapping around explicit endpoints, so both presence and absence matter. Pin the prerelease artifact and preserve the outgoing-request evidence. This is an integration correctness result; it does not establish the hosted endpoint’s model quality, availability or compatibility with every Hugging Face service.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.