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]

refactor(router_strategy): align async else-branch with sync (response_seconds)

Mihidum Hettiyahandi3cde96d84822
diff --git a/litellm/router_strategy/lowest_latency.py b/litellm/router_strategy/lowest_latency.py
index da81534f389..ffe8245b012 100644
--- a/litellm/router_strategy/lowest_latency.py
+++ b/litellm/router_strategy/lowest_latency.py
@@ -295,7 +295,7 @@ class LowestLatencyLoggingHandler(CustomLogger):
if normalized_value is not None:
final_value = float(normalized_value)
else:
- final_value = response_ms
+ final_value = response_seconds
if time_to_first_token_response_time is not None:
if isinstance(time_to_first_token_response_time, timedelta):