Skip to content

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]

supports_native_streaming

Ishaan Jaff4b4a0b261201
diff --git a/litellm/utils.py b/litellm/utils.py
index 8696b6712dd..52dbccb0c82 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -1997,9 +1997,9 @@ def supports_native_streaming(model: str, custom_llm_provider: Optional[str]) ->
model_info = _get_model_info_helper(
model=model, custom_llm_provider=custom_llm_provider
)
- supports_native_streaming = (
- model_info.get("supports_native_streaming", True) or True
- )
+ supports_native_streaming = model_info.get("supports_native_streaming", True)
+ if supports_native_streaming is None:
+ supports_native_streaming = True
return supports_native_streaming
except Exception as e:
verbose_logger.debug(