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]

chore: drop source comment on sse_keepalive_ping_interval_seconds

Devin AIc597d3fabb96
diff --git a/litellm/__init__.py b/litellm/__init__.py
index a29ee73013b..7d5051790cc 100644
--- a/litellm/__init__.py
+++ b/litellm/__init__.py
@@ -245,11 +245,6 @@ use_chat_completions_url_for_anthropic_messages: bool = bool(
# config.yaml.
strip_anthropic_total_tokens: bool = False
anthropic_sse_ping_interval_seconds: float = 15.0
-# Emit an SSE comment (": ping") on OpenAI-shaped streaming routes (/chat/completions,
-# /v1/responses, ...) whenever the upstream has sent nothing for this many seconds, so
-# intermediaries with an idle read timeout (e.g. nginx `proxy-read-timeout`) don't drop
-# long time-to-first-token streams. Disabled unless set, via
-# `litellm_settings.sse_keepalive_ping_interval_seconds` in config.yaml.
sse_keepalive_ping_interval_seconds: float | None = None
route_all_chat_openai_to_responses: bool = (
os.getenv("LITELLM_ROUTE_ALL_CHAT_OPENAI_TO_RESPONSES", "false").lower() == "true"