The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix hf failing streaming test
Ishaan Jaffecd219fa4f86
diff --git a/litellm/llms/huggingface/chat/handler.py b/litellm/llms/huggingface/chat/handler.pyindex 1ba31d490ce..9ed841e379c 100644--- a/litellm/llms/huggingface/chat/handler.py+++ b/litellm/llms/huggingface/chat/handler.py@@ -211,7 +211,7 @@ class Huggingface(BaseLLM):### ASYNC COMPLETIONreturn self.acompletion(api_base=completion_url, data=data, headers=headers, model_response=model_response, task=task, encoding=encoding, model=model, optional_params=optional_params, timeout=timeout, litellm_params=litellm_params) # type: ignoreif client is None or not isinstance(client, HTTPHandler):- client = HTTPHandler()+ client = _get_httpx_client()### SYNC STREAMINGif "stream" in optional_params and optional_params["stream"] is True:response = client.post(