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
Merge branch 'litellm_internal_staging' into bugfix/http-handler-del-closes-streaming-client
Maximilian Roos8dd20af4c978
diff --cc litellm/llms/custom_httpx/http_handler.pyindex 612d5997ec5,f4883b57fbc..121a369affc--- a/litellm/llms/custom_httpx/http_handler.py+++ b/litellm/llms/custom_httpx/http_handler.py@@@ -7,9 -7,9 +7,10 @@@ import ssimport sysimport threadingimport time+import weakreffrom collections.abc import AsyncIterable, Callable, Iterable, Mappingfrom http.cookiejar import CookieJar, DefaultCookiePolicy+ from io import BytesIOfrom types import MappingProxyTypefrom typing import TYPE_CHECKING, Any, ClassVar, Final, NoReturn, Optional, TypeAlias, TypedDict, TypeVar